Home | History | Annotate | Download | only in api_legacy
      1 package android.arch.persistence.db {
      2 
      3   public final class SimpleSQLiteQuery implements android.arch.persistence.db.SupportSQLiteQuery {
      4     ctor public SimpleSQLiteQuery(java.lang.String, java.lang.Object[]);
      5     ctor public SimpleSQLiteQuery(java.lang.String);
      6     method public static void bind(android.arch.persistence.db.SupportSQLiteProgram, java.lang.Object[]);
      7     method public void bindTo(android.arch.persistence.db.SupportSQLiteProgram);
      8     method public java.lang.String getSql();
      9   }
     10 
     11   public abstract interface SupportSQLiteDatabase implements java.io.Closeable {
     12     method public abstract void beginTransaction();
     13     method public abstract void beginTransactionNonExclusive();
     14     method public abstract void beginTransactionWithListener(android.database.sqlite.SQLiteTransactionListener);
     15     method public abstract void beginTransactionWithListenerNonExclusive(android.database.sqlite.SQLiteTransactionListener);
     16     method public abstract android.arch.persistence.db.SupportSQLiteStatement compileStatement(java.lang.String);
     17     method public abstract int delete(java.lang.String, java.lang.String, java.lang.Object[]);
     18     method public abstract void disableWriteAheadLogging();
     19     method public abstract boolean enableWriteAheadLogging();
     20     method public abstract void endTransaction();
     21     method public abstract void execSQL(java.lang.String) throws android.database.SQLException;
     22     method public abstract void execSQL(java.lang.String, java.lang.Object[]) throws android.database.SQLException;
     23     method public abstract java.util.List<android.util.Pair<java.lang.String, java.lang.String>> getAttachedDbs();
     24     method public abstract long getMaximumSize();
     25     method public abstract long getPageSize();
     26     method public abstract java.lang.String getPath();
     27     method public abstract int getVersion();
     28     method public abstract boolean inTransaction();
     29     method public abstract long insert(java.lang.String, int, android.content.ContentValues) throws android.database.SQLException;
     30     method public abstract boolean isDatabaseIntegrityOk();
     31     method public abstract boolean isDbLockedByCurrentThread();
     32     method public abstract boolean isOpen();
     33     method public abstract boolean isReadOnly();
     34     method public abstract boolean isWriteAheadLoggingEnabled();
     35     method public abstract boolean needUpgrade(int);
     36     method public abstract android.database.Cursor query(java.lang.String);
     37     method public abstract android.database.Cursor query(java.lang.String, java.lang.Object[]);
     38     method public abstract android.database.Cursor query(android.arch.persistence.db.SupportSQLiteQuery);
     39     method public abstract android.database.Cursor query(android.arch.persistence.db.SupportSQLiteQuery, android.os.CancellationSignal);
     40     method public abstract void setForeignKeyConstraintsEnabled(boolean);
     41     method public abstract void setLocale(java.util.Locale);
     42     method public abstract void setMaxSqlCacheSize(int);
     43     method public abstract long setMaximumSize(long);
     44     method public abstract void setPageSize(long);
     45     method public abstract void setTransactionSuccessful();
     46     method public abstract void setVersion(int);
     47     method public abstract int update(java.lang.String, int, android.content.ContentValues, java.lang.String, java.lang.Object[]);
     48     method public abstract boolean yieldIfContendedSafely();
     49     method public abstract boolean yieldIfContendedSafely(long);
     50   }
     51 
     52   public abstract interface SupportSQLiteOpenHelper {
     53     method public abstract void close();
     54     method public abstract java.lang.String getDatabaseName();
     55     method public abstract android.arch.persistence.db.SupportSQLiteDatabase getReadableDatabase();
     56     method public abstract android.arch.persistence.db.SupportSQLiteDatabase getWritableDatabase();
     57     method public abstract void setWriteAheadLoggingEnabled(boolean);
     58   }
     59 
     60   public static abstract class SupportSQLiteOpenHelper.Callback {
     61     ctor public SupportSQLiteOpenHelper.Callback(int);
     62     method public void onConfigure(android.arch.persistence.db.SupportSQLiteDatabase);
     63     method public void onCorruption(android.arch.persistence.db.SupportSQLiteDatabase);
     64     method public abstract void onCreate(android.arch.persistence.db.SupportSQLiteDatabase);
     65     method public void onDowngrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);
     66     method public void onOpen(android.arch.persistence.db.SupportSQLiteDatabase);
     67     method public abstract void onUpgrade(android.arch.persistence.db.SupportSQLiteDatabase, int, int);
     68     field public final int version;
     69   }
     70 
     71   public static class SupportSQLiteOpenHelper.Configuration {
     72     method public static android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration.Builder builder(android.content.Context);
     73     field public final android.arch.persistence.db.SupportSQLiteOpenHelper.Callback callback;
     74     field public final android.content.Context context;
     75     field public final java.lang.String name;
     76   }
     77 
     78   public static class SupportSQLiteOpenHelper.Configuration.Builder {
     79     method public android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration build();
     80     method public android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration.Builder callback(android.arch.persistence.db.SupportSQLiteOpenHelper.Callback);
     81     method public android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration.Builder name(java.lang.String);
     82   }
     83 
     84   public static abstract interface SupportSQLiteOpenHelper.Factory {
     85     method public abstract android.arch.persistence.db.SupportSQLiteOpenHelper create(android.arch.persistence.db.SupportSQLiteOpenHelper.Configuration);
     86   }
     87 
     88   public abstract interface SupportSQLiteProgram implements java.io.Closeable {
     89     method public abstract void bindBlob(int, byte[]);
     90     method public abstract void bindDouble(int, double);
     91     method public abstract void bindLong(int, long);
     92     method public abstract void bindNull(int);
     93     method public abstract void bindString(int, java.lang.String);
     94     method public abstract void clearBindings();
     95   }
     96 
     97   public abstract interface SupportSQLiteQuery {
     98     method public abstract void bindTo(android.arch.persistence.db.SupportSQLiteProgram);
     99     method public abstract java.lang.String getSql();
    100   }
    101 
    102   public final class SupportSQLiteQueryBuilder {
    103     method public static android.arch.persistence.db.SupportSQLiteQueryBuilder builder(java.lang.String);
    104     method public android.arch.persistence.db.SupportSQLiteQueryBuilder columns(java.lang.String[]);
    105     method public android.arch.persistence.db.SupportSQLiteQuery create();
    106     method public android.arch.persistence.db.SupportSQLiteQueryBuilder distinct();
    107     method public android.arch.persistence.db.SupportSQLiteQueryBuilder groupBy(java.lang.String);
    108     method public android.arch.persistence.db.SupportSQLiteQueryBuilder having(java.lang.String);
    109     method public android.arch.persistence.db.SupportSQLiteQueryBuilder limit(java.lang.String);
    110     method public android.arch.persistence.db.SupportSQLiteQueryBuilder orderBy(java.lang.String);
    111     method public android.arch.persistence.db.SupportSQLiteQueryBuilder selection(java.lang.String, java.lang.Object[]);
    112   }
    113 
    114   public abstract interface SupportSQLiteStatement implements android.arch.persistence.db.SupportSQLiteProgram {
    115     method public abstract void execute();
    116     method public abstract long executeInsert();
    117     method public abstract int executeUpdateDelete();
    118     method public abstract long simpleQueryForLong();
    119     method public abstract java.lang.String simpleQueryForString();
    120   }
    121 
    122 }
    123 
    124