| java.lang.Object com.versant.core.jdbc.metadata.JdbcField com.versant.core.jdbc.metadata.JdbcCollectionField
All known Subclasses: com.versant.core.jdbc.metadata.JdbcLinkCollectionField, com.versant.core.jdbc.metadata.JdbcFKCollectionField,
JdbcCollectionField | abstract public class JdbcCollectionField extends JdbcField (Code) | | Base class for field that are Collections, Maps or arrays.
|
Method Summary | |
protected boolean | checkKeyOid(ResultSet rs, int colIndex, FetchInfo fetchInfo, boolean mustBreak, OID oid) | protected void | cleanup(Statement s) | protected void | cleanup(ResultSet rs) | public void | deletePass2Block(DeletePacket graph, int blockStart, int blockEnd, CharBuf s, Connection con, boolean batch) | public void | dump(PrintStream out, String indent) | abstract public int | fetch(JdbcStorageManager sm, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, ColFieldHolder colFHolder) Fetch the values for this field. | abstract public int | fetchFrom(ResultSet rs, OID oid, State state, FetchGroupField field, boolean forUpdate, StateContainer container, boolean fetchPass2Fields, int colIndex, FetchInfo fetchInfo, JdbcStorageManager sm) | abstract public int | fetchWithFilter(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. | abstract public void | fillStateWithEmpty(FetchGroupField field, State state) Create a empty collection data structure in the state. | abstract public SelectExp | getSelectExpFrom(JdbcStorageManager sm, SelectExp joinToExp, FetchGroupField field, FgDs owningFgDs) | abstract public SelectExp | getSelectFilterExp(JdbcStorageManager sm, FetchGroupField field, ColFieldHolder colFHolder) Create the select exp for this collection. | abstract public SelectExp | getSelectFilterJoinExp(boolean value, SelectExp lhSe, SelectExp rootSe, boolean addRootJoin) Create a join select exp through this. | public void | processMetaData(JdoElement context, JdbcMetaDataBuilder mdb, boolean quiet) Complete the meta data for this collection. | protected boolean | updateForFirstRow(FetchInfo fetchInfo, boolean mustBreak, ResultSet rs, int colIndex, OID oid) This is called for the first logical row of a crossjoin resultset. |
EMPTY_OBJECT_ARRAY | final public static Object[] EMPTY_OBJECT_ARRAY(Code) | | |
EMPTY_OID_ARRAY | final public static OID[] EMPTY_OID_ARRAY(Code) | | |
PRE_GEN_EMPTY_OBJECT_ARRAY | final public static Object[] PRE_GEN_EMPTY_OBJECT_ARRAY(Code) | | |
STATUS_CLOSED | public static int STATUS_CLOSED(Code) | | |
STATUS_DATA_ADDED | public static int STATUS_DATA_ADDED(Code) | | |
STATUS_VALID_ROWS | public static int STATUS_VALID_ROWS(Code) | | |
ourPkColumns | public JdbcColumn[] ourPkColumns(Code) | | The column(s) holding primary key of the main table for our class.
These could be in the link table or in the value PC class table.
|
sequenceColumn | public JdbcColumn sequenceColumn(Code) | | The column holding the sequence number for each value (null if the
collection is not ordered).
|
fillStateWithEmpty | abstract public void fillStateWithEmpty(FetchGroupField field, State state)(Code) | | Create a empty collection data structure in the state. This is used for parallel
query processing.
|
getSelectFilterJoinExp | abstract public SelectExp getSelectFilterJoinExp(boolean value, SelectExp lhSe, SelectExp rootSe, boolean addRootJoin)(Code) | | Create a join select exp through this.
|
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.
|
updateForFirstRow | protected boolean updateForFirstRow(FetchInfo fetchInfo, boolean mustBreak, ResultSet rs, int colIndex, OID oid) throws SQLException(Code) | | This is called for the first logical row of a crossjoin resultset.
|
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)
|
|
|