org.databene.platform.db
Class ResultSetConverter<E>
java.lang.Object
org.databene.commons.converter.AbstractConverter<S,T>
org.databene.commons.converter.SimpleConverter<java.sql.ResultSet,E>
org.databene.platform.db.ResultSetConverter<E>
- All Implemented Interfaces:
- Converter<java.sql.ResultSet,E>, ThreadAware
public class ResultSetConverter<E>
- extends SimpleConverter<java.sql.ResultSet,E>
Converts a ResultSet's current cursor position to an array of objects or, if it is of size 1, to a single object.
Created: 15.08.2007 18:19:25
- Author:
- Volker Bergmann
|
Method Summary |
E |
convert(java.sql.ResultSet resultSet)
Concerts an object of type S to an object of type T |
static java.lang.Object |
convert(java.sql.ResultSet resultSet,
boolean simplifying)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResultSetConverter
public ResultSetConverter(java.lang.Class<E> targetType)
ResultSetConverter
public ResultSetConverter(java.lang.Class<E> targetType,
boolean simplifying)
convert
public E convert(java.sql.ResultSet resultSet)
throws ConversionException
- Description copied from interface:
Converter
- Concerts an object of type S to an object of type T
- Parameters:
resultSet - the object to convert
- Returns:
- the converted object
- Throws:
ConversionException - if the conversion fails
convert
public static java.lang.Object convert(java.sql.ResultSet resultSet,
boolean simplifying)
throws ConversionException
- Throws:
ConversionException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.