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


org.h2.schema.SchemaObjectBase
   org.h2.table.Table

All known Subclasses:   org.h2.table.TableData,  org.h2.table.RangeTable,  org.h2.table.FunctionTable,  org.h2.table.TableLink,  org.h2.table.TableView,  org.h2.table.MetaTable,
Table
abstract public class Table extends SchemaObjectBase (Code)
This is the base class for most tables. A table contains a list of columns and a list of rows.


Field Summary
final public static  StringSYSTEM_TABLE
    
final public static  StringTABLE
    
final public static  StringTABLE_LINK
    
final public static  intTYPE_CACHEDTYPE_MEMORY
    
final public static  StringVIEW
    
protected  Column[]columns
     The columns of this table.
protected  intmemoryPerRow
     The amount of memory required for a row if all values would be very small.

Constructor Summary
public  Table(Schema schema, int id, String name, boolean persistent)
    

Method Summary
public  voidaddConstraint(Constraint constraint)
    
public  voidaddDependencies(HashSet dependencies)
    
abstract public  IndexaddIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, int headPos, String comment)
    
abstract public  voidaddRow(Session session, Row row)
     Add a row to the table and all indexes.
public  voidaddSequence(Sequence sequence)
    
public  voidaddTrigger(TriggerObject trigger)
    
public  voidaddView(TableView view)
    
abstract public  booleancanDrop()
     Check if this table can be dropped.
abstract public  booleancanGetRowCount()
     Check if the row count can be retrieved quickly.
public  booleancanTruncate()
    
public  voidcheckColumnIsNotReferenced(Column col)
    
abstract public  voidcheckSupportAlter()
     Check if this table supports ALTER TABLE.
abstract public  voidclose(Session session)
     Close the table object and flush changes.
public  IndexfindPrimaryKey()
    
public  voidfireAfter(Session session)
    
public  voidfireAfterRow(Session session, Row oldRow, Row newRow)
    
public  voidfireBefore(Session session)
    
public  voidfireBeforeRow(Session session, Row oldRow, Row newRow)
    
public  booleanfireRow()
    
public  PlanItemgetBestPlanItem(Session session, int[] masks)
    
public  booleangetCheckForeignKeyConstraints()
    
public  ObjectArraygetChildren()
    
public  ColumngetColumn(int index)
    
public  ColumngetColumn(String columnName)
    
public  Column[]getColumns()
    
public  Column[]getColumns(String[] columnNames)
    
public  ObjectArraygetConstraints()
    
public  StringgetCreateSQLForCopy(Table table, String quotedName)
    
public  booleangetGlobalTemporary()
    
public  IndexgetIndexForColumn(Column column, boolean first)
    
abstract public  ObjectArraygetIndexes()
     Get all indexes for this table.
abstract public  longgetMaxDataModificationId()
     Get the last data modification id.
public  RowgetNullRow()
    
public  IndexgetPrimaryKey()
    
abstract public  longgetRowCount(Session session)
     Get the row count for this table.
abstract public  IndexgetScanIndex(Session session)
     Get the scan index to iterate through all rows.
abstract public  StringgetTableType()
    
public  RowgetTemplateRow()
    
public  SearchRowgetTemplateSimpleRow(boolean singleColumn)
    
public  intgetType()
    
abstract public  IndexgetUniqueIndex()
     Get any unique index for this table if one exists.
public  booleanisClustered()
    
public  booleanisLockExclusive(Session s)
    
abstract public  booleanisLockedExclusively()
     Check if this table is locked exclusively.
public  booleanisOnCommitDrop()
    
public  booleanisOnCommitTruncate()
    
public  booleanisPersistent()
    
abstract public  voidlock(Session session, boolean exclusive, boolean force)
     Lock the table for the given session.
public  voidremoveChildrenAndResources(Session session)
    
public  voidremoveConstraint(Constraint constraint)
    
public  voidremoveIndex(Index index)
    
public  voidremoveIndexOrTransferOwnership(Session session, Index index)
     If the index is still required by a constraint, transfer the ownership to it.
abstract public  voidremoveRow(Session session, Row row)
     Remove a row from the table and all indexes.
public  voidremoveSequence(Session session, Sequence sequence)
    
