Java Doc for DataPage.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) 


java.lang.Object
   org.h2.store.DataPage

All known Subclasses:   org.h2.store.DataPageText,  org.h2.store.DataPageBinary,
DataPage
abstract public class DataPage (Code)
A data page is a byte buffer that contains persistent data of a row or index page.


Field Summary
final static  booleanCHECKSUM
    
protected  byte[]data
     The data itself.
protected  DataHandlerhandler
     The data handler responsible for lob objects.
protected  intpos
     The current write or read position.

Constructor Summary
protected  DataPage(DataHandler handler, byte[] data)
    

Method Summary
abstract public  voidcheck(int len)
     Test if the checksum is correct.
public  voidcheckCapacity(int plus)
    
public static  DataPagecreate(DataHandler handler, int capacity)
    
public static  DataPagecreate(DataHandler handler, byte[] buff)
    
abstract public  voidfill(int len)
     Increase the size to the given length.
public  voidfillAligned()
    
public  byte[]getBytes()
    
abstract public  intgetFillerLength()
     The space required for the checksum and additional fillers.
abstract public  intgetIntLen()
     Get the length of an integer value.
abstract public  intgetLongLen(long x)
     Get the length of a long value.
abstract public  intgetStringLen(String s)
     Get the length of a String value.
public  intgetValueLen(Value v)
    
public  intlength()
    
public  voidread(byte[] buff, int off, int len)
    
public  intreadByte()
    
public  DataPagereadDataPageNoSize()
    
abstract public  intreadInt()
     Read an integer at the current position.
public  longreadLong()
    
abstract public  StringreadString()
     Read a String value.
public  ValuereadValue()
    
public  voidreset()
    
abstract public  voidsetInt(int pos, int x)
     Update an integer at the given position.
public  voidsetPos(int pos)
    
abstract public  voidupdateChecksum()
     Calculate the checksum and write.
public  voidwrite(byte[] buff, int off, int len)
    
public  voidwriteByte(byte x)
    
public  voidwriteDataPageNoSize(DataPage page)
    
abstract public  voidwriteInt(int x)
     Write an integer at the current position.
public  voidwriteLong(long x)
    
abstract public  voidwriteString(String s)
     Write a String value.
public  voidwriteValue(Value v)
    

Field Detail
CHECKSUM
final static boolean CHECKSUM(Code)



data
protected byte[] data(Code)
The data itself.



handler
protected DataHandler handler(Code)
The data handler responsible for lob objects.



pos
protected int pos(Code)
The current write or read position.




Constructor Detail
DataPage
protected DataPage(DataHandler handler, byte[] data)(Code)




Method Detail
check
abstract public void check(int len) throws SQLException(Code)
Test if the checksum is correct.
Parameters:
  len - the number of bytes
throws:
  SQLException - if the checksum does not match



checkCapacity
public void checkCapacity(int plus)(Code)



create
public static DataPage create(DataHandler handler, int capacity)(Code)



create
public static DataPage create(DataHandler handler, byte[] buff)(Code)



fill
abstract public void fill(int len)(Code)
Increase the size to the given length. The current position is set to the given value.
Parameters:
  len - the new length



fillAligned
public void fillAligned()(Code)



getBytes
public byte[] getBytes()(Code)



getFillerLength
abstract public int getFillerLength()(Code)
The space required for the checksum and additional fillers. the size



getIntLen
abstract public int getIntLen()(Code)
Get the length of an integer value. the length



getLongLen
abstract public int getLongLen(long x)(Code)
Get the length of a long value.
Parameters:
  x - the value the length



getStringLen
abstract public int getStringLen(String s)(Code)
Get the length of a String value.
Parameters:
  s - the value the length



getValueLen
public int getValueLen(Value v) throws SQLException(Code)



length
public int length()(Code)



read
public void read(byte[] buff, int off, int len)(Code)



readByte
public int readByte()(Code)



readDataPageNoSize
public DataPage readDataPageNoSize()(Code)



readInt
abstract public int readInt()(Code)
Read an integer at the current position. The current position is incremented. the value



readLong
public long readLong()(Code)



readString
abstract public String readString()(Code)
Read a String value. The current position is incremented. the value



readValue
public Value readValue() throws SQLException(Code)



reset
public void reset()(Code)



setInt
abstract public void setInt(int pos, int x)(Code)
Update an integer at the given position. The current position is not change.
Parameters:
  pos - the position
Parameters:
  x - the value



setPos
public void setPos(int pos)(Code)



updateChecksum
abstract public void updateChecksum()(Code)
Calculate the checksum and write.



write
public void write(byte[] buff, int off, int len)(Code)



writeByte
public void writeByte(byte x)(Code)



writeDataPageNoSize
public void writeDataPageNoSize(DataPage page)(Code)



writeInt
abstract public void writeInt(int x)(Code)
Write an integer at the current position. The current position is incremented.
Parameters:
  x - the value



writeLong
public void writeLong(long x)(Code)



writeString
abstract public void writeString(String s)(Code)
Write a String value. The current position is incremented.
Parameters:
  s - the value



writeValue
public void writeValue(Value v) 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.