|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
IllegalArgumentException
public 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
IllegalArgumentException
public int getRowIndex()
public JDBCEntityPersistenceStore getManager()
getManager
in interface JDBCFieldBridge
public void initInstance(EntityEnterpriseContext ctx)
JDBCFieldBridge
initInstance
in interface JDBCFieldBridge
public void resetPersistenceContext(EntityEnterpriseContext ctx)
JDBCFieldBridge
resetPersistenceContext
in interface JDBCFieldBridge
public int setInstanceParameters(PreparedStatement ps, int parameterIndex, EntityEnterpriseContext ctx)
JDBCFieldBridge
setInstanceParameters
in interface JDBCFieldBridge
public Object getInstanceValue(EntityEnterpriseContext ctx)
JDBCFieldBridge
getInstanceValue
in interface JDBCFieldBridge
ctx
- the context for which this field's value should be fetched
public void setInstanceValue(EntityEnterpriseContext ctx, Object value)
JDBCFieldBridge
setInstanceValue
in interface JDBCFieldBridge
ctx
- 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 JDBCFieldBridge
public int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
JDBCFieldBridge
loadArgumentResults
in interface JDBCFieldBridge
public boolean isDirty(EntityEnterpriseContext ctx)
JDBCFieldBridge
isDirty
in interface JDBCFieldBridge
public void setClean(EntityEnterpriseContext ctx)
JDBCFieldBridge
setClean
in interface JDBCFieldBridge
public boolean isCMPField()
isCMPField
in interface JDBCFieldBridge
public boolean isPrimaryKeyMember()
JDBCFieldBridge
isPrimaryKeyMember
in interface JDBCFieldBridge
public boolean isReadOnly()
JDBCFieldBridge
isReadOnly
in interface JDBCFieldBridge
public boolean isReadTimedOut(EntityEnterpriseContext ctx)
JDBCFieldBridge
isReadTimedOut
in interface JDBCFieldBridge
public boolean isLoaded(EntityEnterpriseContext ctx)
JDBCFieldBridge
isLoaded
in interface JDBCFieldBridge
public JDBCType getJDBCType()
JDBCFieldBridge
getJDBCType
in interface JDBCFieldBridge
public Object getPrimaryKeyValue(Object primaryKey) throws IllegalArgumentException
getPrimaryKeyValue
in interface JDBCFieldBridge
IllegalArgumentException
public String getFieldName()
FieldBridge
getFieldName
in interface FieldBridge
public Object getValue(EntityEnterpriseContext ctx)
FieldBridge
getValue
in interface FieldBridge
ctx
- the context for which this field's value should be fetched
public void setValue(EntityEnterpriseContext ctx, Object value)
FieldBridge
setValue
in interface FieldBridge
ctx
- 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 |