Java Doc for DataHandler.java in  » Database-DBMS » h2database » org » h2 » store » 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.store 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.h2.store.DataHandler

All known Subclasses:   org.h2.engine.Database,  org.h2.test.unit.TestFile,  org.h2.test.unit.TestDataPage,  org.h2.test.unit.TestValueMemory,  org.h2.engine.SessionRemote,  org.h2.command.dml.ScriptBase,  org.h2.tools.Recover,  org.h2.test.unit.TestValueHashMap,
DataHandler
public interface DataHandler (Code)
A data handler contains a number of callback methods. The most important implementing class is a database.




Method Summary
 intallocateObjectId(boolean needFresh, boolean dataFile)
     Get the next object id.
 voidcheckPowerOff()
     Check if the simulated power failure occured.
 voidcheckWritingAllowed()
     Check if writing is allowed.
 intcompareTypeSave(Value a, Value b)
     Compare two values.
 StringcreateTempFile()
     Create a temporary file and return the file name.
 voidfreeUpDiskSpace()
     Free up disk space if possible.
 intgetChecksum(byte[] data, int start, int end)
     Calculate the checksum for the byte array.
 StringgetDatabasePath()
     Get the database path.
 StringgetLobCompressionAlgorithm(int type)
     Get the compression algorithm used for large objects.
 SmallLRUCachegetLobFileListCache()
     Get the lob file list cache if it is used.
 booleangetLobFilesInDirectories()
     Checks if the lob files stored in directories.
 ObjectgetLobSyncObject()
     Get the synchronization object for lob operations.
 intgetMaxLengthInplaceLob()
    
 booleangetTextStorage()
     Check if text storage is used.
 voidhandleInvalidChecksum()
     Called when the checksum was invalid.
 FileStoreopenFile(String name, String mode, boolean mustExist)
     Open a file at the given location.



Method Detail
allocateObjectId
int allocateObjectId(boolean needFresh, boolean dataFile)(Code)
Get the next object id. This method is not required if LOB_FILES_IN_DIRECTORIES is enabled.
Parameters:
  needFresh - if a fresh id is required
Parameters:
  dataFile - true if the id is for the data file the new id



checkPowerOff
void checkPowerOff() throws SQLException(Code)
Check if the simulated power failure occured. This call will decrement the countdown.
throws:
  SQLException - if the simulated power failure occured



checkWritingAllowed
void checkWritingAllowed() throws SQLException(Code)
Check if writing is allowed.
throws:
  SQLException - if it is not allowed



compareTypeSave
int compareTypeSave(Value a, Value b) throws SQLException(Code)
Compare two values.
Parameters:
  a - the first value
Parameters:
  b - the second value 0 for equal, 1 if a is larger than b, and -1 otherwise



createTempFile
String createTempFile() throws SQLException(Code)
Create a temporary file and return the file name. the file name



freeUpDiskSpace
void freeUpDiskSpace() throws SQLException(Code)
Free up disk space if possible. This method is called if more space is needed.
throws:
  SQLException - if no more space could be freed



getChecksum
int getChecksum(byte[] data, int start, int end)(Code)
Calculate the checksum for the byte array.
Parameters:
  data - the byte array
Parameters:
  start - the starting offset
Parameters:
  end - the end offset the checksum



getDatabasePath
String getDatabasePath()(Code)
Get the database path. the database path



getLobCompressionAlgorithm
String getLobCompressionAlgorithm(int type)(Code)
Get the compression algorithm used for large objects.
Parameters:
  type - the data type (CLOB or BLOB) the compression algorithm, or null



getLobFileListCache
SmallLRUCache getLobFileListCache()(Code)
Get the lob file list cache if it is used. the cache or null



getLobFilesInDirectories
boolean getLobFilesInDirectories()(Code)
Checks if the lob files stored in directories. true if lob files are stored in directories.



getLobSyncObject
Object getLobSyncObject()(Code)
Get the synchronization object for lob operations. the synchronization object



getMaxLengthInplaceLob
int getMaxLengthInplaceLob()(Code)
Get the maximum length of a in-place large object the maximum size



getTextStorage
boolean getTextStorage()(Code)
Check if text storage is used. if text storage is used.



handleInvalidChecksum
void handleInvalidChecksum() throws SQLException(Code)
Called when the checksum was invalid.
throws:
  SQLException - if this should not be ignored



openFile
FileStore openFile(String name, String mode, boolean mustExist) throws SQLException(Code)
Open a file at the given location.
Parameters:
  name - the file name
Parameters:
  mode - the mode
Parameters:
  mustExist - whether the file must already exist the file



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