org.apache.torque.om.mapper
Class IntegerMapper

java.lang.Object
  extended by org.apache.torque.om.mapper.IntegerMapper
All Implemented Interfaces:
Serializable, RecordMapper<Integer>

public class IntegerMapper
extends Object
implements RecordMapper<Integer>

Maps a database record to a Integer.

Version:
$Id: IntegerMapper.java 1448414 2013-02-20 21:06:35Z tfischer $
See Also:
Serialized Form

Constructor Summary
IntegerMapper()
          Constructs a IntegerMapper with an offset of 0.
IntegerMapper(int offset)
          Constructs a IntegerMapper with the given offset.
 
Method Summary
 Integer processRow(ResultSet resultSet, int rowOffset, CriteriaInterface<?> criteria)
          Maps the current row in the result set to a Integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerMapper

public IntegerMapper()
Constructs a IntegerMapper with an offset of 0.


IntegerMapper

public IntegerMapper(int offset)
Constructs a IntegerMapper with the given offset.

Parameters:
offset - the additional offset (0 based).
Method Detail

processRow

public Integer processRow(ResultSet resultSet,
                          int rowOffset,
                          CriteriaInterface<?> criteria)
                   throws TorqueException
Maps the current row in the result set to a Integer.

Specified by:
processRow in interface RecordMapper<Integer>
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 Integer retrieved from the result set.
Throws:
TorqueException - when the mapping fails.


Copyright © 2000-2013 The Apache Software Foundation. All Rights Reserved.