| com.versant.core.jdbc.JdbcState
All known Subclasses: com.versant.core.jdbc.JdbcGenericState,
Method Summary | |
public void | copyPass1Fields(ResultSet rs, FetchGroup fetchGroup, int firstCol) Populate this State from the given ResultSet. | public void | copyPass1Fields(ResultSet rs, JdbcField[] fields) | public boolean | hasSameNullFields(State state, State mask) Does this State contain exactly the same null fields as the supplied
State? A null field is a field that is filled in mask but that is
null or not filled in this state. | public int | setOptimisticLockingParams(PreparedStatement ps, int firstParam) Set parameters on a PrepareStatement from the optimistic locking field
for the class for this State. | public void | setOracleStyleLOBs(ResultSet rs, int[] stateFieldNos, int numFieldNos, int firstCol) Call the set(rs,...) method on each of the converters for the first
numFieldNos entries in stateFieldNos. | public int | setParams(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo) Set parameters on a PrepareStatement from this State. | public int | setParamsChangedAndNotNull(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo) Set parameters on a PrepareStatement from this State for fields that
are not null and that are included when doing changed optimistic locking.
The firstParam parameter specifies the column index of the first
parameter. |
copyPass1Fields | public void copyPass1Fields(ResultSet rs, FetchGroup fetchGroup, int firstCol) throws SQLException(Code) | | Populate this State from the given ResultSet. The firstCol parameter
specifies the column index of the first column to read from rs. All
persistent pass 1 fields in the fetch group must be read in order.
|
hasSameNullFields | public boolean hasSameNullFields(State state, State mask)(Code) | | Does this State contain exactly the same null fields as the supplied
State? A null field is a field that is filled in mask but that is
null or not filled in this state. This must always return true for
classes that do not use changed optimistic locking or that are not
stored by the JdbcDataStore.
Parameters: state - State to compare to (will be for same class) Parameters: mask - State providing the filled states to check |
setOptimisticLockingParams | public int setOptimisticLockingParams(PreparedStatement ps, int firstParam) throws SQLException(Code) | | Set parameters on a PrepareStatement from the optimistic locking field
for the class for this State. The firstParam parameter specifies the
column index of the first parameter to set.
the index of the last param set + 1 throws: javax.jdo.JDOFatalInternalException - if there is no such field See Also: com.versant.core.jdbc.metadata.JdbcClass.optimisticLockingField |
setOracleStyleLOBs | public void setOracleStyleLOBs(ResultSet rs, int[] stateFieldNos, int numFieldNos, int firstCol) throws SQLException(Code) | | Call the set(rs,...) method on each of the converters for the first
numFieldNos entries in stateFieldNos. This is used to handle Oracle
style LOB columns.
Parameters: firstCol - The first column in rs to use See Also: com.versant.core.jdbc.JdbcConverter.set |
setParams | public int setParams(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo) throws SQLException(Code) | | Set parameters on a PrepareStatement from this State. The firstParam
parameter specifies the column index of the first parameter to set.
Entries in fieldNos that are less than 0 should be skipped.
Parameters: firstFieldNo - The index of the first field to set Parameters: lastFieldNo - The index of the last field to set + 1 Parameters: tableNo - Set fields with table == jdbcClass.allTables[tableNo] the index of the last param set + 1 |
setParamsChangedAndNotNull | public int setParamsChangedAndNotNull(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo) throws SQLException(Code) | | Set parameters on a PrepareStatement from this State for fields that
are not null and that are included when doing changed optimistic locking.
The firstParam parameter specifies the column index of the first
parameter. This will not be called for classes that are not stored by
the JdbcDataStore or that do not use changed optimistic locking.
Entries in fieldNos that are less than 0 should be skipped.
Parameters: firstFieldNo - The index of the first field to set Parameters: lastFieldNo - The index of the last field to set + 1 Parameters: tableNo - the index of the last param set + 1 |
|
|