public interface ISqlJetOptions
| Modifier and Type | Field and Description |
|---|---|
static SqlJetEncoding |
SQLJET_DEFAULT_ENCODING
Default encoding.
|
static java.lang.String |
SQLJET_DEFAULT_ENCODING_PROPERTY
Name of system property for default encoding.
|
static int |
SQLJET_DEFAULT_FILE_FORMAT
Default file format.
|
static java.lang.String |
SQLJET_DEFAULT_FILE_FORMAT_PROPERTY
Name of system property for default file format.
|
static boolean |
SQLJET_LEGACY_FILE_FORMAT
Legacy file format support.
|
static java.lang.String |
SQLJET_LEGACY_FILE_FORMAT_PROPERTY
Name of system property for legacy file format support.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeSchemaVersion()
Change SchemaCookie.
|
int |
getCacheSize()
Size of the page cache.
|
SqlJetEncoding |
getEncoding()
Db text encoding.
|
int |
getFileFormat()
File format of schema layer.
|
int |
getSchemaVersion()
Schema cookie.
|
int |
getUserVersion()
The user cookie.
|
boolean |
isAutovacuum()
Use freelist if false.
|
boolean |
isIncrementalVacuum()
Incremental-vacuum flag.
|
boolean |
isLegacyFileFormat()
Checks if legacy file format is used for the new databases.
|
void |
setAutovacuum(boolean autovacuum)
Set autovacuum flag.
|
void |
setCacheSize(int pageCacheSize)
Set page cache's size.
|
void |
setEncoding(SqlJetEncoding encoding)
Set encoding.
|
void |
setFileFormat(int fileFormat)
Set file format.
|
void |
setIncrementalVacuum(boolean incrementalVacuum)
Set incremental vacuum flag.
|
void |
setLegacyFileFormat(boolean flag)
Instructs SQLJet to use legacy file format for all new databases.
|
void |
setSchemaVersion(int version)
Set schema version.
|
void |
setUserVersion(int userCookie)
Set user's cookie.
|
boolean |
verifySchemaVersion(boolean throwIfStale)
Verify schema cookie and return true if it is unchanged by other process.
|
static final java.lang.String SQLJET_DEFAULT_ENCODING_PROPERTY
static final SqlJetEncoding SQLJET_DEFAULT_ENCODING
static final java.lang.String SQLJET_LEGACY_FILE_FORMAT_PROPERTY
static final boolean SQLJET_LEGACY_FILE_FORMAT
static final java.lang.String SQLJET_DEFAULT_FILE_FORMAT_PROPERTY
static final int SQLJET_DEFAULT_FILE_FORMAT
int getFileFormat()
throws SqlJetException
SqlJetExceptionvoid setFileFormat(int fileFormat)
throws SqlJetException
fileFormat - SqlJetExceptionboolean isAutovacuum()
throws SqlJetException
SqlJetExceptionvoid setAutovacuum(boolean autovacuum)
throws SqlJetException
autovacuum - SqlJetExceptionboolean isIncrementalVacuum()
throws SqlJetException
SqlJetExceptionvoid setIncrementalVacuum(boolean incrementalVacuum)
throws SqlJetException
incrementalVacuum - SqlJetExceptionint getCacheSize()
throws SqlJetException
SqlJetExceptionvoid setCacheSize(int pageCacheSize)
throws SqlJetException
pageCacheSize - SqlJetExceptionSqlJetEncoding getEncoding() throws SqlJetException
SqlJetExceptionvoid setEncoding(SqlJetEncoding encoding) throws SqlJetException
encoding - SqlJetExceptionboolean isLegacyFileFormat()
throws SqlJetException
SqlJetExceptionvoid setLegacyFileFormat(boolean flag)
throws SqlJetException
SqlJetExceptionint getSchemaVersion()
throws SqlJetException
SqlJetExceptionvoid setSchemaVersion(int version)
throws SqlJetException
version - SqlJetExceptionvoid changeSchemaVersion()
throws SqlJetException
SqlJetExceptionboolean verifySchemaVersion(boolean throwIfStale)
throws SqlJetException
throwIfStale - SqlJetExceptionint getUserVersion()
throws SqlJetException
SqlJetExceptionvoid setUserVersion(int userCookie)
throws SqlJetException
userCookie - SqlJetException