| java.lang.Object org.h2.engine.Database
Database | public class Database implements DataHandler(Code) | | There is one database object per open database.
The format of the meta data table is:
id int, headPos int (for indexes), objectType int, sql varchar
since: 2004-04-15 22:49 |
Method Summary | |
public synchronized void | addDatabaseObject(Session session, DbObject obj) | public synchronized void | addSchemaObject(Session session, SchemaObject obj) | public synchronized int | allocateObjectId(boolean needFresh, boolean dataFile) | public boolean | areEqual(Value a, Value b) | public void | checkFilePasswordHash(String c, byte[] hash) | public void | checkPowerOff() | public void | checkWritingAllowed() | synchronized void | close(boolean fromShutdownHook) | public int | compare(Value a, Value b) | public int | compareTypeSave(Value a, Value b) | public synchronized Session | createSession(User user) | public String | createTempFile() | public void | deleteLogFileLater(String fileName) | public void | exceptionThrown(SQLException e, String sql) | public static boolean | exists(String name) | public UserAggregate | findAggregate(String name) | public Comment | findComment(DbObject object) | public FunctionAlias | findFunctionAlias(String name) | public Role | findRole(String roleName) | public Schema | findSchema(String schemaName) | public Setting | findSetting(String name) | public User | findUser(String name) | public UserDataType | findUserDataType(String name) | public synchronized void | freeUpDiskSpace() | public ObjectArray | getAllAggregates() | public ObjectArray | getAllComments() | public ObjectArray | getAllFunctionAliases() | public ObjectArray | getAllRights() | public ObjectArray | getAllRoles() | public ObjectArray | getAllSchemaObjects(int type) | public ObjectArray | getAllSchemas() | public ObjectArray | getAllSettings() | public ObjectArray | getAllStorages() | public ObjectArray | getAllUserDataTypes() | public ObjectArray | getAllUsers() | public int | getAllowLiterals() | public int | getCacheSize() | public String | getCacheType() | public int | getChecksum(byte[] data, int start, int end) | public String | getCluster() | public CompareMode | getCompareMode() | public DiskFile | getDataFile() | public DataPage | getDataPage() | public String | getDatabasePath() | public Session | getExclusiveSession() | public boolean | getIgnoreCase() | public DiskFile | getIndexFile() | public boolean | getIndexSummaryValid() | public String | getLobCompressionAlgorithm(int type) | public SmallLRUCache | getLobFileListCache() | public boolean | getLobFilesInDirectories() | public Object | getLobSyncObject() | public int | getLockMode() | public LogSystem | getLog() | public boolean | getLogIndexChanges() | public static byte[] | getMagic(boolean textStorage) | public byte[] | getMagic() | public int | getMaxLengthInplaceLob() | public int | getMaxMemoryRows() | public int | getMaxMemoryUndo() | public int | getMaxOperationMemory() | public Mode | getMode() | public long | getModificationDataId() | public long | getModificationMetaId() | public boolean | getMultiThreaded() | public String | getName() | public long | getNextModificationDataId() | public long | getNextModificationMetaId() | public boolean | getOptimizeReuseResults() | public int | getPowerOffCount() | public Role | getPublicRole() | public boolean | getReadOnly() | public boolean | getRecovery() | public boolean | getReferentialIntegrity() | public Schema | getSchema(String schemaName) | public int | getSessionCount() | public Session[] | getSessions() | public String | getShortName() | public Storage | getStorage(int id, DiskFile file) | public Storage | getStorage(RecordReader reader, int id, boolean dataFile) Get or create the specified storage object. | public Session | getSystemSession() | public String | getTempTableName(int sessionId) | public boolean | getTextStorage() | public Trace | getTrace(String module) | public TraceSystem | getTraceSystem() | public User | getUser(String name, SQLException notFound) | public User | getUser(String name) | public int | getWriteDelay() | public void | handleInvalidChecksum() | public void | invalidateIndexSummary() | public boolean | isClosing() | public boolean | isMultiVersion() | public boolean | isPersistent() | public boolean | isStarting() | public static boolean | isTextStorage(String fileName, boolean defaultValue) | public Class | loadUserClass(String className) | public void | notifyFileSize(long length) | public FileStore | openFile(String name, String mode, boolean mustExist) | public void | opened() | public synchronized void | removeDatabaseObject(Session session, DbObject obj) | public synchronized void | removeMeta(Session session, int id) | public synchronized void | removeSchemaObject(Session session, SchemaObject obj) | public synchronized void | removeSession(Session session) | public void | removeStorage(int id, DiskFile file) | public synchronized void | renameDatabaseObject(Session session, DbObject obj, String newName) Rename a database object. | public synchronized void | renameSchemaObject(Session session, SchemaObject obj, String newName) Rename a schema object. | public void | setAllowLiterals(int value) | public synchronized void | setCacheSize(int kb) | public synchronized void | setCloseDelay(int value) | public void | setCluster(String cluster) | public void | setCompareMode(CompareMode compareMode) | public synchronized void | setDeleteFilesOnDisconnect(boolean b) | public void | setEventListener(String className) | public void | setExclusiveSession(Session session) | public void | setIgnoreCase(boolean b) | public static void | setInitialPowerOffCount(int count) | public void | setLobCompressionAlgorithm(String stringValue) | public void | setLockMode(int lockMode) | public synchronized void | setLog(int level) | public synchronized void | setMasterUser(User user) | public void | setMaxLengthInplaceLob(int value) | public synchronized void | setMaxLogSize(long value) | public void | setMaxMemoryRows(int value) | public void | setMaxMemoryUndo(int value) | public void | setMaxOperationMemory(int maxOperationMemory) | public void | setMode(Mode mode) | public void | setMultiThreaded(boolean multiThreaded) | public void | setOptimizeReuseResults(boolean b) | public void | setPowerOffCount(int count) | public void | setProgress(int state, String name, int x, int max) Set the progress of a long running operation. | public void | setReferentialIntegrity(boolean b) | public void | setWriteDelay(int value) | public void | sync() | public synchronized void | update(Session session, DbObject obj) |
allocateObjectId | public synchronized int allocateObjectId(boolean needFresh, boolean dataFile)(Code) | | |
close | synchronized void close(boolean fromShutdownHook)(Code) | | |
getAllowLiterals | public int getAllowLiterals()(Code) | | |
getCacheSize | public int getCacheSize()(Code) | | |
getChecksum | public int getChecksum(byte[] data, int start, int end)(Code) | | |
getIgnoreCase | public boolean getIgnoreCase()(Code) | | |
getIndexSummaryValid | public boolean getIndexSummaryValid()(Code) | | |
getLobCompressionAlgorithm | public String getLobCompressionAlgorithm(int type)(Code) | | |
getLobFilesInDirectories | public boolean getLobFilesInDirectories()(Code) | | |
getLockMode | public int getLockMode()(Code) | | |
getLogIndexChanges | public boolean getLogIndexChanges()(Code) | | |
getMagic | public static byte[] getMagic(boolean textStorage)(Code) | | |
getMagic | public byte[] getMagic()(Code) | | |
getMaxLengthInplaceLob | public int getMaxLengthInplaceLob()(Code) | | |
getMaxMemoryRows | public int getMaxMemoryRows()(Code) | | |
getMaxMemoryUndo | public int getMaxMemoryUndo()(Code) | | |
getMaxOperationMemory | public int getMaxOperationMemory()(Code) | | |
getModificationDataId | public long getModificationDataId()(Code) | | |
getModificationMetaId | public long getModificationMetaId()(Code) | | |
getMultiThreaded | public boolean getMultiThreaded()(Code) | | |
getNextModificationDataId | public long getNextModificationDataId()(Code) | | |
getNextModificationMetaId | public long getNextModificationMetaId()(Code) | | |
getOptimizeReuseResults | public boolean getOptimizeReuseResults()(Code) | | |
getPowerOffCount | public int getPowerOffCount()(Code) | | |
getReadOnly | public boolean getReadOnly()(Code) | | |
getRecovery | public boolean getRecovery()(Code) | | |
getReferentialIntegrity | public boolean getReferentialIntegrity()(Code) | | |
getSessionCount | public int getSessionCount()(Code) | | |
getStorage | public Storage getStorage(RecordReader reader, int id, boolean dataFile)(Code) | | Get or create the specified storage object.
Parameters: reader - the record reader Parameters: id - the object id Parameters: dataFile - true if the data is in the data file the storage |
getTempTableName | public String getTempTableName(int sessionId)(Code) | | |
getTextStorage | public boolean getTextStorage()(Code) | | |
getWriteDelay | public int getWriteDelay()(Code) | | |
isClosing | public boolean isClosing()(Code) | | |
isMultiVersion | public boolean isMultiVersion()(Code) | | |
isPersistent | public boolean isPersistent()(Code) | | |
isStarting | public boolean isStarting()(Code) | | |
notifyFileSize | public void notifyFileSize(long length)(Code) | | |
renameDatabaseObject | public synchronized void renameDatabaseObject(Session session, DbObject obj, String newName) throws SQLException(Code) | | Rename a database object.
Parameters: session - the session Parameters: obj - the object Parameters: newName - the new name |
renameSchemaObject | public synchronized void renameSchemaObject(Session session, SchemaObject obj, String newName) throws SQLException(Code) | | Rename a schema object.
Parameters: session - the session Parameters: obj - the object Parameters: newName - the new name |
setAllowLiterals | public void setAllowLiterals(int value)(Code) | | |
setCloseDelay | public synchronized void setCloseDelay(int value)(Code) | | |
setDeleteFilesOnDisconnect | public synchronized void setDeleteFilesOnDisconnect(boolean b)(Code) | | |
setExclusiveSession | public void setExclusiveSession(Session session)(Code) | | |
setIgnoreCase | public void setIgnoreCase(boolean b)(Code) | | |
setInitialPowerOffCount | public static void setInitialPowerOffCount(int count)(Code) | | |
setLobCompressionAlgorithm | public void setLobCompressionAlgorithm(String stringValue)(Code) | | |
setLockMode | public void setLockMode(int lockMode)(Code) | | |
setMaxLengthInplaceLob | public void setMaxLengthInplaceLob(int value)(Code) | | |
setMaxLogSize | public synchronized void setMaxLogSize(long value)(Code) | | |
setMaxMemoryRows | public void setMaxMemoryRows(int value)(Code) | | |
setMaxMemoryUndo | public void setMaxMemoryUndo(int value)(Code) | | |
setMaxOperationMemory | public void setMaxOperationMemory(int maxOperationMemory)(Code) | | |
setMultiThreaded | public void setMultiThreaded(boolean multiThreaded)(Code) | | |
setOptimizeReuseResults | public void setOptimizeReuseResults(boolean b)(Code) | | |
setPowerOffCount | public void setPowerOffCount(int count)(Code) | | |
setProgress | public void setProgress(int state, String name, int x, int max)(Code) | | Set the progress of a long running operation.
This method calls the
DatabaseEventListener if one is registered.
Parameters: state - the DatabaseEventListener state Parameters: name - the object name Parameters: x - the current position Parameters: max - the highest value |
setReferentialIntegrity | public void setReferentialIntegrity(boolean b)(Code) | | |
setWriteDelay | public void setWriteDelay(int value)(Code) | | |
|
|