org.jboss.ejb.plugins.cmp.bridge
Interface FieldBridge

All Known Subinterfaces:
CMPFieldBridge (src) , CMRFieldBridge (src) , JDBCCMPFieldBridge (src) , JDBCFieldBridge (src)
All Known Implementing Classes:
JDBCAbstractCMPFieldBridge (src) , JDBCAbstractCMRFieldBridge (src) , JDBCCMPFieldBridge2 (src)

public interface FieldBridge

FieldBridge represents one field for one entity. Life-cycle: Tied to the EntityBridge. Multiplicity: One for each entity bean field.


Method Summary
 java.lang.String getFieldName()
          Gets the name of this field.
 java.lang.Object getValue(EntityEnterpriseContext (src)  ctx)
          Gets the value of this field for the specified instance context.
 void setValue(EntityEnterpriseContext (src)  ctx, java.lang.Object value)
          Sets the value of this field for the specified instance context.
 

Method Detail

getFieldName

public java.lang.String getFieldName()
Gets the name of this field.

Returns:
the name of this field

getValue

public java.lang.Object getValue(EntityEnterpriseContext (src)  ctx)
Gets the value of this field for the specified instance context.

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

setValue

public void setValue(EntityEnterpriseContext (src)  ctx,
                     java.lang.Object value)
Sets the value of this field for the specified instance context.

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