|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge
public class JDBCCMP2xFieldBridge
JDBCCMP2xFieldBridge is a concrete implementation of JDBCCMPFieldBridge for CMP version 2.x. Instance data is stored in the entity persistence context. Whenever a field is changed it is compared to the current value and sets a dirty flag if the value has changed. Life-cycle: Tied to the EntityBridge. Multiplicity: One for each entity bean cmp field.
Field Summary |
---|
Fields inherited from class org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge |
---|
checkDirtyAfterGet, defaultFlags, fieldName, jdbcContextIndex, log, manager, primaryKeyMember, readOnly, readTimeOut, stateFactory, tableIndex |
Constructor Summary | |
---|---|
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. |
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata) throws DeploymentException
DeploymentException
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata, CMPFieldStateFactory stateFactory, boolean checkDirtyAfterGet) throws DeploymentException
DeploymentException
public JDBCCMP2xFieldBridge(JDBCCMP2xFieldBridge cmpField, CMPFieldStateFactory stateFactory, boolean checkDirtyAfterGet) throws DeploymentException
DeploymentException
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata, JDBCType jdbcType) throws DeploymentException
DeploymentException
public JDBCCMP2xFieldBridge(JDBCStoreManager manager, String fieldName, Class fieldType, JDBCType jdbcType, boolean readOnly, long readTimeOut, Class primaryKeyClass, Field primaryKeyField, JDBCCMP2xFieldBridge cmpFieldIAmMappedTo, JDBCCMRFieldBridge myCMRField, String columnName) throws DeploymentException
DeploymentException
Method Detail |
---|
public JDBCCMP2xFieldBridge getCmpFieldIAmMappedTo()
public org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.ChainLink getCmrChainLink()
public boolean isFKFieldMappedToCMPField()
public String getColumnName()
public Object getInstanceValue(EntityEnterpriseContext ctx)
JDBCFieldBridge
ctx
- the context for which this field's value should be fetched
public void setInstanceValue(EntityEnterpriseContext ctx, Object value)
JDBCFieldBridge
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic void lockInstanceValue(EntityEnterpriseContext ctx)
JDBCCMPFieldBridge
public boolean isLoaded(EntityEnterpriseContext ctx)
JDBCFieldBridge
public boolean isDirty(EntityEnterpriseContext ctx)
public void setClean(EntityEnterpriseContext ctx)
public void resetPersistenceContext(EntityEnterpriseContext ctx)
JDBCFieldBridge
resetPersistenceContext
in interface JDBCFieldBridge
resetPersistenceContext
in class JDBCAbstractCMPFieldBridge
public boolean isReadTimedOut(EntityEnterpriseContext ctx)
JDBCFieldBridge
public Object getLockedValue(EntityEnterpriseContext ctx)
ctx
- instance's context
public void updateState(EntityEnterpriseContext ctx, Object value)
protected void setDirtyAfterGet(EntityEnterpriseContext ctx)
setDirtyAfterGet
in class JDBCAbstractCMPFieldBridge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |