|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.ejb.plugins.cmp.jdbc2.bridge.JDBCCMPFieldBridge2
| Constructor Summary | |
JDBCCMPFieldBridge2(JDBCCMPFieldBridge2 cmpField,
JDBCCMPFieldBridge2 relatedPKField)
|
|
JDBCCMPFieldBridge2(JDBCStoreManager2 manager,
JDBCEntityBridge2 entity,
JDBCCMPFieldMetaData metadata,
int rowIndex)
|
|
| Method Summary | |
String |
getColumnName()
|
String |
getFieldName()
Gets the name of this field. |
Class |
getFieldType()
|
Object |
getInstanceValue(EntityEnterpriseContext 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(EntityEnterpriseContext ctx)
Gets the value of this field for the specified instance context. |
int |
getVersionIndex()
|
void |
initInstance(EntityEnterpriseContext ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null). |
void |
initVersion()
|
boolean |
isCMPField()
|
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 |
isPrimaryKeyMember()
Is this field a member of the primary key. |
boolean |
isReadOnly()
Is this field read only. |
boolean |
isReadTimedOut(EntityEnterpriseContext 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 referance. |
int |
loadInstanceResults(ResultSet rs,
int parameterIndex,
EntityEnterpriseContext ctx)
Loads the data from result set into the instance associated with the specified context. |
void |
resetPersistenceContext(EntityEnterpriseContext ctx)
Resets any persistence data maintained in the context. |
int |
setArgumentParameters(PreparedStatement ps,
int parameterIndex,
Object arg)
|
void |
setClean(EntityEnterpriseContext ctx)
Mark this field as clean. |
int |
setInstanceParameters(PreparedStatement ps,
int parameterIndex,
EntityEnterpriseContext ctx)
Sets the prepared statement parameters with the data from the instance associated with the context. |
void |
setInstanceValue(EntityEnterpriseContext ctx,
Object value)
Sets the internal value of this field without user level checks. |
Object |
setPrimaryKeyValue(Object primaryKey,
Object value)
|
void |
setValue(EntityEnterpriseContext ctx,
Object value)
Sets the value of this field for the specified instance context. |
void |
setValueInternal(EntityEnterpriseContext ctx,
Object value,
boolean makeDirty)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCCMPFieldBridge2(JDBCStoreManager2 manager, JDBCEntityBridge2 entity, JDBCCMPFieldMetaData metadata, int rowIndex) throws org.jboss.deployment.DeploymentException
public JDBCCMPFieldBridge2(JDBCCMPFieldBridge2 cmpField, JDBCCMPFieldBridge2 relatedPKField)
| Method Detail |
public void initVersion()
public int getVersionIndex()
public String getColumnName()
public Object setPrimaryKeyValue(Object primaryKey, Object value) throws IllegalArgumentException
IllegalArgumentExceptionpublic void setValueInternal(EntityEnterpriseContext 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(EntityEnterpriseContext ctx)
JDBCFieldBridge
initInstance in interface JDBCFieldBridgepublic void resetPersistenceContext(EntityEnterpriseContext ctx)
JDBCFieldBridge
resetPersistenceContext in interface JDBCFieldBridgepublic int setInstanceParameters(PreparedStatement ps, int parameterIndex, EntityEnterpriseContext ctx)
JDBCFieldBridge
setInstanceParameters in interface JDBCFieldBridgepublic Object getInstanceValue(EntityEnterpriseContext ctx)
JDBCFieldBridge
getInstanceValue in interface JDBCFieldBridgectx - the context for which this field's value should be fetched
public void setInstanceValue(EntityEnterpriseContext ctx, Object value)
JDBCFieldBridge
setInstanceValue 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, EntityEnterpriseContext ctx)
JDBCFieldBridge
loadInstanceResults in interface JDBCFieldBridgepublic int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
JDBCFieldBridge
loadArgumentResults in interface JDBCFieldBridgepublic boolean isDirty(EntityEnterpriseContext ctx)
JDBCFieldBridge
isDirty in interface JDBCFieldBridgepublic void setClean(EntityEnterpriseContext ctx)
JDBCFieldBridge
setClean in interface JDBCFieldBridgepublic boolean isCMPField()
isCMPField in interface JDBCFieldBridgepublic boolean isPrimaryKeyMember()
JDBCFieldBridge
isPrimaryKeyMember in interface JDBCFieldBridgepublic boolean isReadOnly()
JDBCFieldBridge
isReadOnly in interface JDBCFieldBridgepublic boolean isReadTimedOut(EntityEnterpriseContext ctx)
JDBCFieldBridge
isReadTimedOut in interface JDBCFieldBridgepublic boolean isLoaded(EntityEnterpriseContext ctx)
JDBCFieldBridge
isLoaded in interface JDBCFieldBridgepublic JDBCType getJDBCType()
JDBCFieldBridge
getJDBCType in interface JDBCFieldBridgepublic Object getPrimaryKeyValue(Object primaryKey) throws IllegalArgumentException
getPrimaryKeyValue in interface JDBCFieldBridgeIllegalArgumentExceptionpublic String getFieldName()
FieldBridge
getFieldName in interface FieldBridgepublic Object getValue(EntityEnterpriseContext ctx)
FieldBridge
getValue in interface FieldBridgectx - the context for which this field's value should be fetched
public void setValue(EntityEnterpriseContext ctx, Object value)
FieldBridge
setValue 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 CMPFieldBridge
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||