Java Doc for JdbcMapField.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.JdbcCollectionField
         com.versant.core.jdbc.metadata.JdbcLinkCollectionField
            com.versant.core.jdbc.metadata.JdbcMapField

JdbcMapField
public class JdbcMapField extends JdbcLinkCollectionField (Code)
This is a Map field stored using a link table.


Field Summary
public  JdbcColumnkeyColumns
     The column(s) holding the keys.
public  booleankeysAreOIDs
    
public  booleankeysDependent
     Should the keys be considered a dependent? If they are they will be deleted if removed from the map or if our instance is deleted.
public  intuseKeyJoin
     Should a join be done to pick up the fields for keys when they are read? This only makes sense if the key is a PC class.


Method Summary
protected  voidaddFetchAllRowsKey(SqlExp e, SelectExp se)
     Add our key columns to the row.
protected  voidcompleteKeyAndValueColumnMetaData(JdbcClass jdbcClass, ArrayList cols, JdoElement context, JdoExtension[] linkNested, JdbcMetaDataBuilder mdb, boolean quiet)
     Complete the key and value column related meta data.
protected  ListcreateConstraints(boolean pkConstraint, String pkConstraintName)
     Create all the constraints for our link table.
protected  voidcreateLinkTablePK()
     Set the PK of the link table.
public  voiddump(PrintStream out, String indent)
    
public  intfetch(JdbcStorageManager sm, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, ColFieldHolder colFHolder)
     Fetch the values for this field.
public  intfetchFrom(ResultSet rs, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, int colIndex, FetchInfo fetchInfo, JdbcStorageManager sm)
    
public  intfetchWithFilter(JdbcStorageManager sm, StateContainer oidStates, FetchGroupField field, ResultSet rs, boolean forUpdate, OID oidToCheckOn, OID[] lastReadStateOID, ClassMetaData cmd, ColFieldHolder colFHolder)
     Fetch the values for this field using parallel query processing.
public  voidfillStateWithEmpty(FetchGroupField field, State state)
    
public  SelectExpgetSelectExp(JdbcStorageManager dataStore, FetchGroupField field, FgDs[] fgDses)
     Get a SelectExp to select all the rows in this map using the supplied fetch group field to control joins and so on.
public  SelectExpgetSelectExpFrom(JdbcStorageManager sm, SelectExp joinToExp, FetchGroupField field, FgDs owningFgDs)
    
public  SelectExpgetSelectFilterExp(JdbcStorageManager sm, FetchGroupField field, ColFieldHolder colFHolder)
    
public  SelectExpgetSelectFilterJoinExp(boolean value, SelectExp lhSe, SelectExp rootSe, boolean addRootJoin)
    
public  intgetUseKeyJoin()
     Get the useKeyJoin value for this field.
protected  voidnameKeyAndValueColumns(JdbcNameGenerator namegen, String linkTableNameForNamegen)
     Name the key and value columns.
protected  voidnameLinkTable(JdbcNameGenerator namegen, JdbcClass jdbcClass)
     Name our linkTable.
public  voidpersistPass2Block(PersistGraph graph, int blockStart, int blockEnd, CharBuf s, Connection con, boolean batchInserts, boolean batchUpdates)
     Persist pass 2 field for a block of graph entries all with the same class.
public  voidprocessMetaData(JdoElement context, JdbcMetaDataBuilder mdb, boolean quiet)
     Complete the meta data for this collection.
public  intreadRow(ResultSet rs, JdbcLinkCollectionField.LinkRow row)
     Fetch a row of values for this field.
public  SqlExptoContainsKeySqlExp(JdbcJDOQLCompiler comp, SelectExp root, Node args)
     Convert this field into a containsKey expression.
public  voidwriteRow(PreparedStatement ps, LinkRow row)
     Set a row of values for this field on a PreparedStatement.

Field Detail
keyColumns
public JdbcColumn keyColumns(Code)
The column(s) holding the keys. This array will have length 1 unless the keys are of a PC class with a composite primary key.



