Package org.apache.torque.om.mapper
Class BigDecimalMapper
- java.lang.Object
-
- org.apache.torque.om.mapper.BigDecimalMapper
-
- All Implemented Interfaces:
Serializable
,RecordMapper<BigDecimal>
public class BigDecimalMapper extends Object implements RecordMapper<BigDecimal>
Maps a database record to a BigDecimal.- Version:
- $Id: BigDecimalMapper.java 1839288 2018-08-27 09:48:33Z tv $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BigDecimalMapper()
Constructs a BigDecimalMapper with an offset of 0.BigDecimalMapper(int offset)
Constructs a BigDecimalMapper with the given offset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
processRow(ResultSet resultSet, int rowOffset, Criteria criteria)
Maps the current row in the result to a BigDecimal.
-
-
-
Method Detail
-
processRow
public BigDecimal processRow(ResultSet resultSet, int rowOffset, Criteria criteria) throws TorqueException
Maps the current row in the result to a BigDecimal.- Specified by:
processRow
in interfaceRecordMapper<BigDecimal>
- Parameters:
resultSet
- the result set to map, not null.rowOffset
- a possible offset in the columns to be considered (if previous columns contain other objects), or 0 for no offset.criteria
- The criteria which created the result set, or null if not known. This parameter is not used by this record mapper.- Returns:
- the BigDecimal retrieved from the result set.
- Throws:
TorqueException
- when the mapping fails.
-
-