org.jboss.ejb.plugins.cmp.jdbc.bridge
Interface JDBCFieldBridge

All Superinterfaces:
FieldBridge (src)
All Known Subinterfaces:
JDBCCMPFieldBridge (src)
All Known Implementing Classes:
JDBCAbstractCMPFieldBridge (src) , JDBCAbstractCMRFieldBridge (src) , JDBCCMPFieldBridge2 (src)

public interface JDBCFieldBridge
extends FieldBridge (src)


Method Summary
 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 arg)
           
 void initInstance(EntityEnterpriseContext (src)  ctx)
          Set CMPFieldValue to Java default value (i.e., 0 or null).
 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?
 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.
 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.
 
Methods inherited from interface org.jboss.ejb.plugins.cmp.bridge.FieldBridge (src)
getFieldName, getValue, setValue
 

Method Detail

getJDBCType

public JDBCType (src)  getJDBCType()
Gets the JDBC type of this field.


isPrimaryKeyMember

public boolean isPrimaryKeyMember()
Is this field a member of the primary key.

Returns:
true if this field is a member of the primary key

isReadOnly

public boolean isReadOnly()
Is this field read only.

Returns:
true if this field is read only

isReadTimedOut

public boolean isReadTimedOut(EntityEnterpriseContext (src)  ctx)
Has current data read timed out?


isLoaded

public boolean isLoaded(EntityEnterpriseContext (src)  ctx)
Has the data been loaded?


initInstance

public void initInstance(EntityEnterpriseContext (src)  ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null).


resetPersistenceContext

public void resetPersistenceContext(EntityEnterpriseContext (src)  ctx)
Resets any persistence data maintained in the context.


setInstanceParameters

public 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.


getInstanceValue

public java.lang.Object getInstanceValue(EntityEnterpriseContext (src)  ctx)
Gets the internal value of this field without user level checks.

Parameters:
ctx - the context for which this field's value should be fetched
Returns:
the value of this field

setInstanceValue

public void setInstanceValue(EntityEnterpriseContext (src)  ctx,
                             java.lang.Object value)
Sets the internal value of this field without user level checks.

Parameters:
ctx - the context for which this field's value should be set
value - the new value of this field

loadInstanceResults

public 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.


loadArgumentResults

public 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.


isDirty

public boolean isDirty(EntityEnterpriseContext (src)  ctx)
Has the value of this field changes since the last time clean was called.


setClean

public void setClean(EntityEnterpriseContext (src)  ctx)
Mark this field as clean.


isCMPField

public boolean isCMPField()

getManager

public JDBCEntityPersistenceStore (src)  getManager()

getPrimaryKeyValue

public java.lang.Object getPrimaryKeyValue(java.lang.Object arg)