Klasse IntegerMapper

java.lang.Object
org.apache.torque.om.mapper.IntegerMapper
Alle implementierten Schnittstellen:
Serializable, RecordMapper<Integer>

public class IntegerMapper extends Object implements RecordMapper<Integer>
Maps a database record to a Integer.
Version:
$Id: IntegerMapper.java 1917245 2024-04-21 14:06:23Z tv $
Siehe auch:
  • Konstruktordetails

    • IntegerMapper

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

      public IntegerMapper(int offset)
      Constructs a IntegerMapper with the given offset.
      Parameter:
      offset - the additional offset (0 based).
  • Methodendetails

    • processRow

      public Integer processRow(ResultSet resultSet, int rowOffset, Criteria criteria) throws TorqueException
      Maps the current row in the result set to a Integer.
      Angegeben von:
      processRow in Schnittstelle RecordMapper<Integer>
      Parameter:
      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.
      Gibt zurück:
      the Integer retrieved from the result set.
      Löst aus:
      TorqueException - when the mapping fails.