public class SqlJetOptions extends java.lang.Object implements ISqlJetOptions
SQLJET_DEFAULT_ENCODING, SQLJET_DEFAULT_ENCODING_PROPERTY, SQLJET_DEFAULT_FILE_FORMAT, SQLJET_DEFAULT_FILE_FORMAT_PROPERTY, SQLJET_LEGACY_FILE_FORMAT, SQLJET_LEGACY_FILE_FORMAT_PROPERTY| Constructor and Description |
|---|
SqlJetOptions(ISqlJetBtree btree,
ISqlJetDbHandle dbHandle) |
| 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.
|
java.lang.String |
toString() |
boolean |
verifySchemaVersion(boolean throwIfStale)
Verify schema cookie and return true if it is unchanged by other process.
|
public SqlJetOptions(ISqlJetBtree btree, ISqlJetDbHandle dbHandle) throws SqlJetException
SqlJetExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getSchemaVersion()
throws SqlJetException
ISqlJetOptionsgetSchemaVersion in interface ISqlJetOptionsSqlJetExceptionpublic int getFileFormat()
throws SqlJetException
ISqlJetOptionsgetFileFormat in interface ISqlJetOptionsSqlJetExceptionpublic int getCacheSize()
throws SqlJetException
ISqlJetOptionsgetCacheSize in interface ISqlJetOptionsSqlJetExceptionpublic boolean isAutovacuum()
throws SqlJetException
ISqlJetOptionsisAutovacuum in interface ISqlJetOptionsSqlJetExceptionpublic SqlJetEncoding getEncoding() throws SqlJetException
ISqlJetOptionsgetEncoding in interface ISqlJetOptionsSqlJetExceptionpublic boolean isLegacyFileFormat()
throws SqlJetException
ISqlJetOptionsisLegacyFileFormat in interface ISqlJetOptionsSqlJetExceptionpublic void setLegacyFileFormat(boolean flag)
throws SqlJetException
ISqlJetOptionssetLegacyFileFormat in interface ISqlJetOptionsSqlJetExceptionpublic int getUserVersion()
throws SqlJetException
ISqlJetOptionsgetUserVersion in interface ISqlJetOptionsSqlJetExceptionpublic boolean isIncrementalVacuum()
throws SqlJetException
ISqlJetOptionsisIncrementalVacuum in interface ISqlJetOptionsSqlJetExceptionpublic void setSchemaVersion(int version)
throws SqlJetException
ISqlJetOptionssetSchemaVersion in interface ISqlJetOptionsSqlJetExceptionpublic boolean verifySchemaVersion(boolean throwIfStale)
throws SqlJetException
ISqlJetOptionsverifySchemaVersion in interface ISqlJetOptionsSqlJetExceptionpublic void changeSchemaVersion()
throws SqlJetException
ISqlJetOptionschangeSchemaVersion in interface ISqlJetOptionsSqlJetExceptionpublic void setUserVersion(int userCookie)
throws SqlJetException
ISqlJetOptionssetUserVersion in interface ISqlJetOptionsSqlJetExceptionpublic void setFileFormat(int fileFormat)
throws SqlJetException
ISqlJetOptionssetFileFormat in interface ISqlJetOptionsSqlJetExceptionpublic void setCacheSize(int pageCacheSize)
throws SqlJetException
ISqlJetOptionssetCacheSize in interface ISqlJetOptionsSqlJetExceptionpublic void setAutovacuum(boolean autovacuum)
throws SqlJetException
ISqlJetOptionssetAutovacuum in interface ISqlJetOptionsSqlJetExceptionpublic void setEncoding(SqlJetEncoding encoding) throws SqlJetException
ISqlJetOptionssetEncoding in interface ISqlJetOptionsSqlJetExceptionpublic void setIncrementalVacuum(boolean incrementalVacuum)
throws SqlJetException
ISqlJetOptionssetIncrementalVacuum in interface ISqlJetOptionsSqlJetExceptionCopyright © 2009-2010 TMate Software Ltd. All Rights Reserved.