-
- All Implemented Interfaces:
-
androidx.sqlite.db.SupportSQLiteDatabase,java.io.Closeable,java.lang.AutoCloseable
public final class SqliteOrgDatabase implements SupportSQLiteDatabase
Mirrored from: https://github.com/ivanovsuper/android-architecture-components/blob/master/BasicSample/app/src/main/java/com/example/android/persistence/db/cipher/CipherSQLiteDatabase.java
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSqliteOrgDatabase.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisDbLockedByCurrentThreadprivate Integerversionprivate final LongmaximumSizeprivate LongpageSizeprivate final BooleanisReadOnlyprivate final BooleanisOpenprivate final Stringpathprivate final BooleanisWriteAheadLoggingEnabledprivate final List<Pair<String, String>>attachedDbsprivate final BooleanisDatabaseIntegrityOkprivate final BooleanisExecPerConnectionSQLSupported
-
Constructor Summary
Constructors Constructor Description SqliteOrgDatabase(SQLiteDatabase delegate)
-
Method Summary
-
-
Method Detail
-
getIsDbLockedByCurrentThread
Boolean getIsDbLockedByCurrentThread()
-
getVersion
Integer getVersion()
-
setVersion
Unit setVersion(Integer version)
-
getMaximumSize
Long getMaximumSize()
-
getPageSize
Long getPageSize()
-
setPageSize
Unit setPageSize(Long pageSize)
-
getIsReadOnly
Boolean getIsReadOnly()
-
getIsWriteAheadLoggingEnabled
Boolean getIsWriteAheadLoggingEnabled()
-
getAttachedDbs
List<Pair<String, String>> getAttachedDbs()
-
getIsDatabaseIntegrityOk
Boolean getIsDatabaseIntegrityOk()
-
getIsExecPerConnectionSQLSupported
Boolean getIsExecPerConnectionSQLSupported()
-
compileStatement
SupportSQLiteStatement compileStatement(String sql)
-
beginTransaction
Unit beginTransaction()
-
beginTransactionNonExclusive
Unit beginTransactionNonExclusive()
-
beginTransactionWithListener
Unit beginTransactionWithListener(SQLiteTransactionListener transactionListener)
-
beginTransactionWithListenerNonExclusive
Unit beginTransactionWithListenerNonExclusive(SQLiteTransactionListener transactionListener)
-
endTransaction
Unit endTransaction()
-
setTransactionSuccessful
Unit setTransactionSuccessful()
-
inTransaction
Boolean inTransaction()
-
yieldIfContendedSafely
Boolean yieldIfContendedSafely()
-
yieldIfContendedSafely
Boolean yieldIfContendedSafely(Long sleepAfterYieldDelayMillis)
-
setMaximumSize
Long setMaximumSize(Long numBytes)
-
query
Cursor query(SupportSQLiteQuery query)
-
query
Cursor query(SupportSQLiteQuery query, CancellationSignal cancellationSignal)
-
insert
Long insert(String table, Integer conflictAlgorithm, ContentValues values)
-
update
Integer update(String table, Integer conflictAlgorithm, ContentValues values, String whereClause, Array<out Object> whereArgs)
-
needUpgrade
Boolean needUpgrade(Integer newVersion)
-
setMaxSqlCacheSize
Unit setMaxSqlCacheSize(Integer cacheSize)
-
setForeignKeyConstraintsEnabled
Unit setForeignKeyConstraintsEnabled(Boolean enabled)
-
enableWriteAheadLogging
Boolean enableWriteAheadLogging()
-
disableWriteAheadLogging
Unit disableWriteAheadLogging()
-
-
-
-