| java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge
All known Subclasses: org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP1xFieldBridge, org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge,
JDBCAbstractCMPFieldBridge | abstract public class JDBCAbstractCMPFieldBridge implements JDBCCMPFieldBridge(Code) | | JDBCAbstractCMPFieldBridge is the default implementation of
JDBCCMPFieldBridge. Most of the heavy lifting of this command is handled
by JDBCUtil. It is left to subclasses to implement the logic for getting
and setting instance values and dirty checking, as this is dependent on
the CMP version used.
Life-cycle:
Tied to the EntityBridge.
Multiplicity:
One for each entity bean cmp field.
author: Dain Sundstrom author: Alex Loubyansky author: Heiko W.Rupp version: $Revision: 57209 $ version: Revisions: version: 20021023 Steve Coy: version: |
Constructor Summary | |
public | JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata) | public | JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata, JDBCType jdbcType) | public | JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, String fieldName, Class fieldType, JDBCType jdbcType, boolean readOnly, long readTimeOut, Class primaryKeyClass, Field primaryKeyField, int jdbcContextIndex, int tableIndex, boolean checkDirtyAfterGet, CMPFieldStateFactory stateFactory) |
Method Summary | |
public void | addDefaultFlag(byte flag) | public byte | getDefaultFlags() | final public int | getFieldIndex() | public String | getFieldName() | public Class | getFieldType() | public JDBCType | getJDBCType() | public JDBCEntityPersistenceStore | getManager() | public Class | getPrimaryKeyClass() | public Field | getPrimaryKeyField() | public Object | getPrimaryKeyValue(Object primaryKey) | public long | getReadTimeOut() | public int | getTableIndex() | public Object | getValue(EntityEnterpriseContext ctx) | public void | initInstance(EntityEnterpriseContext ctx) Set CMPFieldValue to Java default value (i.e., 0 or null). | public boolean | isCMPField() | public boolean | isPrimaryKeyMember() | public boolean | isReadOnly() | public boolean | isRelationTableField() | public int | loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef) | public int | loadInstanceResults(ResultSet rs, int parameterIndex, EntityEnterpriseContext ctx) | public int | loadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object[] pkRef) | abstract public void | resetPersistenceContext(EntityEnterpriseContext ctx) | public int | setArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg) | abstract protected void | setDirtyAfterGet(EntityEnterpriseContext ctx) | public int | setInstanceParameters(PreparedStatement ps, int parameterIndex, EntityEnterpriseContext ctx) | public void | setLockingStrategy(LockingStrategy lockingStrategy) | public int | setPrimaryKeyParameters(PreparedStatement ps, int parameterIndex, Object primaryKey) | public Object | setPrimaryKeyValue(Object primaryKey, Object value) | public void | setValue(EntityEnterpriseContext ctx, Object value) |
checkDirtyAfterGet | protected boolean checkDirtyAfterGet(Code) | | |
defaultFlags | protected byte defaultFlags(Code) | | |
jdbcContextIndex | final protected int jdbcContextIndex(Code) | | |
log | final protected Logger log(Code) | | |
primaryKeyMember | final protected boolean primaryKeyMember(Code) | | |
readOnly | final protected boolean readOnly(Code) | | |
readTimeOut | final protected long readTimeOut(Code) | | |
tableIndex | final protected int tableIndex(Code) | | |
JDBCAbstractCMPFieldBridge | public JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, String fieldName, Class fieldType, JDBCType jdbcType, boolean readOnly, long readTimeOut, Class primaryKeyClass, Field primaryKeyField, int jdbcContextIndex, int tableIndex, boolean checkDirtyAfterGet, CMPFieldStateFactory stateFactory)(Code) | | |
addDefaultFlag | public void addDefaultFlag(byte flag)(Code) | | get rid of it later
|
getDefaultFlags | public byte getDefaultFlags()(Code) | | |
getFieldIndex | final public int getFieldIndex()(Code) | | |
getPrimaryKeyClass | public Class getPrimaryKeyClass()(Code) | | |
getPrimaryKeyField | public Field getPrimaryKeyField()(Code) | | |
getReadTimeOut | public long getReadTimeOut()(Code) | | |
getTableIndex | public int getTableIndex()(Code) | | |
isCMPField | public boolean isCMPField()(Code) | | |
isPrimaryKeyMember | public boolean isPrimaryKeyMember()(Code) | | |
isReadOnly | public boolean isReadOnly()(Code) | | |
isRelationTableField | public boolean isRelationTableField()(Code) | | |
|
|