|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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 (src) cmpField,
JDBCCMPFieldBridge2 (src) relatedPKField)
|
|
JDBCCMPFieldBridge2(JDBCStoreManager2 (src) manager,
JDBCEntityBridge2 (src) entity,
JDBCCMPFieldMetaData (src) metadata,
int rowIndex)
|
Method Summary | |
java.lang.String |
getColumnName()
|
java.lang.String |
getFieldName()
Gets the name of this field. |
java.lang.Class |
getFieldType()
|
java.lang.Object |
getInstanceValue(EntityEnterpriseContext (src) ctx)
Gets the internal value of this field without user level checks. |
JDBCType (src) |
getJDBCType()
Gets the JDBC type of this field. |
JDBCEntityPersistenceStore (src) |
getManager()
|
java.lang.Object |
getPrimaryKeyValue(java.lang.Object primaryKey)
|
int |
getRowIndex()
|
java.lang.Object |
getValue(EntityEnterpriseContext (src) ctx)
Gets the value of this field for the specified instance context. |
int |
getVersionIndex()
|
void |
initInstance(EntityEnterpriseContext (src) ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null). |
void |
initVersion()
|
boolean |
isCMPField()
|
boolean |
isDirty(EntityEnterpriseContext (src) ctx)
Has the value of this field changes since the last time clean was called. |
boolean |
isLoaded(EntityEnterpriseContext (src) 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 (src) ctx)
Has current data read timed out? |
java.lang.Object |
loadArgumentResults(java.sql.ResultSet rs,
int parameterIndex)
|
int |
loadArgumentResults(java.sql.ResultSet rs,
int parameterIndex,
java.lang.Object[] argumentRef)
Loads the value of this cmp field from result set into argument referance. |
int |
loadInstanceResults(java.sql.ResultSet rs,
int parameterIndex,
EntityEnterpriseContext (src) ctx)
Loads the data from result set into the instance associated with the specified context. |
void |
resetPersistenceContext(EntityEnterpriseContext (src) ctx)
Resets any persistence data maintained in the context. |
int |
setArgumentParameters(java.sql.PreparedStatement ps,
int parameterIndex,
java.lang.Object arg)
|
void |
setClean(EntityEnterpriseContext (src) ctx)
Mark this field as clean. |
int |
setInstanceParameters(java.sql.PreparedStatement ps,
int parameterIndex,
EntityEnterpriseContext (src) ctx)
Sets the prepared statement parameters with the data from the instance associated with the context. |
void |
setInstanceValue(EntityEnterpriseContext (src) ctx,
java.lang.Object value)
Sets the internal value of this field without user level checks. |
java.lang.Object |
setPrimaryKeyValue(java.lang.Object primaryKey,
java.lang.Object value)
|
void |
setValue(EntityEnterpriseContext (src) ctx,
java.lang.Object value)
Sets the value of this field for the specified instance context. |
void |
setValueInternal(EntityEnterpriseContext (src) ctx,
java.lang.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 (src) manager, JDBCEntityBridge2 (src) entity, JDBCCMPFieldMetaData (src) metadata, int rowIndex) throws DeploymentException (src)
public JDBCCMPFieldBridge2(JDBCCMPFieldBridge2 (src) cmpField, JDBCCMPFieldBridge2 (src) relatedPKField)
Method Detail |
public void initVersion()
public int getVersionIndex()
public java.lang.String getColumnName()
public java.lang.Object setPrimaryKeyValue(java.lang.Object primaryKey, java.lang.Object value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setValueInternal(EntityEnterpriseContext (src) ctx, java.lang.Object value, boolean makeDirty)
public int setArgumentParameters(java.sql.PreparedStatement ps, int parameterIndex, java.lang.Object arg)
public java.lang.Object loadArgumentResults(java.sql.ResultSet rs, int parameterIndex) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getRowIndex()
public JDBCEntityPersistenceStore (src) getManager()
getManager
in interface JDBCFieldBridge (src)
public void initInstance(EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
initInstance
in interface JDBCFieldBridge (src)
public void resetPersistenceContext(EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
resetPersistenceContext
in interface JDBCFieldBridge (src)
public int setInstanceParameters(java.sql.PreparedStatement ps, int parameterIndex, EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
setInstanceParameters
in interface JDBCFieldBridge (src)
public java.lang.Object getInstanceValue(EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
getInstanceValue
in interface JDBCFieldBridge (src)
ctx
- the context for which this field's value should be fetched
public void setInstanceValue(EntityEnterpriseContext (src) ctx, java.lang.Object value)
JDBCFieldBridge (src)
setInstanceValue
in interface JDBCFieldBridge (src)
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic int loadInstanceResults(java.sql.ResultSet rs, int parameterIndex, EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
loadInstanceResults
in interface JDBCFieldBridge (src)
public int loadArgumentResults(java.sql.ResultSet rs, int parameterIndex, java.lang.Object[] argumentRef)
JDBCFieldBridge (src)
loadArgumentResults
in interface JDBCFieldBridge (src)
public boolean isDirty(EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
isDirty
in interface JDBCFieldBridge (src)
public void setClean(EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
setClean
in interface JDBCFieldBridge (src)
public boolean isCMPField()
isCMPField
in interface JDBCFieldBridge (src)
public boolean isPrimaryKeyMember()
JDBCFieldBridge (src)
isPrimaryKeyMember
in interface JDBCFieldBridge (src)
public boolean isReadOnly()
JDBCFieldBridge (src)
isReadOnly
in interface JDBCFieldBridge (src)
public boolean isReadTimedOut(EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
isReadTimedOut
in interface JDBCFieldBridge (src)
public boolean isLoaded(EntityEnterpriseContext (src) ctx)
JDBCFieldBridge (src)
isLoaded
in interface JDBCFieldBridge (src)
public JDBCType (src) getJDBCType()
JDBCFieldBridge (src)
getJDBCType
in interface JDBCFieldBridge (src)
public java.lang.Object getPrimaryKeyValue(java.lang.Object primaryKey) throws java.lang.IllegalArgumentException
getPrimaryKeyValue
in interface JDBCFieldBridge (src)
java.lang.IllegalArgumentException
public java.lang.String getFieldName()
FieldBridge (src)
getFieldName
in interface FieldBridge (src)
public java.lang.Object getValue(EntityEnterpriseContext (src) ctx)
FieldBridge (src)
getValue
in interface FieldBridge (src)
ctx
- the context for which this field's value should be fetched
public void setValue(EntityEnterpriseContext (src) ctx, java.lang.Object value)
FieldBridge (src)
setValue
in interface FieldBridge (src)
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic java.lang.Class getFieldType()
getFieldType
in interface CMPFieldBridge (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |