net.anotheria.db.dao
Class RowMapper<T>
java.lang.Object
net.anotheria.db.dao.RowMapper<T>
public abstract class RowMapper<T>
- extends Object
Used by the DAO to map a single row to an object of class T.
- Author:
- lrosenberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowMapper
public RowMapper()
map
public abstract T map(ResultSet row)
throws RowMapperException
- Creates a new object from the current row in the result set.
- Parameters:
row
-
- Returns:
-
- Throws:
RowMapperException
prepareString
protected String prepareString(String source)
- Trims the string for storage.
- Parameters:
source
-
- Returns:
convertToList
protected List<Integer> convertToList(int[] objs)
convertToList
protected List<Long> convertToList(long[] objs)
convertToList
protected List<String> convertToList(String[] objs)
Copyright © 2010-2013 anotheria.net. All Rights Reserved.