|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a grouping of ResultMapping objects used to map results back to objects
Field Summary | |
static java.lang.Object |
NO_VALUE
|
Method Summary | |
Discriminator |
getDiscriminator()
|
java.lang.String |
getId()
A way to identify the ResultMap |
java.lang.Class |
getResultClass()
Getter for the class that data wil be mapped into |
ResultMapping[] |
getResultMappings()
Getter for the ResultMapping objects |
java.lang.Object[] |
getResults(RequestScope request,
java.sql.ResultSet rs)
Perform the mapping, and return the results |
java.lang.Object |
getUniqueKey(java.lang.Object[] values)
Gets a unique key based on the values provided. |
ResultMap |
resolveSubMap(RequestScope request,
java.sql.ResultSet rs)
|
java.lang.Object |
setResultObjectValues(RequestScope request,
java.lang.Object resultObject,
java.lang.Object[] values)
Callback method for RowHandler |
Field Detail |
public static final java.lang.Object NO_VALUE
Method Detail |
public java.lang.String getId()
public java.lang.Object[] getResults(RequestScope request, java.sql.ResultSet rs) throws java.sql.SQLException
request
- - the request scopers
- - the result set to map
java.sql.SQLException
- - if an exception is thrown processing the resultspublic java.lang.Object setResultObjectValues(RequestScope request, java.lang.Object resultObject, java.lang.Object[] values)
request
- - the request scoperesultObject
- - the object being populatedvalues
- - the values from the database
public ResultMapping[] getResultMappings()
public java.lang.Class getResultClass()
public java.lang.Object getUniqueKey(java.lang.Object[] values)
values
- Result values representing a single row of results.
public ResultMap resolveSubMap(RequestScope request, java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public Discriminator getDiscriminator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |