|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.om.mapper.DateMapper
public class DateMapper
Maps a database record to a java.util.Date.
Constructor Summary | |
---|---|
DateMapper()
Constructs a DateMapper with an offset of 0. |
|
DateMapper(int offset)
Constructs a DateMapper with the given offset. |
Method Summary | |
---|---|
Date |
processRow(ResultSet resultSet,
int rowOffset,
CriteriaInterface<?> criteria)
Maps the current row in the result set to a java.util.Date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateMapper()
public DateMapper(int offset)
offset
- the additional offset (0 based).Method Detail |
---|
public Date processRow(ResultSet resultSet, int rowOffset, CriteriaInterface<?> criteria) throws TorqueException
processRow
in interface RecordMapper<Date>
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.
TorqueException
- when the mapping fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |