Package android.database.sqlite
Class SQLiteGlobal
- java.lang.Object
-
- android.database.sqlite.SQLiteGlobal
-
public final class SQLiteGlobal extends Object
Provides access to SQLite functions that affect all database connection, such as memory management. The native code associated with SQLiteGlobal is also sets global configuration options using sqlite3_config() then calls sqlite3_initialize() to ensure that the SQLite library is properly initialized exactly once before any other framework or application code has a chance to run. Verbose SQLite logging is enabled if the "log.tag.SQLiteLog" property is set to "V". (perSQLiteDebug.DEBUG_SQL_LOG).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetDefaultJournalMode()Gets the default journal mode when WAL is not in use.static intgetDefaultPageSize()Gets the default page size to use when creating a database.static StringgetDefaultSyncMode()Gets the default database synchronization mode when WAL is not in use.static intgetJournalSizeLimit()Gets the journal size limit in bytes.static intgetWALAutoCheckpoint()Gets the WAL auto-checkpoint integer in database pages.static intgetWALConnectionPoolSize()Gets the connection pool size when in WAL mode.static StringgetWALSyncMode()Gets the database synchronization mode when in WAL mode.static intreleaseMemory()Attempts to release memory by pruning the SQLite page cache and other internal data structures.
-
-
-
Method Detail
-
releaseMemory
public static int releaseMemory()
Attempts to release memory by pruning the SQLite page cache and other internal data structures.- Returns:
- The number of bytes that were freed.
-
getDefaultPageSize
public static int getDefaultPageSize()
Gets the default page size to use when creating a database.
-
getDefaultJournalMode
public static String getDefaultJournalMode()
Gets the default journal mode when WAL is not in use.
-
getJournalSizeLimit
public static int getJournalSizeLimit()
Gets the journal size limit in bytes.
-
getDefaultSyncMode
public static String getDefaultSyncMode()
Gets the default database synchronization mode when WAL is not in use.
-
getWALSyncMode
public static String getWALSyncMode()
Gets the database synchronization mode when in WAL mode.
-
getWALAutoCheckpoint
public static int getWALAutoCheckpoint()
Gets the WAL auto-checkpoint integer in database pages.
-
getWALConnectionPoolSize
public static int getWALConnectionPoolSize()
Gets the connection pool size when in WAL mode.
-
-