| java.lang.Object org.apache.beehive.controls.system.jdbc.RowMapper org.apache.beehive.controls.system.jdbc.RowToObjectMapper
RowToObjectMapper | public class RowToObjectMapper extends RowMapper (Code) | | Map a ResultSet row to an Object. This mapper uses Java reflection to perform the mapping. The Class being mapped
to must have setter methods which match the ResultSet column names. For example, if a column in the ResultSet
named USERID, the object must have a setter method named setUserid(). If a setter method cannot be class fields
are also checked, the same naming conventions applies, USERID -> userid.
|
RowToObjectMapper | RowToObjectMapper(ResultSet resultSet, Class returnTypeClass, Calendar cal)(Code) | | Create a new RowToObjectMapper.
Parameters: resultSet - ResultSet to map Parameters: returnTypeClass - Class to map to. Parameters: cal - Calendar instance for date/time mappings. |
getFieldMappings | protected void getFieldMappings() throws SQLException(Code) | | Build the structures necessary to do the mapping
throws: SQLException - on error. |
mapRowToReturnType | public Object mapRowToReturnType()(Code) | | Do the mapping.
An object instance. |
|
|