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, unregisterFileSystem
public 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
SqlJetException
public 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.SqlJetException
public java.lang.Object runWriteTransaction(ISqlJetMapTransaction transaction) throws SqlJetException
transaction
- to run.ISqlJetMapTransaction.run(SqlJetMapDb)
call.SqlJetException
public java.lang.Object runReadTransaction(ISqlJetMapTransaction transaction) throws SqlJetException
transaction
- transaction to run.ISqlJetMapTransaction.run(SqlJetMapDb)
call.SqlJetException
public java.lang.Object runSynchronized(ISqlJetMapTransaction transaction) throws SqlJetException
transaction
- transaction to run.ISqlJetMapTransaction.run(SqlJetMapDb)
call.SqlJetException
protected void readSchema() throws SqlJetException
SqlJetEngine
readSchema
in class SqlJetEngine
SqlJetException
public java.util.Set<java.lang.String> getMapNames() throws SqlJetException
SqlJetException
public ISqlJetMapDef getMapDef(java.lang.String mapName) throws SqlJetException
mapName
- name of the map to get definition for.SqlJetException
public ISqlJetMapDef createMap(java.lang.String mapName) throws SqlJetException
mapName
- name of the map to created.SqlJetException
public ISqlJetMap getMap(java.lang.String mapName) throws SqlJetException
mapName
- name of the map to get.SqlJetException
Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.