Java Doc for JdbcTable.java in  » Testing » PolePosition-0.20 » com » versant » core » jdbc » metadata » 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 » Testing » PolePosition 0.20 » com.versant.core.jdbc.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.jdbc.metadata.JdbcTable

JdbcTable
public class JdbcTable implements Serializable,Comparable(Code)
A table in a JDBC database.


Field Summary
public  JdbcColumn[]cols
     All the columns making up this table in 'create table' order.
public  Stringcomment
     Comment info for the SQL script (e.g.
public  JdbcConstraint[]constraints
     All the referential integrity constraints.
public  StringdeleteRowSql
     Cached sql to delete row from table.
public  JdbcIndex[]indexes
     All the indexes.
public  Stringname
    
public  JdbcColumn[]pk
     The primary key of this table.
public  StringpkConstraintName
     The name of this tables primary key constraint.
public  JdbcColumn[]pkSimpleCols
     The primary key of this table flattened into its JdbcColumn's.
public  intpkSimpleColumnCount
    
public  SqlDriversqlDriver
    

Constructor Summary
public  JdbcTable()
    

Method Summary
public  voidaddConstraints(ArrayList cons)
    
public  voidappendInsertColumnList(CharBuf s)
     Append part of an insert column name list for all our columns to s (e.g 'cola, colb, colc').
public  voidappendInsertPKColumnList(CharBuf s)
     Append part of an insert column name list for our primary key columns to s (e.g 'pk1, pk2').
public  voidappendInsertPKValueList(CharBuf s)
     Append part of an insert value list for our primary key columns to s (e.g '?, ?').
public  voidappendInsertValueList(CharBuf s)
     Append part of an insert value list for all our columns to s (e.g '?, ?, ?').
public  voidappendWherePK(CharBuf s)
     Append part of a where clause for our primary key columns to us (e.g pk1 = ? and pk2 = ?).
public  intcompareTo(Object o)
     Sort by name.
public  SqlExpcreateOrderByPKList(SelectExp se)
     Get an order by list to order by our primary key.
public  SqlExpcreatePkEqualsParamExp(SelectExp se)
     Get a pk = ? expression for this table.
public  voiddump()
    
public  voiddump(PrintStream out, String indent)
    
public  booleanequals(Object o)
     Tables with the same name and store are equal.
public  JdbcColumnfindPkColumn(String columnName)
     Find a primary key column by name.
public  StringformatPkString()
     Format the primary key as a String for debugging.
public  JdbcColumn[]getColsForCreateTable()
     Get columns for a create table statement.
public  ListgetColumnList()
    
public  ListgetConstraintList()
    
public  JdbcColumngetLockRowColumn()
     Get the column that is the best choice for dummy update locking.
public  String[]getPkNames()
     Get the names of all the JdbcColumn's in the primary key.
public  inthashCode()
    
public  booleanisInPrimaryKey(String columnName)
    
public  voidnameConstraints(JdbcNameGenerator nameGenerator)
    
public  voidsetPk(JdbcColumn[] pk)
     Set the primary key of this table.
public  voidsetTableOnCols()
     Set the table reference on all of our columns to us.
public  StringtoString()
    

Field Detail
cols
public JdbcColumn[] cols(Code)
All the columns making up this table in 'create table' order.



comment
public String comment(Code)
Comment info for the SQL script (e.g. class or field this table for).



constraints
public JdbcConstraint[] constraints(Code)
All the referential integrity constraints.



deleteRowSql
public String deleteRowSql(Code)
Cached sql to delete row from table.



indexes
public JdbcIndex[] indexes(Code)
All the indexes.



name
public String name(Code)



pk
public JdbcColumn[] pk(Code)
The primary key of this table. Note that these may be compound columns consisting of multiple JdbcSimpleColumns.



pkConstraintName
public String pkConstraintName(Code)
The name of this tables primary key constraint.



pkSimpleCols
public JdbcColumn[] pkSimpleCols(Code)
The primary key of this table flattened into its JdbcColumn's.



pkSimpleColumnCount
public int pkSimpleColumnCount(Code)
How many simple columns make up the primary key of this table?



sqlDriver
public SqlDriver sqlDriver(Code)




Constructor Detail
JdbcTable
public JdbcTable()(Code)




Method Detail
addConstraints
public void addConstraints(ArrayList cons)(Code)



appendInsertColumnList
public void appendInsertColumnList(CharBuf s)(Code)
Append part of an insert column name list for all our columns to s (e.g 'cola, colb, colc').



appendInsertPKColumnList
public void appendInsertPKColumnList(CharBuf s)(Code)
Append part of an insert column name list for our primary key columns to s (e.g 'pk1, pk2').



appendInsertPKValueList
public void appendInsertPKValueList(CharBuf s)(Code)
Append part of an insert value list for our primary key columns to s (e.g '?, ?').



appendInsertValueList
public void appendInsertValueList(CharBuf s)(Code)
Append part of an insert value list for all our columns to s (e.g '?, ?, ?').



appendWherePK
public void appendWherePK(CharBuf s)(Code)
Append part of a where clause for our primary key columns to us (e.g pk1 = ? and pk2 = ?).



compareTo
public int compareTo(Object o)(Code)
Sort by name.



createOrderByPKList
public SqlExp createOrderByPKList(SelectExp se)(Code)
Get an order by list to order by our primary key.



createPkEqualsParamExp
public SqlExp createPkEqualsParamExp(SelectExp se)(Code)
Get a pk = ? expression for this table.



dump
public void dump()(Code)



dump
public void dump(PrintStream out, String indent)(Code)



equals
public boolean equals(Object o)(Code)
Tables with the same name and store are equal.



findPkColumn
public JdbcColumn findPkColumn(String columnName)(Code)
Find a primary key column by name. Returns column found or null if none.



formatPkString
public String formatPkString()(Code)
Format the primary key as a String for debugging.



getColsForCreateTable
public JdbcColumn[] getColsForCreateTable()(Code)
Get columns for a create table statement. This will remove any duplicate and shared columns from cols. If there are multiple shared=false columns with the same name and one of them is a foreign key then it is used.



getColumnList
public List getColumnList()(Code)



getConstraintList
public List getConstraintList()(Code)



getLockRowColumn
public JdbcColumn getLockRowColumn()(Code)
Get the column that is the best choice for dummy update locking. This will choose a simple non-indexed non-primary key column if possible.



getPkNames
public String[] getPkNames()(Code)
Get the names of all the JdbcColumn's in the primary key.



hashCode
public int hashCode()(Code)



isInPrimaryKey
public boolean isInPrimaryKey(String columnName)(Code)
Is there a columnName in the primary key of this table?



nameConstraints
public void nameConstraints(JdbcNameGenerator nameGenerator)(Code)



setPk
public void setPk(JdbcColumn[] pk)(Code)
Set the primary key of this table. This will fill in pkSimpleCols and pkSimpleColumnCount as well.



setTableOnCols
public void setTableOnCols()(Code)
Set the table reference on all of our columns to us.



toString
public String toString()(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.