| org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMPFieldBridge
All known Subclasses: org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge,
JDBCCMPFieldBridge | public interface JDBCCMPFieldBridge extends JDBCFieldBridge,CMPFieldBridge(Code) | | JDBCCMPFieldBridge represents one CMP field. This implementations of
this interface handles setting are responsible for setting statement
parameters and loading results for instance values and primary
keys.
Life-cycle:
Tied to the EntityBridge.
Multiplicity:
One for each entity bean cmp field.
author: Dain Sundstrom author: Alex Loubyansky version: $Revision: 57209 $ |
addDefaultFlag | void addDefaultFlag(byte flag)(Code) | | TODO: Get rid of it
Parameters: flag - |
getDefaultFlags | byte getDefaultFlags()(Code) | | Returns the default field flags.
|
getPrimaryKeyField | public Field getPrimaryKeyField()(Code) | | Gets the field of the primary key object in which the value of this
field is stored.
|
getPrimaryKeyValue | public Object getPrimaryKeyValue(Object primaryKey) throws IllegalArgumentException(Code) | | Gets the value of this field in the specified primaryKey object.
Parameters: primaryKey - the primary key object from which this fields value will be extracted the value of this field in the primaryKey object |
getTableIndex | int getTableIndex()(Code) | | The index of the field among the table fields.
|
isRelationTableField | boolean isRelationTableField()(Code) | | true if the field belongs to a relation table |
setArgumentParameters | public int setArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg)(Code) | | Sets the prepared statement parameters with the data from the
object. The object must be the type of this field.
|
setLockingStrategy | void setLockingStrategy(LockingStrategy lockingStrategy)(Code) | | Parameters: lockingStrategy - locking strategy assigned to the field |
setPrimaryKeyValue | public Object setPrimaryKeyValue(Object primaryKey, Object value) throws IllegalArgumentException(Code) | | Sets the value of this field to the specified value in the
specified primaryKey object.
Parameters: primaryKey - the primary key object which the value will be inserted Parameters: value - the value for field that will be set in the pk the updated primary key object; the actual object may change not just the value |
|
|