public class JDBCCMPFieldBridge2 extends Object implements CMPFieldBridge
| Constructor and Description |
|---|
JDBCCMPFieldBridge2(JDBCCMPFieldBridge2 cmpField,
JDBCCMPFieldBridge2 relatedPKField) |
JDBCCMPFieldBridge2(JDBCStoreManager2 manager,
JDBCEntityBridge2 entity,
JDBCCMPFieldMetaData metadata,
int rowIndex) |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnName() |
String |
getFieldName()
Gets the name of this field.
|
Class |
getFieldType() |
Object |
getInstanceValue(CmpEntityBeanContext ctx)
Gets the internal value of this field without user level checks.
|
JDBCType |
getJDBCType()
Gets the JDBC type of this field.
|
JDBCEntityPersistenceStore |
getManager() |
Object |
getPrimaryKeyValue(Object primaryKey) |
int |
getRowIndex() |
Object |
getValue(CmpEntityBeanContext ctx)
Gets the value of this field for the specified instance context.
|
int |
getVersionIndex() |
void |
initInstance(CmpEntityBeanContext ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null).
|
void |
initVersion() |
boolean |
isCMPField() |
boolean |
isDirty(CmpEntityBeanContext ctx)
Has the value of this field changes since the last time clean was called.
|
boolean |
isLoaded(CmpEntityBeanContext ctx)
Has the data been loaded?
|
boolean |
isPrimaryKeyMember()
Is this field a member of the primary key.
|
boolean |
isReadOnly()
Is this field read only.
|
boolean |
isReadTimedOut(CmpEntityBeanContext ctx)
Has current data read timed out?
|
Object |
loadArgumentResults(ResultSet rs,
int parameterIndex) |
int |
loadArgumentResults(ResultSet rs,
int parameterIndex,
Object[] argumentRef)
Loads the value of this cmp field from result set into argument reference.
|
int |
loadInstanceResults(ResultSet rs,
int parameterIndex,
CmpEntityBeanContext ctx)
Loads the data from result set into the instance associated with
the specified context.
|
void |
resetPersistenceContext(CmpEntityBeanContext ctx)
Resets any persistence data maintained in the context.
|
int |
setArgumentParameters(PreparedStatement ps,
int parameterIndex,
Object arg) |
void |
setClean(CmpEntityBeanContext ctx)
Mark this field as clean.
|
int |
setInstanceParameters(PreparedStatement ps,
int parameterIndex,
CmpEntityBeanContext ctx)
Sets the prepared statement parameters with the data from the
instance associated with the context.
|
void |
setInstanceValue(CmpEntityBeanContext ctx,
Object value)
Sets the internal value of this field without user level checks.
|
Object |
setPrimaryKeyValue(Object primaryKey,
Object value) |
void |
setValue(CmpEntityBeanContext ctx,
Object value)
Sets the value of this field for the specified instance context.
|
void |
setValueInternal(CmpEntityBeanContext ctx,
Object value,
boolean makeDirty) |
public JDBCCMPFieldBridge2(JDBCStoreManager2 manager, JDBCEntityBridge2 entity, JDBCCMPFieldMetaData metadata, int rowIndex)
public JDBCCMPFieldBridge2(JDBCCMPFieldBridge2 cmpField, JDBCCMPFieldBridge2 relatedPKField)
public void initVersion()
public int getVersionIndex()
public String getColumnName()
public Object setPrimaryKeyValue(Object primaryKey, Object value) throws IllegalArgumentException
IllegalArgumentExceptionpublic void setValueInternal(CmpEntityBeanContext ctx, Object value, boolean makeDirty)
public int setArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg)
public Object loadArgumentResults(ResultSet rs, int parameterIndex) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getRowIndex()
public JDBCEntityPersistenceStore getManager()
getManager in interface JDBCFieldBridgepublic void initInstance(CmpEntityBeanContext ctx)
JDBCFieldBridgeinitInstance in interface JDBCFieldBridgepublic void resetPersistenceContext(CmpEntityBeanContext ctx)
JDBCFieldBridgeresetPersistenceContext in interface JDBCFieldBridgepublic int setInstanceParameters(PreparedStatement ps, int parameterIndex, CmpEntityBeanContext ctx)
JDBCFieldBridgesetInstanceParameters in interface JDBCFieldBridgepublic Object getInstanceValue(CmpEntityBeanContext ctx)
JDBCFieldBridgegetInstanceValue in interface JDBCFieldBridgectx - the context for which this field's value should be fetchedpublic void setInstanceValue(CmpEntityBeanContext ctx, Object value)
JDBCFieldBridgesetInstanceValue in interface JDBCFieldBridgectx - the context for which this field's value should be setvalue - the new value of this fieldpublic int loadInstanceResults(ResultSet rs, int parameterIndex, CmpEntityBeanContext ctx)
JDBCFieldBridgeloadInstanceResults in interface JDBCFieldBridgepublic int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
JDBCFieldBridgeloadArgumentResults in interface JDBCFieldBridgepublic boolean isDirty(CmpEntityBeanContext ctx)
JDBCFieldBridgeisDirty in interface JDBCFieldBridgepublic void setClean(CmpEntityBeanContext ctx)
JDBCFieldBridgesetClean in interface JDBCFieldBridgepublic boolean isCMPField()
isCMPField in interface JDBCFieldBridgepublic boolean isPrimaryKeyMember()
JDBCFieldBridgeisPrimaryKeyMember in interface JDBCFieldBridgepublic boolean isReadOnly()
JDBCFieldBridgeisReadOnly in interface JDBCFieldBridgepublic boolean isReadTimedOut(CmpEntityBeanContext ctx)
JDBCFieldBridgeisReadTimedOut in interface JDBCFieldBridgepublic boolean isLoaded(CmpEntityBeanContext ctx)
JDBCFieldBridgeisLoaded in interface JDBCFieldBridgepublic JDBCType getJDBCType()
JDBCFieldBridgegetJDBCType in interface JDBCFieldBridgepublic Object getPrimaryKeyValue(Object primaryKey) throws IllegalArgumentException
getPrimaryKeyValue in interface JDBCFieldBridgeIllegalArgumentExceptionpublic String getFieldName()
FieldBridgegetFieldName in interface FieldBridgepublic Object getValue(CmpEntityBeanContext ctx)
FieldBridgegetValue in interface FieldBridgectx - the context for which this field's value should be fetchedpublic void setValue(CmpEntityBeanContext ctx, Object value)
FieldBridgesetValue in interface FieldBridgectx - the context for which this field's value should be setvalue - the new value of this fieldpublic Class getFieldType()
getFieldType in interface CMPFieldBridgeCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.