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
SqlJetException
public java.lang.String toString()
toString
in class java.lang.Object
public int getSchemaVersion() throws SqlJetException
ISqlJetOptions
getSchemaVersion
in interface ISqlJetOptions
SqlJetException
public int getFileFormat() throws SqlJetException
ISqlJetOptions
getFileFormat
in interface ISqlJetOptions
SqlJetException
public int getCacheSize() throws SqlJetException
ISqlJetOptions
getCacheSize
in interface ISqlJetOptions
SqlJetException
public boolean isAutovacuum() throws SqlJetException
ISqlJetOptions
isAutovacuum
in interface ISqlJetOptions
SqlJetException
public SqlJetEncoding getEncoding() throws SqlJetException
ISqlJetOptions
getEncoding
in interface ISqlJetOptions
SqlJetException
public boolean isLegacyFileFormat() throws SqlJetException
ISqlJetOptions
isLegacyFileFormat
in interface ISqlJetOptions
SqlJetException
public void setLegacyFileFormat(boolean flag) throws SqlJetException
ISqlJetOptions
setLegacyFileFormat
in interface ISqlJetOptions
SqlJetException
public int getUserVersion() throws SqlJetException
ISqlJetOptions
getUserVersion
in interface ISqlJetOptions
SqlJetException
public boolean isIncrementalVacuum() throws SqlJetException
ISqlJetOptions
isIncrementalVacuum
in interface ISqlJetOptions
SqlJetException
public void setSchemaVersion(int version) throws SqlJetException
ISqlJetOptions
setSchemaVersion
in interface ISqlJetOptions
SqlJetException
public boolean verifySchemaVersion(boolean throwIfStale) throws SqlJetException
ISqlJetOptions
verifySchemaVersion
in interface ISqlJetOptions
SqlJetException
public void changeSchemaVersion() throws SqlJetException
ISqlJetOptions
changeSchemaVersion
in interface ISqlJetOptions
SqlJetException
public void setUserVersion(int userCookie) throws SqlJetException
ISqlJetOptions
setUserVersion
in interface ISqlJetOptions
SqlJetException
public void setFileFormat(int fileFormat) throws SqlJetException
ISqlJetOptions
setFileFormat
in interface ISqlJetOptions
SqlJetException
public void setCacheSize(int pageCacheSize) throws SqlJetException
ISqlJetOptions
setCacheSize
in interface ISqlJetOptions
SqlJetException
public void setAutovacuum(boolean autovacuum) throws SqlJetException
ISqlJetOptions
setAutovacuum
in interface ISqlJetOptions
SqlJetException
public void setEncoding(SqlJetEncoding encoding) throws SqlJetException
ISqlJetOptions
setEncoding
in interface ISqlJetOptions
SqlJetException
public void setIncrementalVacuum(boolean incrementalVacuum) throws SqlJetException
ISqlJetOptions
setIncrementalVacuum
in interface ISqlJetOptions
SqlJetException
Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.