public interface JDBCCMPFieldBridge extends CMPFieldBridge
Modifier and Type | Method and Description |
---|---|
void |
addDefaultFlag(byte flag)
TODO: Get rid of it
|
byte |
getDefaultFlags()
Returns the default field flags.
|
Object |
getLockedValue(CmpEntityBeanContext ctx) |
Field |
getPrimaryKeyField()
Gets the field of the primary key object in which the value of this
field is stored.
|
Object |
getPrimaryKeyValue(Object primaryKey)
Gets the value of this field in the specified primaryKey object.
|
int |
getTableIndex()
The index of the field among the table fields.
|
boolean |
isRelationTableField() |
int |
loadPrimaryKeyResults(ResultSet rs,
int parameterIndex,
Object[] pkRef)
Loads the data from result set into the primary key object.
|
void |
lockInstanceValue(CmpEntityBeanContext ctx)
Optimistically locks field value.
|
int |
setArgumentParameters(PreparedStatement ps,
int parameterIndex,
Object arg)
Sets the prepared statement parameters with the data from the
object.
|
void |
setLockingStrategy(LockingStrategy lockingStrategy) |
int |
setPrimaryKeyParameters(PreparedStatement ps,
int parameterIndex,
Object primaryKey)
Sets the prepared statement parameters with the data from the
primary key.
|
Object |
setPrimaryKeyValue(Object primaryKey,
Object value)
Sets the value of this field to the specified value in the
specified primaryKey object.
|
getFieldType
getInstanceValue, getJDBCType, getManager, initInstance, isCMPField, isDirty, isLoaded, isPrimaryKeyMember, isReadOnly, isReadTimedOut, loadArgumentResults, loadInstanceResults, resetPersistenceContext, setClean, setInstanceParameters, setInstanceValue
getFieldName, getValue, setValue
int getTableIndex()
byte getDefaultFlags()
void addDefaultFlag(byte flag)
flag
- Object getLockedValue(CmpEntityBeanContext ctx)
ctx
- instance's contextvoid lockInstanceValue(CmpEntityBeanContext ctx)
void setLockingStrategy(LockingStrategy lockingStrategy)
lockingStrategy
- locking strategy assigned to the fieldField getPrimaryKeyField()
Object getPrimaryKeyValue(Object primaryKey) throws IllegalArgumentException
getPrimaryKeyValue
in interface JDBCFieldBridge
primaryKey
- the primary key object from which this fields value
will be extractedIllegalArgumentException
boolean isRelationTableField()
Object setPrimaryKeyValue(Object primaryKey, Object value) throws IllegalArgumentException
primaryKey
- the primary key object which the value
will be insertedvalue
- the value for field that will be set in the pkIllegalArgumentException
int setPrimaryKeyParameters(PreparedStatement ps, int parameterIndex, Object primaryKey) throws IllegalArgumentException
IllegalArgumentException
int setArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg)
int loadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object[] pkRef) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.