Java Doc for Table.java in  » Database-DBMS » Quadcap-Embeddable-Database » com » quadcap » sql » 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 » Quadcap Embeddable Database » com.quadcap.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.quadcap.sql.TupleImpl
      com.quadcap.sql.Table

Table
public class Table extends TupleImpl implements Relation,Externalizable(Code)
A single SQL base table.
author:
   Stan Bailes

Inner Class :class GetNames implements ExpressionVisitor

Field Summary
final public static  intGLOBAL
    
final public static  intLOCAL
    
final public static  intSTATEMENT_TEMP
    
final public static  intTEMPORARY
     Table modifiers, bit fields.
 Constraint[]constraints
    
transient  inthasBlobs
    
 intmodifiers
    
 longtableIdentity
    
transient  booleanunderConstruction
    

Constructor Summary
public  Table()
    
public  Table(String tableName, int modifiers)
    

Method Summary
public  voidaddColumn(Column col)
     Add a column to the table; called during initial table construction only.
public  voidaddConstraint(Constraint c)
    
public  voiddeleteColumn(int c)
    
public  voiddeleteConstraint(String name)
     Delete the specified table constraint.
final  IndexConstraintgetAnyIndex(Session session)
    
final  IndexConstraintgetAnyIndexBut(Session session, IndexConstraint notMe)
    
final public  ConstraintgetConstraint(int num)
    
public  ConstraintgetConstraint(String name)
     Get the constraint with the specified name XXX Maybe we should profile this sucker.
public  CursorgetCursor(Session session, Expression where, String asName, Cursor outer)
    
public  CursorgetCursor(Session session, Expression where, String asName)
    
public  IndexCursorgetCursor(Session session, IndexConstraint notMe)
    
 IndexConstraintgetIndexConstraint(Session session, Hashtable names, IndexConstraint notMe)
    
 UniqueConstraintgetIndexForColumns(int[] cols)
    
final  IndexConstraintgetIndexForNames(Session session, Hashtable names)
    
public  intgetModifiers()
    
 HashtablegetNames(Expression ex)
    
final public  intgetNumConstraints()
    
public  UniqueConstraintgetPrimaryKey()
     Return the table's primary key constraint, if it is defined, otherwise return null.
 RowgetRow(Database db, long rowId)
    
public  StringgetType()
    
public  booleanhasBlobs()
    
public  voidinsertRow(Session session, Row row)
    
public  booleanisUnderConstruction()
     Get/Set the value of the 'is under construction' flag.
public  booleanisUpdatable()
    
public  voidnameConstraint(Constraint c)
     Generate a unique, semi-meaningful, name for this constratint, in case the user didn't specify one.
final public static  longputRow(Session session, Tuple t, Row row)
    
public  voidreadExternal(ObjectInput in)
    
public  voidresetColumnConstraints()
    
public  voidsetUnderConstruction(boolean v)
     Set the value of the 'is under construction' flag.
final static  Stringstrip(String s)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
GLOBAL
final public static int GLOBAL(Code)



LOCAL
final public static int LOCAL(Code)



STATEMENT_TEMP
final public static int STATEMENT_TEMP(Code)



TEMPORARY
final public static int TEMPORARY(Code)
Table modifiers, bit fields. If temporary, either global or local must be specified.



constraints
Constraint[] constraints(Code)



hasBlobs
transient int hasBlobs(Code)



modifiers
int modifiers(Code)



tableIdentity
long tableIdentity(Code)
For in-memory mode, the table identity



underConstruction
transient boolean underConstruction(Code)




Constructor Detail
Table
public Table()(Code)
Default constructor (required for deserialization)



Table
public Table(String tableName, int modifiers)(Code)
Explicit constructor




Method Detail
addColumn
public void addColumn(Column col) throws SQLException(Code)
Add a column to the table; called during initial table construction only.



addConstraint
public void addConstraint(Constraint c) throws SQLException(Code)
Add a table constraint



deleteColumn
public void deleteColumn(int c) throws SQLException, IOException(Code)
Delete a column from this table, and reset any column-constraint mappings



deleteConstraint
public void deleteConstraint(String name) throws SQLException, IOException(Code)
Delete the specified table constraint.



getAnyIndex
final IndexConstraint getAnyIndex(Session session) throws IOException, SQLException(Code)



getAnyIndexBut
final IndexConstraint getAnyIndexBut(Session session, IndexConstraint notMe) throws IOException, SQLException(Code)



getConstraint
final public Constraint getConstraint(int num)(Code)
Return the specified table constraint (zero-based)



getConstraint
public Constraint getConstraint(String name)(Code)
Get the constraint with the specified name XXX Maybe we should profile this sucker. A hashtable?



getCursor
public Cursor getCursor(Session session, Expression where, String asName, Cursor outer) throws SQLException(Code)
Return a cursor on this table



getCursor
public Cursor getCursor(Session session, Expression where, String asName) throws SQLException(Code)



getCursor
public IndexCursor getCursor(Session session, IndexConstraint notMe) throws SQLException(Code)



getIndexConstraint
IndexConstraint getIndexConstraint(Session session, Hashtable names, IndexConstraint notMe) throws IOException, SQLException(Code)



getIndexForColumns
UniqueConstraint getIndexForColumns(int[] cols) throws SQLException(Code)



getIndexForNames
final IndexConstraint getIndexForNames(Session session, Hashtable names) throws IOException, SQLException(Code)



getModifiers
public int getModifiers()(Code)
Return the modifier bits for this table



getNames
Hashtable getNames(Expression ex)(Code)



getNumConstraints
final public int getNumConstraints()(Code)
Return the number of table constraints



getPrimaryKey
public UniqueConstraint getPrimaryKey()(Code)
Return the table's primary key constraint, if it is defined, otherwise return null.



getRow
Row getRow(Database db, long rowId) throws IOException, SQLException(Code)



getType
public String getType()(Code)
My SQL type



hasBlobs
public boolean hasBlobs() throws SQLException(Code)
Are any of this table's columns BLOB (or CLOB) types?



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



isUnderConstruction
public boolean isUnderConstruction()(Code)
Get/Set the value of the 'is under construction' flag. This is used to determine when ADD CONSTRAINT really has work to do ;-)



isUpdatable
public boolean isUpdatable()(Code)
(haiku-comment) I am a table and therefore updateable true not false



nameConstraint
public void nameConstraint(Constraint c)(Code)
Generate a unique, semi-meaningful, name for this constratint, in case the user didn't specify one.



putRow
final public static long putRow(Session session, Tuple t, Row row) throws SQLException, IOException(Code)
Convenience method to write a new row to the database



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)
Read me from a stream



resetColumnConstraints
public void resetColumnConstraints() throws SQLException(Code)
Reset any constraint-column mapping (typically after a column has been added or dropped)



setUnderConstruction
public void setUnderConstruction(boolean v)(Code)
Set the value of the 'is under construction' flag.



strip
final static String strip(String s)(Code)



toString
public String toString()(Code)
String representation for debugging



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)
Write me to a stream



Fields inherited from com.quadcap.sql.TupleImpl
protected Vector columns(Code)(Java Doc)
protected HashMap names(Code)(Java Doc)
protected String qual(Code)(Java Doc)
protected String qualifier(Code)(Java Doc)

Methods inherited from com.quadcap.sql.TupleImpl
public void addColumn(Column col) throws SQLException(Code)(Java Doc)
public void addColumn(Column col, int pos) throws SQLException(Code)(Java Doc)
public void addColumn(String name, Type type) throws SQLException(Code)(Java Doc)
public void addColumns(Session session, Tuple t) throws SQLException(Code)(Java Doc)
public void addColumns(Session session, Tuple t, boolean resolve) throws SQLException(Code)(Java Doc)
public void deleteColumn(int col) throws SQLException, IOException(Code)(Java Doc)
public Column getColumn(int i) throws SQLException(Code)(Java Doc)
public Column getColumn(String name) throws SQLException(Code)(Java Doc)
public int getColumnCount() throws SQLException(Code)(Java Doc)
public int getColumnIndex(String name) throws SQLException(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public int[] mapColumns(Vector names) throws SQLException(Code)(Java Doc)
static int nextUnquotedPeriod(String s)(Code)(Java Doc)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)(Java Doc)
public void resolveColumns() throws SQLException(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void writeExternal(ObjectOutput out) 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.