Class ResultLoader
java.lang.Object
com.ibatis.sqlmap.engine.mapping.result.loader.ResultLoader
Class to load results into objects.
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Object
getResult
(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType) Gets the result.static Object
loadResult
(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType) Loads a result lazily.
-
Method Details
-
loadResult
public static Object loadResult(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType) throws SQLException Loads a result lazily.- Parameters:
client
- - the client creating the objectstatementName
- - the name of the statement to be usedparameterObject
- - the parameters for the statementtargetType
- - the target type of the result- Returns:
- the loaded result
- Throws:
SQLException
- the SQL exception
-
getResult
protected static Object getResult(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType) throws SQLException Gets the result.- Parameters:
client
- the clientstatementName
- the statement nameparameterObject
- the parameter objecttargetType
- the target type- Returns:
- the result
- Throws:
SQLException
- the SQL exception
-