com.ibatis.sqlmap.engine.mapping.result.loader
Class ResultLoader

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.mapping.result.loader.ResultLoader

public class ResultLoader
extends java.lang.Object


Constructor Summary
private ResultLoader()
           
 
Method Summary
protected static java.lang.Object getResult(ExtendedSqlMapClient client, java.lang.String statementName, java.lang.Object parameterObject, java.lang.Class targetType)
           
private static java.lang.Object[] listToArray(java.util.List list, java.lang.Class type)
           
static java.lang.Object loadResult(ExtendedSqlMapClient client, java.lang.String statementName, java.lang.Object parameterObject, java.lang.Class targetType)
          Loads a result lazily
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultLoader

private ResultLoader()
Method Detail

loadResult

public static java.lang.Object loadResult(ExtendedSqlMapClient client,
                                          java.lang.String statementName,
                                          java.lang.Object parameterObject,
                                          java.lang.Class targetType)
                                   throws java.sql.SQLException
Loads a result lazily

Parameters:
client - - the client creating the object
statementName - - the name of the statement to be used
parameterObject - - the parameters for the statement
targetType - - the target type of the result
Returns:
the loaded result
Throws:
java.sql.SQLException

getResult

protected static java.lang.Object getResult(ExtendedSqlMapClient client,
                                            java.lang.String statementName,
                                            java.lang.Object parameterObject,
                                            java.lang.Class targetType)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

listToArray

private static java.lang.Object[] listToArray(java.util.List list,
                                              java.lang.Class type)