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

All Superinterfaces:
FieldBridge
All Known Subinterfaces:
JDBCCMPFieldBridge
All Known Implementing Classes:
JDBCAbstractCMPFieldBridge, JDBCAbstractCMRFieldBridge, JDBCCMP1xFieldBridge, JDBCCMP2xAutoUpdatedFieldBridge, JDBCCMP2xFieldBridge, JDBCCMP2xUpdatedPrincipalFieldBridge, JDBCCMP2xUpdatedTimeFieldBridge, JDBCCMP2xVersionFieldBridge, JDBCCMPFieldBridge2, JDBCCMRFieldBridge, JDBCCMRFieldBridge2, JDBCKeyGenVersionFieldBridge, JDBCLongVersionFieldBridge, JDBCTimestampVersionFieldBridge

public interface JDBCFieldBridge
extends FieldBridge

Author:
Alex Loubyansky and others

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

Method Detail

getJDBCType

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


isPrimaryKeyMember

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

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

isReadOnly

boolean isReadOnly()
Is this field read only.

Returns:
true if this field is read only

isReadTimedOut

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


isLoaded

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


initInstance

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


resetPersistenceContext

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


setInstanceParameters

int setInstanceParameters(PreparedStatement ps,
                          int parameterIndex,
                          EntityEnterpriseContext ctx)
Sets the prepared statement parameters with the data from the instance associated with the context.


getInstanceValue

Object getInstanceValue(EntityEnterpriseContext 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

void setInstanceValue(EntityEnterpriseContext ctx,
                      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

int loadInstanceResults(ResultSet rs,
                        int parameterIndex,
                        EntityEnterpriseContext ctx)
Loads the data from result set into the instance associated with the specified context.


loadArgumentResults

int loadArgumentResults(ResultSet rs,
                        int parameterIndex,
                        Object[] argumentRef)
Loads the value of this cmp field from result set into argument referance.


isDirty

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


setClean

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


isCMPField

boolean isCMPField()

getManager

JDBCEntityPersistenceStore getManager()

getPrimaryKeyValue

Object getPrimaryKeyValue(Object arg)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.