Java Doc for JdbcPolyRefField.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.JdbcField
      com.versant.core.jdbc.metadata.JdbcPolyRefField

JdbcPolyRefField
public class JdbcPolyRefField extends JdbcField (Code)
A field that is a polymorphic reference to any other PC class (e.g. an Object or interface reference).


Field Summary
public  JdbcColumnclassIdCol
     The column used to hold the classId value identifying the class (and hence table) that is being referenced.
public  JdbcColumn[]cols
    
public  JdbcColumn[]refCols
     The columns used to store the classId and the primary key of the referenced (target) tables.


Method Summary
public  voidaddMainTableCols(ArrayList a)
     Flatten all of this fields main table columns to a.
public  voidappendInsertColumnList(CharBuf s)
     Append part of the insert list for us to s (e.g.
public  booleanappendInsertValueList(CharBuf s, State state)
     Append part of the insert value list for us to s (e.g.
public  booleanappendUpdate(CharBuf s, State state)
     Append part of an update statement for us to s (e.g col = ?).
public  voidappendWhere(CharBuf s, SqlDriver sqlDriver)
     Append part of a where clause for us to s (e.g cola = ? and colb = ?).
public  voidappendWhereIsNull(CharBuf s, SqlDriver sqlDriver)
     Append part of a is null where clause for us to s (e.g cola is null and colb is null).
public  SqlExpcreateClassIdMatchExp(SelectExp root, ClassMetaData target)
     Create an expression to compare our classIdCol to the correct class-id value for target.
public  voiddump(PrintStream out, String indent)
    
public  OIDgetData(ResultSet rs, int firstCol)
     Get this field from a ResultSet starting at index firstCol.
public  voidinitMainTableCols()
     Init the mainTableCols field to all our main table columns.
public  voidnameColumns(String tableName, JdbcNameGenerator nameGen)
     Make sure all of this fields main table columns have names.
public  voidprocessMetaData(JdoField context, JdbcMetaDataBuilder mdb)
     Complete our meta data except for column names.
public  intsetData(PreparedStatement ps, int firstParam, OID oid)
     Set this field on a PS for inserting or updating a row.
public  voidsetMainTable(JdbcTable table)
     Set the table field on all our main table columns.
public  intsetQueryParam(PreparedStatement ps, int firstParam, Object value)
     Set this field on a PreparedStatement.
public  ColumnExptoColumnExp(SelectExp se, boolean joinToSuper)
     Convert this field into a list of ColumnExp's or null if this is not possible.
public  ColumnExptoColumnExpForNullLiteralCompare(SelectExp se)
     Convert this field into a list of ColumnExp's to be compared to a null literal.
public  StringtoString()
    

Field Detail
classIdCol
public JdbcColumn classIdCol(Code)
The column used to hold the classId value identifying the class (and hence table) that is being referenced.
See Also:   JdbcPolyRefField.cols



cols
public JdbcColumn[] cols(Code)



refCols
public JdbcColumn[] refCols(Code)
The columns used to store the classId and the primary key of the referenced (target) tables.
See Also:   JdbcPolyRefField.cols





Method Detail
addMainTableCols
public void addMainTableCols(ArrayList a)(Code)
Flatten all of this fields main table columns to a.



appendInsertColumnList
public void appendInsertColumnList(CharBuf s)(Code)
Append part of the insert list for us to s (e.g. cola, colb)).



appendInsertValueList
public boolean appendInsertValueList(CharBuf s, State state)(Code)
Append part of the insert value list for us to s (e.g. ?, ?)). This must return true if a replacable parameter was not added (e.g. columns using Oracle LOBs which put in empty_clob() or whatever).



appendUpdate
public boolean appendUpdate(CharBuf s, State state)(Code)
Append part of an update statement for us to s (e.g col = ?).



appendWhere
public void appendWhere(CharBuf s, SqlDriver sqlDriver)(Code)
Append part of a where clause for us to s (e.g cola = ? and colb = ?). This is used for generating the where clause for changed locking.



appendWhereIsNull
public void appendWhereIsNull(CharBuf s, SqlDriver sqlDriver)(Code)
Append part of a is null where clause for us to s (e.g cola is null and colb is null). This is used for generating the where clause for changed locking.



createClassIdMatchExp
public SqlExp createClassIdMatchExp(SelectExp root, ClassMetaData target)(Code)
Create an expression to compare our classIdCol to the correct class-id value for target.



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



getData
public OID getData(ResultSet rs, int firstCol) throws SQLException(Code)
Get this field from a ResultSet starting at index firstCol.



initMainTableCols
public void initMainTableCols()(Code)
Init the mainTableCols field to all our main table columns.



nameColumns
public void nameColumns(String tableName, JdbcNameGenerator nameGen)(Code)
Make sure all of this fields main table columns have names.



processMetaData
public void processMetaData(JdoField context, JdbcMetaDataBuilder mdb)(Code)
Complete our meta data except for column names.



