|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP1xFieldBridge
JDBCCMP1xFieldBridge is a concrete implementation of JDBCCMPFieldBridge for CMP version 1.x. Getting and setting of instance fields set the corresponding field in bean instance. Dirty checking is performed by storing the current value in the entity persistence context when ever setClean is called, and comparing current value to the original value. 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 | |
JDBCCMP1xFieldBridge(JDBCStoreManager manager,
JDBCCMPFieldMetaData metadata)
|
Method Summary | |
Object |
getInstanceValue(EntityEnterpriseContext ctx)
Gets the internal value of this field without user level checks. |
Object |
getLockedValue(EntityEnterpriseContext ctx)
|
boolean |
isDirty(EntityEnterpriseContext ctx)
Has the value of this field changes since the last time clean was called. |
boolean |
isLoaded(EntityEnterpriseContext ctx)
Has the data been loaded? |
boolean |
isReadTimedOut(EntityEnterpriseContext ctx)
Has current data read timed out? |
void |
lockInstanceValue(EntityEnterpriseContext ctx)
Optimistically locks field value. |
void |
resetPersistenceContext(EntityEnterpriseContext ctx)
Resets any persistence data maintained in the context. |
void |
setClean(EntityEnterpriseContext ctx)
Mark this field as clean. |
protected void |
setDirtyAfterGet(EntityEnterpriseContext ctx)
|
void |
setInstanceValue(EntityEnterpriseContext ctx,
Object value)
Sets the internal value of this field without user level checks. |
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 JDBCCMP1xFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata) throws org.jboss.deployment.DeploymentException
Method Detail |
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 Object getLockedValue(EntityEnterpriseContext ctx)
ctx
- instance's context
public void lockInstanceValue(EntityEnterpriseContext ctx)
JDBCCMPFieldBridge
public boolean isLoaded(EntityEnterpriseContext ctx)
JDBCFieldBridge
public boolean isDirty(EntityEnterpriseContext ctx)
public void setClean(EntityEnterpriseContext ctx)
public boolean isReadTimedOut(EntityEnterpriseContext ctx)
JDBCFieldBridge
public void resetPersistenceContext(EntityEnterpriseContext ctx)
JDBCFieldBridge
resetPersistenceContext
in interface JDBCFieldBridge
resetPersistenceContext
in class JDBCAbstractCMPFieldBridge
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 |