Java Doc for Database.java in  » Database-DBMS » h2database » org » h2 » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » h2database » org.h2.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Constructor Summary
public  Database(String name, ConnectionInfo ci, String cipher)
    

Method Summary
public synchronized  voidaddDatabaseObject(Session session, DbObject obj)
    
public synchronized  voidaddSchemaObject(Session session, SchemaObject obj)
    
public synchronized  intallocateObjectId(boolean needFresh, boolean dataFile)
    
public  booleanareEqual(Value a, Value b)
    
public  voidcheckFilePasswordHash(String c, byte[] hash)
    
public  voidcheckPowerOff()
    
public  voidcheckWritingAllowed()
    
synchronized  voidclose(boolean fromShutdownHook)
    
public  intcompare(Value a, Value b)
    
public  intcompareTypeSave(Value a, Value b)
    
public synchronized  SessioncreateSession(User user)
    
public  StringcreateTempFile()
    
public  voiddeleteLogFileLater(String fileName)
    
public  voidexceptionThrown(SQLException e, String sql)
    
public static  booleanexists(String name)
    
public  UserAggregatefindAggregate(String name)
    
public  CommentfindComment(DbObject object)
    
public  FunctionAliasfindFunctionAlias(String name)
    
public  RolefindRole(String roleName)
    
public  SchemafindSchema(String schemaName)
    
public  SettingfindSetting(String name)
    
public  UserfindUser(String name)
    
public  UserDataTypefindUserDataType(String name)
    
public synchronized  voidfreeUpDiskSpace()
    
public  ObjectArraygetAllAggregates()
    
public  ObjectArraygetAllComments()
    
public  ObjectArraygetAllFunctionAliases()
    
public  ObjectArraygetAllRights()
    
public  ObjectArraygetAllRoles()
    
public  ObjectArraygetAllSchemaObjects(int type)
    
public  ObjectArraygetAllSchemas()
    
public  ObjectArraygetAllSettings()
    
public  ObjectArraygetAllStorages()
    
public  ObjectArraygetAllUserDataTypes()
    
public  ObjectArraygetAllUsers()
    
public  intgetAllowLiterals()
    
public  intgetCacheSize()
    
public  StringgetCacheType()
    
public  intgetChecksum(byte[] data, int start, int end)
    
public  StringgetCluster()
    
public  CompareModegetCompareMode()
    
public  DiskFilegetDataFile()
    
public  DataPagegetDataPage()
    
public  StringgetDatabasePath()
    
public  SessiongetExclusiveSession()
    
public  booleangetIgnoreCase()
    
public  DiskFilegetIndexFile()
    
public  booleangetIndexSummaryValid()
    
public  StringgetLobCompressionAlgorithm(int type)
    
public  SmallLRUCachegetLobFileListCache()
    
public  booleangetLobFilesInDirectories()
    
public  ObjectgetLobSyncObject()
    
public  intgetLockMode()
    
public  LogSystemgetLog()
    
public  booleangetLogIndexChanges()
    
public static  byte[]getMagic(boolean textStorage)
    
public  byte[]getMagic()
    
public  intgetMaxLengthInplaceLob()
    
public  intgetMaxMemoryRows()
    
public  intgetMaxMemoryUndo()
    
public  intgetMaxOperationMemory()
    
public  ModegetMode()
    
public  longgetModificationDataId()
    
public  longgetModificationMetaId()
    
public  booleangetMultiThreaded()
    
public  StringgetName()
    
public  longgetNextModificationDataId()
    
public  longgetNextModificationMetaId()
    
public  booleangetOptimizeReuseResults()
    
public  intgetPowerOffCount()
    
public  RolegetPublicRole()
    
public  booleangetReadOnly()
    
public  booleangetRecovery()
    
public  booleangetReferentialIntegrity()
    
public  SchemagetSchema(String schemaName)
    
public  intgetSessionCount()
    
public  Session[]getSessions()
    
public  StringgetShortName()
    
public  StoragegetStorage(int id, DiskFile file)
    
public  StoragegetStorage(RecordReader reader, int id, boolean dataFile)
     Get or create the specified storage object.
public  SessiongetSystemSession()
    
public  StringgetTempTableName(int sessionId)
    
public  booleangetTextStorage()
    
public  TracegetTrace(String module)
    
public  TraceSystemgetTraceSystem()
    
public  UsergetUser(String name, SQLException notFound)
    
public  UsergetUser(String name)
    
public  intgetWriteDelay()
    
public  voidhandleInvalidChecksum()
    
public  voidinvalidateIndexSummary()
    
public  booleanisClosing()
    
public  booleanisMultiVersion()
    
public  booleanisPersistent()
    
public  booleanisStarting()
    
public static  booleanisTextStorage(String fileName, boolean defaultValue)
    
public  ClassloadUserClass(String className)
    
public  voidnotifyFileSize(long length)
    
public  FileStoreopenFile(String name, String mode, boolean mustExist)
    
public  voidopened()
    
public synchronized  voidremoveDatabaseObject(Session session, DbObject obj)
    
public synchronized  voidremoveMeta(Session session, int id)
    
public synchronized  voidremoveSchemaObject(Session session, SchemaObject obj)
    
public synchronized  voidremoveSession(Session session)
    
public  voidremoveStorage(int id, DiskFile file)
    
public synchronized  voidrenameDatabaseObject(Session session, DbObject obj, String newName)
     Rename a database object.
public synchronized  voidrenameSchemaObject(Session session, SchemaObject obj, String newName)
     Rename a schema object.
public  voidsetAllowLiterals(int value)
    
public synchronized  voidsetCacheSize(int kb)
    
public synchronized  voidsetCloseDelay(int value)
    
public  voidsetCluster(String cluster)
    
public  voidsetCompareMode(CompareMode compareMode)
    
public synchronized  voidsetDeleteFilesOnDisconnect(boolean b)
    
public  voidsetEventListener(String className)
    
public  voidsetExclusiveSession(Session session)
    
public  voidsetIgnoreCase(boolean b)
    
public static  voidsetInitialPowerOffCount(int count)
    
public  voidsetLobCompressionAlgorithm(String stringValue)
    
public  voidsetLockMode(int lockMode)
    
public synchronized  voidsetLog(int level)
    
public synchronized  voidsetMasterUser(User user)
    
public  voidsetMaxLengthInplaceLob(int value)
    
public synchronized  voidsetMaxLogSize(long value)
    
public  voidsetMaxMemoryRows(int value)
    
public  voidsetMaxMemoryUndo(int value)
    
public  voidsetMaxOperationMemory(int maxOperationMemory)
    
public  voidsetMode(Mode mode)
    
public  voidsetMultiThreaded(boolean multiThreaded)
    
public  voidsetOptimizeReuseResults(boolean b)
    
public  voidsetPowerOffCount(int count)
    
public  voidsetProgress(int state, String name, int x, int max)
     Set the progress of a long running operation.
public  voidsetReferentialIntegrity(boolean b)
    
public  voidsetWriteDelay(int value)
    
public  voidsync()
    
public synchronized  voidupdate(Session session, DbObject obj)
    


Constructor Detail
Database
public Database(String name, ConnectionInfo ci, String cipher) throws SQLException(Code)




Method Detail
addDatabaseObject
public synchronized void addDatabaseObject(Session session, DbObject obj) throws SQLException(Code)



addSchemaObject
public synchronized void addSchemaObject(Session session, SchemaObject obj) throws SQLException(Code)



allocateObjectId
public synchronized int allocateObjectId(boolean needFresh, boolean dataFile)(Code)



areEqual
public boolean areEqual(Value a, Value b) throws SQLException(Code)



checkFilePasswordHash
public void checkFilePasswordHash(String c, byte[] hash) throws SQLException(Code)



checkPowerOff
public void checkPowerOff() throws SQLException(Code)



checkWritingAllowed
public void checkWritingAllowed() throws SQLException(Code)



close
synchronized void close(boolean fromShutdownHook)(Code)



compare
public int compare(Value a, Value b) throws SQLException(Code)



compareTypeSave
public int compareTypeSave(Value a, Value b) throws SQLException(Code)



createSession
public synchronized Session createSession(User user) throws SQLException(Code)



createTempFile
public String createTempFile() throws SQLException(Code)



deleteLogFileLater
public void deleteLogFileLater(String fileName) throws SQLException(Code)



exceptionThrown
public void exceptionThrown(SQLException e, String sql)(Code)



exists
public static boolean exists(String name)(Code)



findAggregate
public UserAggregate findAggregate(String name)(Code)



findComment
public Comment findComment(DbObject object)(Code)



findFunctionAlias
public FunctionAlias findFunctionAlias(String name)(Code)



findRole
public Role findRole(String roleName)(Code)



findSchema
public Schema findSchema(String schemaName)(Code)



findSetting
public Setting findSetting(String name)(Code)



findUser
public User findUser(String name)(Code)



findUserDataType
public UserDataType findUserDataType(String name)(Code)



freeUpDiskSpace
public synchronized void freeUpDiskSpace() throws SQLException(Code)



getAllAggregates
public ObjectArray getAllAggregates()(Code)



getAllComments
public ObjectArray getAllComments()(Code)



getAllFunctionAliases
public ObjectArray getAllFunctionAliases()(Code)



getAllRights
public ObjectArray getAllRights()(Code)



getAllRoles
public ObjectArray getAllRoles()(Code)



getAllSchemaObjects
public ObjectArray getAllSchemaObjects(int type)(Code)



getAllSchemas
public ObjectArray getAllSchemas()(Code)



getAllSettings
public ObjectArray getAllSettings()(Code)



getAllStorages
public ObjectArray getAllStorages()(Code)



getAllUserDataTypes
public ObjectArray getAllUserDataTypes()(Code)



