| net.sourceforge.jaxor.api.Mapper
All known Subclasses: net.sourceforge.jaxor.mappers.MapperBase,
Method Summary | |
public int | getSQLType() This method is implemneted by each of the mappers for the
standard SQL and Java types as well as custom mappers
implemented to handle 1:1 entity relations. | public Object | getValueFromResultSet(ResultSet rs, FieldAdapter field) This method actually populates the value for this entity "cell"
given the indicated result set. | public Object | mapToSqlObject(Object obj) This method is used to resolve the foreign key mapping when the
value of the mapper is to be updated for the given entity. | public void | validate(Object obj, MetaField field) |
getSQLType | public int getSQLType()(Code) | | This method is implemneted by each of the mappers for the
standard SQL and Java types as well as custom mappers
implemented to handle 1:1 entity relations.
the valid SQL type defined in java.sql.Types |
getValueFromResultSet | public Object getValueFromResultSet(ResultSet rs, FieldAdapter field) throws SQLException(Code) | | This method actually populates the value for this entity "cell"
given the indicated result set. User-defined concrete
instances of the AbstractMapper class can perform whatever
steps are necessary to return the appropriate mapped type.
Parameters: rs - the ResultSet with the cell data exception: SQLException - if there is a problem accessing thedata in the result set |
mapToSqlObject | public Object mapToSqlObject(Object obj)(Code) | | This method is used to resolve the foreign key mapping when the
value of the mapper is to be updated for the given entity.
the appropriate SQL object type or null |
|
|