Java Doc for Table.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » db » table » 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 » EJB Server resin 3.1.5 » resin » com.caucho.db.table 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.db.store.Store
      com.caucho.db.table.Table

Table
public class Table extends Store (Code)
Table format:
 Block 0: allocation table
 Block 1: fragment table
 Block 2: table definition
 0    - store data
 1024 - table data
 1024 - index pointers
 2048 - CREATE text
 Block 3: first data
 


Field Summary
final public static  intINLINE_BLOB_SIZE
    
final public static  byteROW_ALLOC
    
final public static  longROW_CLOCK_MIN
    
final public static  byteROW_MASK
    
final public static  byteROW_VALID
    

Constructor Summary
 Table(Database database, String name, Row row, Constraint constraints)
    

Method Summary
public  voidcreate()
     Creates the table.
public  TableIteratorcreateTableIterator()
    
 voiddelete(Transaction xa, Block block, byte[] buffer, int rowOffset)
    
public  ColumngetAutoIncrementColumn()
     Returns the auto-increment column.
public  ColumngetColumn(String name)
     Returns the column for the given column name.
public  intgetColumnIndex(String name)
     Returns the column index for the given column name.
final public  Column[]getColumns()
    
final public  Constraint[]getConstraints()
     Returns the table's constraints.
 RowgetRow()
    
 intgetRowEnd()
    
 intgetRowLength()
     Returns the length of a row.
public  longinsert(QueryContext queryContext, Transaction xa, ArrayList<Column> columns, ArrayList<Expr> values)
     Inserts a new row, returning the row address.
public  voidinsertRow(QueryContext queryContext, Transaction xa, ArrayList<Column> columns, ArrayList<Expr> values, Block block, int rowOffset)
    
public static  TableloadFromFile(Database db, String name)
     Loads the table from the file.
public  longnextAutoIncrement(QueryContext context)
     Returns the next auto-increment value.
public  StringtoString()
    

Field Detail
INLINE_BLOB_SIZE
final public static int INLINE_BLOB_SIZE(Code)



ROW_ALLOC
final public static byte ROW_ALLOC(Code)



ROW_CLOCK_MIN
final public static long ROW_CLOCK_MIN(Code)



ROW_MASK
final public static byte ROW_MASK(Code)



ROW_VALID
final public static byte ROW_VALID(Code)




Constructor Detail
Table
Table(Database database, String name, Row row, Constraint constraints)(Code)




Method Detail
create
public void create() throws IOException, SQLException(Code)
Creates the table.



createTableIterator
public TableIterator createTableIterator()(Code)



delete
void delete(Transaction xa, Block block, byte[] buffer, int rowOffset) throws SQLException(Code)



getAutoIncrementColumn
public Column getAutoIncrementColumn()(Code)
Returns the auto-increment column.



getColumn
public Column getColumn(String name)(Code)
Returns the column for the given column name.
Parameters:
  name - the column name the column



getColumnIndex
public int getColumnIndex(String name) throws SQLException(Code)
Returns the column index for the given column name.
Parameters:
  name - the column name the column index.



getColumns
final public Column[] getColumns()(Code)



getConstraints
final public Constraint[] getConstraints()(Code)
Returns the table's constraints.



getRow
Row getRow()(Code)



getRowEnd
int getRowEnd()(Code)
Returns the end of the row



getRowLength
int getRowLength()(Code)
Returns the length of a row.



insert
public long insert(QueryContext queryContext, Transaction xa, ArrayList<Column> columns, ArrayList<Expr> values) throws IOException, SQLException(Code)
Inserts a new row, returning the row address.



insertRow
public void insertRow(QueryContext queryContext, Transaction xa, ArrayList<Column> columns, ArrayList<Expr> values, Block block, int rowOffset) throws SQLException(Code)



loadFromFile
public static Table loadFromFile(Database db, String name) throws IOException, SQLException(Code)
Loads the table from the file.



nextAutoIncrement
public long nextAutoIncrement(QueryContext context) throws SQLException(Code)
Returns the next auto-increment value.



toString
public String toString()(Code)



Fields inherited from com.caucho.db.store.Store
final public static int ALLOC_FRAGMENT(Code)(Java Doc)
final public static int ALLOC_FREE(Code)(Java Doc)
final public static int ALLOC_INDEX(Code)(Java Doc)
final public static int ALLOC_MASK(Code)(Java Doc)
final public static int ALLOC_MINI_FRAG(Code)(Java Doc)
final public static int ALLOC_ROW(Code)(Java Doc)
final public static int ALLOC_USED(Code)(Java Doc)
final public static int BLOCK_BITS(Code)(Java Doc)
final public static long BLOCK_INDEX_MASK(Code)(Java Doc)
final public static long BLOCK_MASK(Code)(Java Doc)
final public static long BLOCK_OFFSET_MASK(Code)(Java Doc)
final public static int BLOCK_SIZE(Code)(Java Doc)
final public static long DATA_START(Code)(Java Doc)
final public static int FRAGMENT_PER_BLOCK(Code)(Java Doc)
final public static int FRAGMENT_SIZE(Code)(Java Doc)
final public static int MINI_FRAG_ALLOC_OFFSET(Code)(Java Doc)
final public static int MINI_FRAG_PER_BLOCK(Code)(Java Doc)
final public static int MINI_FRAG_SIZE(Code)(Java Doc)
final public static int STORE_CREATE_END(Code)(Java Doc)
final protected BlockManager _blockManager(Code)(Java Doc)
final protected Database _database(Code)(Java Doc)