public  voidremoveTrigger(Session session, TriggerObject trigger)
    
public  voidremoveView(TableView view)
    
public  voidrenameColumn(Column column, String newName)
    
public  voidsetCheckForeignKeyConstraints(Session session, boolean enabled, boolean checkExisting)
    
protected  voidsetColumns(Column[] columns)
    
public  voidsetOnCommitDrop(boolean onCommitDrop)
    
public  voidsetOnCommitTruncate(boolean onCommitTruncate)
    
abstract public  voidtruncate(Session session)
     Remove all rows from the table and indexes.
abstract public  voidunlock(Session s)
     Release the lock for this session.
public  voidupdateRows(Prepared prepared, Session session, RowList rows)
    
public  voidvalidateConvertUpdateSequence(Session session, Row row)
    

Field Detail
SYSTEM_TABLE
final public static String SYSTEM_TABLE(Code)



TABLE
final public static String TABLE(Code)



TABLE_LINK
final public static String TABLE_LINK(Code)



TYPE_CACHEDTYPE_MEMORY
final public static int TYPE_CACHEDTYPE_MEMORY(Code)



VIEW
final public static String VIEW(Code)



columns
protected Column[] columns(Code)
The columns of this table.



memoryPerRow
protected int memoryPerRow(Code)
The amount of memory required for a row if all values would be very small.




Constructor Detail
Table
public Table(Schema schema, int id, String name, boolean persistent)(Code)




Method Detail
addConstraint
public void addConstraint(Constraint constraint)(Code)



addDependencies
public void addDependencies(HashSet dependencies)(Code)



addIndex
abstract public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, int headPos, String comment) throws SQLException(Code)
Create an index for this table
Parameters:
  session - the session
Parameters:
  indexName - the name of the index
Parameters:
  indexId - the id
Parameters:
  cols - the index columns
Parameters:
  indexType - the index type
Parameters:
  headPos - the position of the head (if the index already exists)
Parameters:
  comment - the comment the index



addRow
abstract public void addRow(Session session, Row row) throws SQLException(Code)
Add a row to the table and all indexes.
Parameters:
  session - the session
Parameters:
  row - the row
throws:
  SQLException - if a constraint was violated



addSequence
public void addSequence(Sequence sequence)(Code)



addTrigger
public void addTrigger(TriggerObject trigger)(Code)



addView
public void addView(TableView view)(Code)



canDrop
abstract public boolean canDrop()(Code)
Check if this table can be dropped. true if it can



canGetRowCount
abstract public boolean canGetRowCount()(Code)
Check if the row count can be retrieved quickly. true if it can



canTruncate
public boolean canTruncate()(Code)



checkColumnIsNotReferenced
public void checkColumnIsNotReferenced(Column col) throws SQLException(Code)



checkSupportAlter
abstract public void checkSupportAlter() throws SQLException(Code)
Check if this table supports ALTER TABLE.
throws:
  SQLException - if it is not supported



close
abstract public void close(Session session) throws SQLException(Code)
Close the table object and flush changes.
Parameters:
  session - the session



findPrimaryKey
public Index findPrimaryKey() throws SQLException(Code)



fireAfter
public void fireAfter(Session session) throws SQLException(Code)



fireAfterRow
public void fireAfterRow(Session session, Row oldRow, Row newRow) throws SQLException(Code)



fireBefore
public void fireBefore(Session session) throws SQLException(Code)



fireBeforeRow
public void fireBeforeRow(Session session, Row oldRow, Row newRow) throws SQLException(Code)



fireRow
public boolean fireRow()(Code)



getBestPlanItem
public PlanItem getBestPlanItem(Session session, int[] masks) throws SQLException(Code)

Parameters:
  masks - - null means 'always false'



getCheckForeignKeyConstraints
public boolean getCheckForeignKeyConstraints()(Code)



getChildren
public ObjectArray getChildren()(Code)



getColumn
public Column getColumn(int index)(Code)



getColumn
public Column getColumn(String columnName) throws SQLException(Code)



getColumns
public Column[] getColumns()(Code)



getColumns
public Column[] getColumns(String[] columnNames) throws SQLException(Code)



getConstraints
public ObjectArray getConstraints()(Code)