setData
public int setData(PreparedStatement ps, int firstParam, OID oid) throws SQLException(Code)
Set this field on a PS for inserting or updating a row.
Parameters:
  firstParam - Index of first parameter to set Index of next parameter to be set on ps



setMainTable
public void setMainTable(JdbcTable table)(Code)
Set the table field on all our main table columns.



setQueryParam
public int setQueryParam(PreparedStatement ps, int firstParam, Object value) throws SQLException(Code)
Set this field on a PreparedStatement. This is used to set parameters for queries. Index of the parameter after the last one we set in ps



toColumnExp
public ColumnExp toColumnExp(SelectExp se, boolean joinToSuper)(Code)
Convert this field into a list of ColumnExp's or null if this is not possible.



toColumnExpForNullLiteralCompare
public ColumnExp toColumnExpForNullLiteralCompare(SelectExp se)(Code)
Convert this field into a list of ColumnExp's to be compared to a null literal. This should only include non-shared columns i.e. columns that are updated. If all columns are shared then all should be included.



toString
public String toString()(Code)



Fields inherited from com.versant.core.jdbc.metadata.JdbcField
final public static int USE_JOIN_INNER(Code)(Java Doc)
final public static int USE_JOIN_NO(Code)(Java Doc)
final public static int USE_JOIN_OUTER(Code)(Java Doc)
public boolean fake(Code)(Java Doc)
public FieldMetaData fmd(Code)(Java Doc)
public boolean includeForChangedLocking(Code)(Java Doc)
public JdbcTable mainTable(Code)(Java Doc)
public JdbcColumn[] mainTableCols(Code)(Java Doc)
public JdbcColumn[] mainTableColsForUpdate(Code)(Java Doc)
public int stateFieldNo(Code)(Java Doc)
public int useJoin(Code)(Java Doc)

Methods inherited from com.versant.core.jdbc.metadata.JdbcField
public void addConstraints(ArrayList cons)(Code)(Java Doc)
public void addMainTableCols(ArrayList a)(Code)(Java Doc)
public void appendInsertColumnList(CharBuf s)(Code)(Java Doc)
public boolean appendInsertValueList(CharBuf s, State state)(Code)(Java Doc)
public boolean appendUpdate(CharBuf s, State state)(Code)(Java Doc)
public void appendWhere(CharBuf s, SqlDriver sqlDriver)(Code)(Java Doc)
public void appendWhereIsNull(CharBuf s, SqlDriver sqlDriver)(Code)(Java Doc)
public ColumnExp createOwningTableColumnExpList(SelectExp se)(Code)(Java Doc)
public void deletePass2Block(DeletePacket graph, int blockStart, int blockEnd, CharBuf s, Connection con, boolean batch) throws SQLException(Code)(Java Doc)
public void dump()(Code)(Java Doc)
public void dump(PrintStream out, String indent)(Code)(Java Doc)
public JdbcColumn findMainTableColumn(String columnName)(Code)(Java Doc)
public String getContext()(Code)(Java Doc)
public SqlDriver getSqlDriver()(Code)(Java Doc)
public void getTables(HashSet tables)(Code)(Java Doc)
public int getUseKeyJoin()(Code)(Java Doc)
public void initMainTableCols()(Code)(Java Doc)
public void initMainTableColsForUpdate()(Code)(Java Doc)
public boolean isOracleStyleLOB()(Code)(Java Doc)
public RuntimeException mapException(Throwable cause, String message)(Code)(Java Doc)
public void nameColumns(String tableName, JdbcNameGenerator nameGen)(Code)(Java Doc)
public void nameLinkTableIndexes(JdbcNameGenerator namegen)(Code)(Java Doc)
public void persistPass2Block(PersistGraph graph, int blockStart, int blockEnd, CharBuf s, Connection con, boolean batchInserts, boolean batchUpdates) throws SQLException(Code)(Java Doc)
public void prepareFetch(FetchSpec spec, FetchOptions options)(Code)(Java Doc)
public void setMainTable(JdbcTable table)(Code)(Java Doc)
public int setQueryParam(PreparedStatement ps, int firstParam, Object value) throws SQLException(Code)(Java Doc)
public ColumnExp toColumnExp(SelectExp se, boolean joinToSuper)(Code)(Java Doc)
public ColumnExp toColumnExpForNullLiteralCompare(SelectExp se)(Code)(Java Doc)
public SqlExp toContainsKeySqlExp(JdbcJDOQLCompiler comp, SelectExp root, Node args)(Code)(Java Doc)
public SqlExp toContainsSqlExp(JdbcJDOQLCompiler comp, SelectExp root, Node args)(Code)(Java Doc)
public SqlExp toIsEmptySqlExp(JdbcJDOQLCompiler comp, SelectExp root)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public static String toUseJoinString(int useJoin)(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.