Methods inherited from com.caucho.db.store.Store
final public long addressToBlockId(long address)(Code)(Java Doc)
public Block allocateBlock() throws IOException(Code)(Java Doc)
public long allocateFragment(StoreTransaction xa) throws IOException(Code)(Java Doc)
public Block allocateIndexBlock() throws IOException(Code)(Java Doc)
public long allocateMiniFragment(StoreTransaction xa) throws IOException(Code)(Java Doc)
public Block allocateRow() throws IOException(Code)(Java Doc)
protected void assertStoreActive() throws IllegalStateException(Code)(Java Doc)
public static long blockIdToAddress(long blockId)(Code)(Java Doc)
public static long blockIdToAddress(long blockId, int offset)(Code)(Java Doc)
public void close()(Code)(Java Doc)
public static String codeToName(int code)(Code)(Java Doc)
public static Store create(Path path) throws IOException, SQLException(Code)(Java Doc)
public void create() throws IOException, SQLException(Code)(Java Doc)
public void deleteFragment(StoreTransaction xa, long fragmentAddress) throws IOException(Code)(Java Doc)
public void deleteMiniFragment(StoreTransaction xa, long fragmentAddress) throws IOException(Code)(Java Doc)
public long firstBlock(long blockId, int type) throws IOException(Code)(Java Doc)
public long firstFragment(long blockId) throws IOException(Code)(Java Doc)
public long firstRow(long blockId) throws IOException(Code)(Java Doc)
public void flush()(Code)(Java Doc)
protected void freeBlock(long blockId) throws IOException(Code)(Java Doc)
public byte[] getAllocationTable()(Code)(Java Doc)
public long getBlockCount()(Code)(Java Doc)
public BlockManager getBlockManager()(Code)(Java Doc)
public long getFileSize()(Code)(Java Doc)
public int getId()(Code)(Java Doc)
public Lock getLock()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public long getTotalFragmentSize()(Code)(Java Doc)
public void init() throws IOException(Code)(Java Doc)
public boolean isClosed()(Code)(Java Doc)
public boolean isFlushDirtyBlocksOnCommit()(Code)(Java Doc)
public boolean isIndexBlock(long blockAddress)(Code)(Java Doc)
public boolean isRowBlock(long blockAddress)(Code)(Java Doc)
final public Block readBlock(long blockAddress) throws IOException(Code)(Java Doc)
public int readBlock(long blockAddress, int blockOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public int readBlock(long blockAddress, int blockOffset, char[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void readBlock(long blockId, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public long readBlockLong(long blockAddress, int offset) throws IOException(Code)(Java Doc)
public int readFragment(long fragmentAddress, int fragmentOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public int readFragment(long fragmentAddress, int fragmentOffset, char[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public long readFragmentLong(long fragmentAddress, int fragmentOffset) throws IOException(Code)(Java Doc)
public static long readLong(byte[] buffer, int offset)(Code)(Java Doc)
public int readMiniFragment(long fragmentAddress, int fragmentOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public int readMiniFragment(long fragmentAddress, int fragmentOffset, char[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public long readMiniFragmentLong(long fragmentAddress, int fragmentOffset) throws IOException(Code)(Java Doc)
public void remove() throws SQLException(Code)(Java Doc)
public void setFlushDirtyBlocksOnCommit(boolean flushOnCommit)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void validateBlockId(long blockId) throws IllegalArgumentException, IllegalStateException(Code)(Java Doc)
public void writeBlock(StoreTransaction xa, long blockAddress, int blockOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void writeBlock(StoreTransaction xa, long blockAddress, int blockOffset, char[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void writeBlock(long blockAddress, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void writeBlockLong(StoreTransaction xa, long blockAddress, int offset, long value) throws IOException(Code)(Java Doc)
public void writeFragment(StoreTransaction xa, long fragmentAddress, int fragmentOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void writeFragment(StoreTransaction xa, long fragmentAddress, int fragmentOffset, char[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void writeFragmentLong(StoreTransaction xa, long fragmentAddress, int fragmentOffset, long value) throws IOException(Code)(Java Doc)
public static void writeLong(byte[] buffer, int offset, long v)(Code)(Java Doc)
public void writeMiniFragment(StoreTransaction xa, long fragmentAddress, int fragmentOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void writeMiniFragment(StoreTransaction xa, long fragmentAddress, int fragmentOffset, char[] buffer, int offset, int length) throws IOException(Code)(Java Doc)
public void writeMiniFragmentLong(StoreTransaction xa, long fragmentAddress, int fragmentOffset, long value) throws IOException(Code)(Java Doc)

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.