|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.sqljet.core.internal.table.SqlJetOptions
public class SqlJetOptions
| Field Summary |
|---|
| Fields inherited from interface org.tmatesoft.sqljet.core.table.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 Summary | |
|---|---|
SqlJetOptions(ISqlJetBtree btree,
ISqlJetDbHandle dbHandle)
|
|
| 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. |
java.lang.String |
toString()
|
boolean |
verifySchemaVersion(boolean throwIfStale)
Verify schema cookie and return true if it is unchanged by other process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SqlJetOptions(ISqlJetBtree btree,
ISqlJetDbHandle dbHandle)
throws SqlJetException
SqlJetException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public int getSchemaVersion()
throws SqlJetException
ISqlJetOptions
getSchemaVersion in interface ISqlJetOptionsSqlJetException
public int getFileFormat()
throws SqlJetException
ISqlJetOptions
getFileFormat in interface ISqlJetOptionsSqlJetException
public int getCacheSize()
throws SqlJetException
ISqlJetOptions
getCacheSize in interface ISqlJetOptionsSqlJetException
public boolean isAutovacuum()
throws SqlJetException
ISqlJetOptions
isAutovacuum in interface ISqlJetOptionsSqlJetException
public SqlJetEncoding getEncoding()
throws SqlJetException
ISqlJetOptions
getEncoding in interface ISqlJetOptionsSqlJetException
public boolean isLegacyFileFormat()
throws SqlJetException
ISqlJetOptions
isLegacyFileFormat in interface ISqlJetOptionsSqlJetException
public void setLegacyFileFormat(boolean flag)
throws SqlJetException
ISqlJetOptions
setLegacyFileFormat in interface ISqlJetOptionsSqlJetException
public int getUserVersion()
throws SqlJetException
ISqlJetOptions
getUserVersion in interface ISqlJetOptionsSqlJetException
public boolean isIncrementalVacuum()
throws SqlJetException
ISqlJetOptions
isIncrementalVacuum in interface ISqlJetOptionsSqlJetException
public void setSchemaVersion(int version)
throws SqlJetException
ISqlJetOptions
setSchemaVersion in interface ISqlJetOptionsSqlJetException
public boolean verifySchemaVersion(boolean throwIfStale)
throws SqlJetException
ISqlJetOptions
verifySchemaVersion in interface ISqlJetOptionsSqlJetException
public void changeSchemaVersion()
throws SqlJetException
ISqlJetOptions
changeSchemaVersion in interface ISqlJetOptionsSqlJetException
public void setUserVersion(int userCookie)
throws SqlJetException
ISqlJetOptions
setUserVersion in interface ISqlJetOptionsSqlJetException
public void setFileFormat(int fileFormat)
throws SqlJetException
ISqlJetOptions
setFileFormat in interface ISqlJetOptionsSqlJetException
public void setCacheSize(int pageCacheSize)
throws SqlJetException
ISqlJetOptions
setCacheSize in interface ISqlJetOptionsSqlJetException
public void setAutovacuum(boolean autovacuum)
throws SqlJetException
ISqlJetOptions
setAutovacuum in interface ISqlJetOptionsSqlJetException
public void setEncoding(SqlJetEncoding encoding)
throws SqlJetException
ISqlJetOptions
setEncoding in interface ISqlJetOptionsSqlJetException
public void setIncrementalVacuum(boolean incrementalVacuum)
throws SqlJetException
ISqlJetOptions
setIncrementalVacuum in interface ISqlJetOptionsSqlJetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||