|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISqlJetOptions
Database options.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
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
| Method Detail |
|---|
int getFileFormat()
throws SqlJetException
SqlJetException
void setFileFormat(int fileFormat)
throws SqlJetException
fileFormat -
SqlJetException
boolean isAutovacuum()
throws SqlJetException
SqlJetException
void setAutovacuum(boolean autovacuum)
throws SqlJetException
autovacuum -
SqlJetException
boolean isIncrementalVacuum()
throws SqlJetException
SqlJetException
void setIncrementalVacuum(boolean incrementalVacuum)
throws SqlJetException
incrementalVacuum -
SqlJetException
int getCacheSize()
throws SqlJetException
SqlJetException
void setCacheSize(int pageCacheSize)
throws SqlJetException
pageCacheSize -
SqlJetException
SqlJetEncoding getEncoding()
throws SqlJetException
SqlJetException
void setEncoding(SqlJetEncoding encoding)
throws SqlJetException
encoding -
SqlJetException
boolean isLegacyFileFormat()
throws SqlJetException
SqlJetException
void setLegacyFileFormat(boolean flag)
throws SqlJetException
SqlJetException
int getSchemaVersion()
throws SqlJetException
SqlJetException
void setSchemaVersion(int version)
throws SqlJetException
version -
SqlJetException
void changeSchemaVersion()
throws SqlJetException
SqlJetException
boolean verifySchemaVersion(boolean throwIfStale)
throws SqlJetException
throwIfStale -
SqlJetException
int getUserVersion()
throws SqlJetException
SqlJetException
void setUserVersion(int userCookie)
throws SqlJetException
userCookie -
SqlJetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||