getAllUsers
public ObjectArray getAllUsers()(Code)



getAllowLiterals
public int getAllowLiterals()(Code)



getCacheSize
public int getCacheSize()(Code)



getCacheType
public String getCacheType()(Code)



getChecksum
public int getChecksum(byte[] data, int start, int end)(Code)



getCluster
public String getCluster()(Code)



getCompareMode
public CompareMode getCompareMode()(Code)



getDataFile
public DiskFile getDataFile()(Code)



getDataPage
public DataPage getDataPage()(Code)



getDatabasePath
public String getDatabasePath()(Code)



getExclusiveSession
public Session getExclusiveSession()(Code)



getIgnoreCase
public boolean getIgnoreCase()(Code)



getIndexFile
public DiskFile getIndexFile()(Code)



getIndexSummaryValid
public boolean getIndexSummaryValid()(Code)



getLobCompressionAlgorithm
public String getLobCompressionAlgorithm(int type)(Code)



getLobFileListCache
public SmallLRUCache getLobFileListCache()(Code)



getLobFilesInDirectories
public boolean getLobFilesInDirectories()(Code)



getLobSyncObject
public Object getLobSyncObject()(Code)



getLockMode
public int getLockMode()(Code)



getLog
public LogSystem getLog()(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)



getMode
public Mode getMode()(Code)



getModificationDataId
public long getModificationDataId()(Code)



getModificationMetaId
public long getModificationMetaId()(Code)



getMultiThreaded
public boolean getMultiThreaded()(Code)



getName
public String getName()(Code)



getNextModificationDataId
public long getNextModificationDataId()(Code)



getNextModificationMetaId
public long getNextModificationMetaId()(Code)



getOptimizeReuseResults
public boolean getOptimizeReuseResults()(Code)



getPowerOffCount
public int getPowerOffCount()(Code)



getPublicRole
public Role getPublicRole()(Code)



getReadOnly
public boolean getReadOnly()(Code)



getRecovery
public boolean getRecovery()(Code)



getReferentialIntegrity
public boolean getReferentialIntegrity()(Code)



getSchema
public Schema getSchema(String schemaName) throws SQLException(Code)



getSessionCount
public int getSessionCount()(Code)



getSessions
public Session[] getSessions()(Code)



getShortName
public String getShortName()(Code)



getStorage
public Storage getStorage(int id, DiskFile file)(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



getSystemSession
public Session getSystemSession()(Code)



getTempTableName
public String getTempTableName(int sessionId)(Code)



getTextStorage
public boolean getTextStorage()(Code)



getTrace
public Trace getTrace(String module)(Code)



getTraceSystem
public TraceSystem getTraceSystem()(Code)



getUser
public User getUser(String name, SQLException notFound) throws SQLException(Code)



getUser
public User getUser(String name) throws SQLException(Code)



getWriteDelay
public int getWriteDelay()(Code)



handleInvalidChecksum
public void handleInvalidChecksum() throws SQLException(Code)



invalidateIndexSummary
public void invalidateIndexSummary() throws SQLException(Code)



isClosing
public boolean isClosing()(Code)



isMultiVersion
public boolean isMultiVersion()(Code)



isPersistent
public boolean isPersistent()(Code)



isStarting
public boolean isStarting()(Code)



isTextStorage
public static boolean isTextStorage(String fileName, boolean defaultValue) throws SQLException(Code)



loadUserClass
public Class loadUserClass(String className) throws SQLException(Code)



notifyFileSize
public void notifyFileSize(long length)(Code)



openFile
public FileStore openFile(String name, String mode, boolean mustExist) throws SQLException(Code)



opened
public void opened() throws SQLException(Code)



removeDatabaseObject
public synchronized void removeDatabaseObject(Session session, DbObject obj) throws SQLException(Code)



removeMeta
public synchronized void removeMeta(Session session, int id) throws SQLException(Code)



removeSchemaObject
public synchronized void removeSchemaObject(Session session, SchemaObject obj) throws SQLException(Code)



removeSession
public synchronized void removeSession(Session session) throws SQLException(Code)



removeStorage
public void removeStorage(int id, DiskFile file)(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)



setCacheSize
public synchronized void setCacheSize(int kb) throws SQLException(Code)



setCloseDelay
public synchronized void setCloseDelay(int value)(Code)



setCluster
public void setCluster(String cluster)(Code)



setCompareMode
public void setCompareMode(CompareMode compareMode)(Code)



setDeleteFilesOnDisconnect
public synchronized void setDeleteFilesOnDisconnect(boolean b)(Code)



setEventListener
public void setEventListener(String className) throws SQLException(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)



setLog
public synchronized void setLog(int level) throws SQLException(Code)



setMasterUser
public synchronized void setMasterUser(User user) throws SQLException(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)



setMode
public void setMode(Mode mode)(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)



sync
public void sync() throws SQLException(Code)



update
public synchronized void update(Session session, DbObject obj) throws SQLException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.