getCreateSQLForCopy
public String getCreateSQLForCopy(Table table, String quotedName)(Code)



getGlobalTemporary
public boolean getGlobalTemporary()(Code)



getIndexForColumn
public Index getIndexForColumn(Column column, boolean first)(Code)



getIndexes
abstract public ObjectArray getIndexes()(Code)
Get all indexes for this table. the list of indexes



getMaxDataModificationId
abstract public long getMaxDataModificationId()(Code)
Get the last data modification id. the modification id



getNullRow
public Row getNullRow()(Code)



getPrimaryKey
public Index getPrimaryKey() throws SQLException(Code)



getRowCount
abstract public long getRowCount(Session session) throws SQLException(Code)
Get the row count for this table.
Parameters:
  session - the session the row count



getScanIndex
abstract public Index getScanIndex(Session session) throws SQLException(Code)
Get the scan index to iterate through all rows.
Parameters:
  session - the session the index



getTableType
abstract public String getTableType()(Code)
Get the table type name the table type name



getTemplateRow
public Row getTemplateRow()(Code)



getTemplateSimpleRow
public SearchRow getTemplateSimpleRow(boolean singleColumn)(Code)



getType
public int getType()(Code)



getUniqueIndex
abstract public Index getUniqueIndex()(Code)
Get any unique index for this table if one exists. a unique index



isClustered
public boolean isClustered()(Code)



isLockExclusive
public boolean isLockExclusive(Session s)(Code)



isLockedExclusively
abstract public boolean isLockedExclusively()(Code)
Check if this table is locked exclusively. true if it is.



isOnCommitDrop
public boolean isOnCommitDrop()(Code)



isOnCommitTruncate
public boolean isOnCommitTruncate()(Code)



isPersistent
public boolean isPersistent()(Code)



lock
abstract public void lock(Session session, boolean exclusive, boolean force) throws SQLException(Code)
Lock the table for the given session. This method waits until the lock is granted.
Parameters:
  session - the session
Parameters:
  exclusive - true for write locks, false for read locks
Parameters:
  force - lock even in the MVCC mode
throws:
  SQLException - if a lock timeout occured



removeChildrenAndResources
public void removeChildrenAndResources(Session session) throws SQLException(Code)



removeConstraint
public void removeConstraint(Constraint constraint)(Code)



removeIndex
public void removeIndex(Index index)(Code)



removeIndexOrTransferOwnership
public void removeIndexOrTransferOwnership(Session session, Index index) throws SQLException(Code)
If the index is still required by a constraint, transfer the ownership to it. Otherwise, the index is removed.
Parameters:
  session - the session
Parameters:
  index - the index that is no longer required



removeRow
abstract public void removeRow(Session session, Row row) throws SQLException(Code)
Remove a row from the table and all indexes.
Parameters:
  session - the session
Parameters:
  row - the row



removeSequence
public void removeSequence(Session session, Sequence sequence)(Code)



removeTrigger
public void removeTrigger(Session session, TriggerObject trigger)(Code)



removeView
public void removeView(TableView view)(Code)



renameColumn
public void renameColumn(Column column, String newName) throws SQLException(Code)



setCheckForeignKeyConstraints
public void setCheckForeignKeyConstraints(Session session, boolean enabled, boolean checkExisting) throws SQLException(Code)



setColumns
protected void setColumns(Column[] columns) throws SQLException(Code)



setOnCommitDrop
public void setOnCommitDrop(boolean onCommitDrop)(Code)



setOnCommitTruncate
public void setOnCommitTruncate(boolean onCommitTruncate)(Code)



truncate
abstract public void truncate(Session session) throws SQLException(Code)
Remove all rows from the table and indexes.
Parameters:
  session - the session



unlock
abstract public void unlock(Session s)(Code)
Release the lock for this session.
Parameters:
  s - the session



updateRows
public void updateRows(Prepared prepared, Session session, RowList rows) throws SQLException(Code)



validateConvertUpdateSequence
public void validateConvertUpdateSequence(Session session, Row row) throws SQLException(Code)



Methods inherited from org.h2.schema.SchemaObjectBase
public String getSQL()(Code)(Java Doc)
public Schema getSchema()(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.