public class SqlJetMapDb extends SqlJetEngine
| Modifier and Type | Field and Description |
|---|---|
static java.io.File |
IN_MEMORY
File name for in memory database.
|
static java.lang.String |
MODULE_NAME |
btree, dbHandle, file, FILE_SYSTEM_MANAGER, fileSystem, open, writable| Constructor and Description |
|---|
SqlJetMapDb(java.io.File file,
boolean writable) |
| Modifier and Type | Method and Description |
|---|---|
ISqlJetMapDef |
createMap(java.lang.String mapName) |
ISqlJetMap |
getMap(java.lang.String mapName) |
ISqlJetMapDef |
getMapDef(java.lang.String mapName) |
java.util.Set<java.lang.String> |
getMapNames() |
static SqlJetMapDb |
open(java.io.File file,
boolean writable) |
protected void |
readSchema()
Reads database schema and options.
|
java.lang.Object |
runReadTransaction(ISqlJetMapTransaction transaction) |
java.lang.Object |
runSynchronized(ISqlJetMapTransaction transaction) |
java.lang.Object |
runTransaction(SqlJetTransactionMode mode,
ISqlJetMapTransaction transaction) |
java.lang.Object |
runWriteTransaction(ISqlJetMapTransaction transaction) |
beginTransaction, checkOpen, close, closeResources, commit, finalize, getBusyHandler, getCacheSize, getFile, getFileSystem, getJournalMode, getMutex, getOptions, getSafetyLevel, getSchemaInternal, getTransactionMode, isInTransaction, isOpen, isWritable, open, refreshSchema, registerFileSystem, rollback, runEngineTransaction, runSynchronized, setBusyHandler, setCacheSize, setJournalMode, setSafetyLevel, unregisterFileSystempublic static final java.io.File IN_MEMORY
public static final java.lang.String MODULE_NAME
public SqlJetMapDb(java.io.File file,
boolean writable)
file - database file.writable - true if caller needs write access to the database.public static SqlJetMapDb open(java.io.File file, boolean writable) throws SqlJetException
SqlJetExceptionpublic java.lang.Object runTransaction(SqlJetTransactionMode mode, ISqlJetMapTransaction transaction) throws SqlJetException
mode - mode in which to run transaction.transaction - transaction to run.ISqlJetMapTransaction.run(SqlJetMapDb) call.SqlJetExceptionpublic java.lang.Object runWriteTransaction(ISqlJetMapTransaction transaction) throws SqlJetException
transaction - to run.ISqlJetMapTransaction.run(SqlJetMapDb) call.SqlJetExceptionpublic java.lang.Object runReadTransaction(ISqlJetMapTransaction transaction) throws SqlJetException
transaction - transaction to run.ISqlJetMapTransaction.run(SqlJetMapDb) call.SqlJetExceptionpublic java.lang.Object runSynchronized(ISqlJetMapTransaction transaction) throws SqlJetException
transaction - transaction to run.ISqlJetMapTransaction.run(SqlJetMapDb) call.SqlJetExceptionprotected void readSchema()
throws SqlJetException
SqlJetEnginereadSchema in class SqlJetEngineSqlJetExceptionpublic java.util.Set<java.lang.String> getMapNames()
throws SqlJetException
SqlJetExceptionpublic ISqlJetMapDef getMapDef(java.lang.String mapName) throws SqlJetException
mapName - name of the map to get definition for.SqlJetExceptionpublic ISqlJetMapDef createMap(java.lang.String mapName) throws SqlJetException
mapName - name of the map to created.SqlJetExceptionpublic ISqlJetMap getMap(java.lang.String mapName) throws SqlJetException
mapName - name of the map to get.SqlJetExceptionCopyright © 2009-2010 TMate Software Ltd. All Rights Reserved.