|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListBuilder
Defines an interface that will be used to implement classes to construct lists from java.sql.ResultSet instances.
This is done to provide a mechanism to perform database specific type conversions.
Method Summary | |
---|---|
java.util.List |
buildList(java.sql.ResultSet rs)
Construct a list from the given ResultSet and perform database specific type conversions where required. |
java.util.List |
buildList(java.sql.ResultSet rs,
java.lang.Class returnType)
Construct a list from the given ResultSet and perform database specific type conversions where required. |
Method Detail |
---|
java.util.List buildList(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- ResultSet to use.
java.sql.SQLException
- if the ResultSet cannot be accessed.java.util.List buildList(java.sql.ResultSet rs, java.lang.Class returnType) throws java.sql.SQLException, DaoException
In addition result entries are wrapped as instances of the specified return type.
rs
- ResultSet to use.returnType
- Class denoting the return type.
java.sql.SQLException
- if the ResultSet cannot be accessed.
DaoException
- if the results cannot be wrapped as the specified
return type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |