public class JDBCCMP2xFieldBridge extends JDBCAbstractCMPFieldBridge
checkDirtyAfterGet, defaultFlags, fieldName, jdbcContextIndex, log, manager, primaryKeyMember, readOnly, readTimeOut, stateFactory, tableIndex
Constructor and Description |
---|
JDBCCMP2xFieldBridge(JDBCCMP2xFieldBridge cmpField,
CMPFieldStateFactory stateFactory,
boolean checkDirtyAfterGet) |
JDBCCMP2xFieldBridge(JDBCStoreManager manager,
JDBCCMPFieldMetaData metadata) |
JDBCCMP2xFieldBridge(JDBCStoreManager manager,
JDBCCMPFieldMetaData metadata,
CMPFieldStateFactory stateFactory,
boolean checkDirtyAfterGet) |
JDBCCMP2xFieldBridge(JDBCStoreManager manager,
JDBCCMPFieldMetaData metadata,
JDBCType jdbcType)
This constructor creates a foreign key field.
|
JDBCCMP2xFieldBridge(JDBCStoreManager manager,
String fieldName,
Class fieldType,
JDBCType jdbcType,
boolean readOnly,
long readTimeOut,
Class primaryKeyClass,
Field primaryKeyField,
JDBCCMP2xFieldBridge cmpFieldIAmMappedTo,
JDBCCMRFieldBridge myCMRField,
String columnName)
This constructor is used to create a foreign key field instance that is
a part of primary key field.
|
Modifier and Type | Method and Description |
---|---|
JDBCCMP2xFieldBridge |
getCmpFieldIAmMappedTo() |
org.jboss.as.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.ChainLink |
getCmrChainLink() |
String |
getColumnName() |
Object |
getInstanceValue(CmpEntityBeanContext ctx)
Gets the internal value of this field without user level checks.
|
Object |
getLockedValue(CmpEntityBeanContext ctx) |
boolean |
isDirty(CmpEntityBeanContext ctx)
Has the value of this field changes since the last time clean was called.
|
boolean |
isFKFieldMappedToCMPField() |
boolean |
isLoaded(CmpEntityBeanContext ctx)
Has the data been loaded?
|
boolean |
isReadTimedOut(CmpEntityBeanContext ctx)
Has current data read timed out?
|
void |
lockInstanceValue(CmpEntityBeanContext ctx)
Optimistically locks field value.
|
void |
resetPersistenceContext(CmpEntityBeanContext ctx)
Resets any persistence data maintained in the context.
|
void |
setClean(CmpEntityBeanContext ctx)
Mark this field as clean.
|
protected void |
setDirtyAfterGet(CmpEntityBeanContext ctx) |
void |
setInstanceValue(CmpEntityBeanContext ctx,
Object value)
Sets the internal value of this field without user level checks.
|
void |
updateState(CmpEntityBeanContext ctx,
Object value) |
addDefaultFlag, getDefaultFlags, getFieldIndex, getFieldName, getFieldType, getJDBCType, getManager, getPrimaryKeyClass, getPrimaryKeyField, getPrimaryKeyValue, getReadTimeOut, getTableIndex, getValue, initInstance, isCMPField, isPrimaryKeyMember, isReadOnly, isRelationTableField, loadArgumentResults, loadInstanceResults, loadPrimaryKeyResults, setArgumentParameters, setInstanceParameters, setLockingStrategy, setPrimaryKeyParameters, setPrimaryKeyValue, setValue
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata)
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata, CMPFieldStateFactory stateFactory, boolean checkDirtyAfterGet)
public JDBCCMP2xFieldBridge(JDBCCMP2xFieldBridge cmpField, CMPFieldStateFactory stateFactory, boolean checkDirtyAfterGet)
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata, JDBCType jdbcType)
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, String fieldName, Class fieldType, JDBCType jdbcType, boolean readOnly, long readTimeOut, Class primaryKeyClass, Field primaryKeyField, JDBCCMP2xFieldBridge cmpFieldIAmMappedTo, JDBCCMRFieldBridge myCMRField, String columnName)
public JDBCCMP2xFieldBridge getCmpFieldIAmMappedTo()
public org.jboss.as.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.ChainLink getCmrChainLink()
public boolean isFKFieldMappedToCMPField()
public String getColumnName()
public Object getInstanceValue(CmpEntityBeanContext ctx)
JDBCFieldBridge
ctx
- the context for which this field's value should be fetchedpublic void setInstanceValue(CmpEntityBeanContext ctx, Object value)
JDBCFieldBridge
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic void lockInstanceValue(CmpEntityBeanContext ctx)
JDBCCMPFieldBridge
public boolean isLoaded(CmpEntityBeanContext ctx)
JDBCFieldBridge
public boolean isDirty(CmpEntityBeanContext ctx)
public void setClean(CmpEntityBeanContext ctx)
public void resetPersistenceContext(CmpEntityBeanContext ctx)
JDBCFieldBridge
resetPersistenceContext
in interface JDBCFieldBridge
resetPersistenceContext
in class JDBCAbstractCMPFieldBridge
public boolean isReadTimedOut(CmpEntityBeanContext ctx)
JDBCFieldBridge
public Object getLockedValue(CmpEntityBeanContext ctx)
ctx
- instance's contextpublic void updateState(CmpEntityBeanContext ctx, Object value)
protected void setDirtyAfterGet(CmpEntityBeanContext ctx)
setDirtyAfterGet
in class JDBCAbstractCMPFieldBridge
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.