keysAreOIDs
public boolean keysAreOIDs(Code)
Are the keys OID's?



keysDependent
public boolean keysDependent(Code)
Should the keys be considered a dependent? If they are they will be deleted if removed from the map or if our instance is deleted. This only makes sense if the keys are instances of a PC class.



useKeyJoin
public int useKeyJoin(Code)
Should a join be done to pick up the fields for keys when they are read? This only makes sense if the key is a PC class.





Method Detail
addFetchAllRowsKey
protected void addFetchAllRowsKey(SqlExp e, SelectExp se)(Code)
Add our key columns to the row.



completeKeyAndValueColumnMetaData
protected void completeKeyAndValueColumnMetaData(JdbcClass jdbcClass, ArrayList cols, JdoElement context, JdoExtension[] linkNested, JdbcMetaDataBuilder mdb, boolean quiet)(Code)
Complete the key and value column related meta data.



createConstraints
protected List createConstraints(boolean pkConstraint, String pkConstraintName)(Code)
Create all the constraints for our link table.



createLinkTablePK
protected void createLinkTablePK()(Code)
Set the PK of the link table.



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



fetch
public int fetch(JdbcStorageManager sm, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, ColFieldHolder colFHolder) throws SQLException(Code)
Fetch the values for this field.



fetchFrom
public int fetchFrom(ResultSet rs, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, int colIndex, FetchInfo fetchInfo, JdbcStorageManager sm) throws SQLException(Code)



fetchWithFilter
public int fetchWithFilter(JdbcStorageManager sm, StateContainer oidStates, FetchGroupField field, ResultSet rs, boolean forUpdate, OID oidToCheckOn, OID[] lastReadStateOID, ClassMetaData cmd, ColFieldHolder colFHolder) throws SQLException(Code)
Fetch the values for this field using parallel query processing.



fillStateWithEmpty
public void fillStateWithEmpty(FetchGroupField field, State state)(Code)



getSelectExp
public SelectExp getSelectExp(JdbcStorageManager dataStore, FetchGroupField field, FgDs[] fgDses)(Code)
Get a SelectExp to select all the rows in this map using the supplied fetch group field to control joins and so on.



getSelectExpFrom
public SelectExp getSelectExpFrom(JdbcStorageManager sm, SelectExp joinToExp, FetchGroupField field, FgDs owningFgDs)(Code)



getSelectFilterExp
public SelectExp getSelectFilterExp(JdbcStorageManager sm, FetchGroupField field, ColFieldHolder colFHolder)(Code)



getSelectFilterJoinExp
public SelectExp getSelectFilterJoinExp(boolean value, SelectExp lhSe, SelectExp rootSe, boolean addRootJoin)(Code)



getUseKeyJoin
public int getUseKeyJoin()(Code)
Get the useKeyJoin value for this field. This is only valid for maps.



nameKeyAndValueColumns
protected void nameKeyAndValueColumns(JdbcNameGenerator namegen, String linkTableNameForNamegen)(Code)
Name the key and value columns.



nameLinkTable
protected void nameLinkTable(JdbcNameGenerator namegen, JdbcClass jdbcClass)(Code)
Name our linkTable.



persistPass2Block
public void persistPass2Block(PersistGraph graph, int blockStart, int blockEnd, CharBuf s, Connection con, boolean batchInserts, boolean batchUpdates) throws SQLException(Code)
Persist pass 2 field for a block of graph entries all with the same class. The same ps'es can be used for all entries in the block.



processMetaData
public void processMetaData(JdoElement context, JdbcMetaDataBuilder mdb, boolean quiet)(Code)
Complete the meta data for this collection. This must use info already supplied in the .jdo file and add anything else needed.



readRow
public int readRow(ResultSet rs, JdbcLinkCollectionField.LinkRow row) throws SQLException(Code)
Fetch a row of values for this field. This is used when bulk copying one database to another to read all the rows in a given link table. Return the index of the last column read + 1.



toContainsKeySqlExp
public SqlExp toContainsKeySqlExp(JdbcJDOQLCompiler comp, SelectExp root, Node args)(Code)
Convert this field into a containsKey expression.



writeRow
public void writeRow(PreparedStatement ps, LinkRow row) throws SQLException(Code)
Set a row of values for this field on a PreparedStatement. This is used when bulk copying one database to another.



Fields inherited from com.versant.core.jdbc.metadata.JdbcLinkCollectionField
protected transient float avgRowCount(Code)(Java Doc)
protected transient int expansionCount(Code)(Java Doc)
protected transient int fetchCount(Code)(Java Doc)
public JdbcLinkCollectionField inverse(Code)(Java Doc)
public JdbcTable linkTable(Code)(Java Doc)
public boolean readOnly(Code)(Java Doc)
public JdbcColumn[] valueColumns(Code)(Java Doc)
public boolean valuesAreOIDs(Code)(Java Doc)

Methods inherited from com.versant.core.jdbc.metadata.JdbcLinkCollectionField
protected void addFetchAllRowsKey(SqlExp e, SelectExp se)(Code)(Java Doc)
protected void completeKeyAndValueColumnMetaData(JdbcClass jdbcClass, ArrayList cols, JdoElement context, JdoExtension[] linkNested, JdbcMetaDataBuilder mdb, boolean quiet)(Code)(Java Doc)
protected List createConstraints(boolean pkConstraint, String pkConstraintName)(Code)(Java Doc)
protected void createLinkTablePK()(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(PrintStream out, String indent)(Code)(Java Doc)
protected void execLinkTableBatchDeletes(int delCount, PreparedStatement psdel, String psdelSql, PreparedStatement psdelAll, String psdelAllSql)(Code)(Java Doc)
protected void execLinkTableBatchInserts(PreparedStatement psins, String psinsSql)(Code)(Java Doc)
public int fetch(JdbcStorageManager sm, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, ColFieldHolder colFHolder) throws SQLException(Code)(Java Doc)
public int fetchFrom(ResultSet rs, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, int colIndex, FetchInfo fetchInfo, JdbcStorageManager sm) throws SQLException(Code)(Java Doc)
public int fetchWithFilter(JdbcStorageManager sm, StateContainer oidStates, FetchGroupField field, ResultSet rs, boolean forUpdate, OID oidToCheckOn, OID[] lastReadStateOID, ClassMetaData cmd, ColFieldHolder colFHolder) throws SQLException(Code)(Java Doc)
public void fillStateWithEmpty(FetchGroupField field, State state)(Code)(Java Doc)
protected String getDeleteAllLinkTableRowsSql(CharBuf s)(Code)(Java Doc)
protected void getDeleteAllLinkTableRowsSqlWithInList(CharBuf s)(Code)(Java Doc)
protected String getDeleteLinkTableRowSql(CharBuf s)(Code)(Java Doc)
public String getFetchAllRowsSql(JdbcStorageManager sm) throws SQLException(Code)(Java Doc)
public String getInsertLinkTableRowSql(CharBuf s)(Code)(Java Doc)
protected SelectExp getSelectExp(JdbcStorageManager sm, FetchGroupField field, FgDs[] fgDses)(Code)(Java Doc)
public SelectExp getSelectExpFrom(JdbcStorageManager sm, SelectExp joinToExp, FetchGroupField field, FgDs owningFgDs)(Code)(Java Doc)
public SelectExp getSelectExpFromImp(SelectExp joinToExp, FetchGroupField field, JdbcStorageManager sm, FgDs owningFgDs)(Code)(Java Doc)
public SelectExp getSelectFilterExp(JdbcStorageManager sm, FetchGroupField field, ColFieldHolder colFHolder)(Code)(Java Doc)
public SelectExp getSelectFilterJoinExp(boolean value, SelectExp lhSe, SelectExp rootSe, boolean addRootJoin)(Code)(Java Doc)
public void getTables(HashSet tables)(Code)(Java Doc)
protected void nameKeyAndValueColumns(JdbcNameGenerator namegen, String linkTableNameForNamegen)(Code)(Java Doc)
protected void nameLinkTable(JdbcNameGenerator namegen, JdbcClass jdbcClass)(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 processMetaData(JdoElement context, JdbcMetaDataBuilder mdb, boolean quiet)(Code)(Java Doc)
public int readRow(ResultSet rs, LinkRow row) throws SQLException(Code)(Java Doc)
public SqlExp toContainsSqlExp(JdbcJDOQLCompiler comp, SelectExp root, Node args)(Code)(Java Doc)
protected SqlExp toContainsSqlExp(JdbcColumn[] cols, ClassMetaData colsCmd, JdbcJDOQLCompiler comp, SelectExp root, Node args)(Code)(Java Doc)
public SqlExp toIsEmptySqlExp(JdbcJDOQLCompiler comp, SelectExp root)(Code)(Java Doc)
public void writeRow(PreparedStatement ps, LinkRow row) throws SQLException(Code)(Java Doc)

Fields inherited from com.versant.core.jdbc.metadata.JdbcCollectionField
final public static Object[] EMPTY_OBJECT_ARRAY(Code)(Java Doc)
final public static OID[] EMPTY_OID_ARRAY(Code)(Java Doc)
final public static Object[] PRE_GEN_EMPTY_OBJECT_ARRAY(Code)(Java Doc)
public static int STATUS_CLOSED(Code)(Java Doc)
public static int STATUS_DATA_ADDED(Code)(Java Doc)
public static int STATUS_VALID_ROWS(Code)(Java Doc)
public JdbcColumn[] ourPkColumns(Code)(Java Doc)
public JdbcColumn sequenceColumn(Code)(Java Doc)

Methods inherited from com.versant.core.jdbc.metadata.JdbcCollectionField
protected boolean checkKeyOid(ResultSet rs, int colIndex, FetchInfo fetchInfo, boolean mustBreak, OID oid) throws SQLException(Code)(Java Doc)
protected void cleanup(Statement s)(Code)(Java Doc)
protected void cleanup(ResultSet rs)(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(PrintStream out, String indent)(Code)(Java Doc)
abstract public int fetch(JdbcStorageManager sm, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, ColFieldHolder colFHolder) throws SQLException(Code)(Java Doc)
abstract public int fetchFrom(ResultSet rs, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, int colIndex, FetchInfo fetchInfo, JdbcStorageManager sm) throws SQLException(Code)(Java Doc)
abstract public int fetchWithFilter(JdbcStorageManager sm, StateContainer oidStates, FetchGroupField field, ResultSet rs, boolean forUpdate, OID oidToCheckOn, OID[] lastReadStateOID, ClassMetaData cmd, ColFieldHolder colFHolder) throws SQLException(Code)(Java Doc)
abstract public void fillStateWithEmpty(FetchGroupField field, State state)(Code)(Java Doc)
abstract public SelectExp getSelectExpFrom(JdbcStorageManager sm, SelectExp joinToExp, FetchGroupField field, FgDs owningFgDs)(Code)(Java Doc)
abstract public SelectExp getSelectFilterExp(JdbcStorageManager sm, FetchGroupField field, ColFieldHolder colFHolder)(Code)(Java Doc)
abstract public SelectExp getSelectFilterJoinExp(boolean value, SelectExp lhSe, SelectExp rootSe, boolean addRootJoin)(Code)(Java Doc)
public void processMetaData(JdoElement context, JdbcMetaDataBuilder mdb, boolean quiet)(Code)(Java Doc)
protected boolean updateForFirstRow(FetchInfo fetchInfo, boolean mustBreak, ResultSet rs, int colIndex, OID oid) throws SQLException(Code)(Java Doc)

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.