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

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

public class EnhancedLazyResultLoader
extends java.lang.Object

Class to lazily load results into objects (uses CGLib to improve performance)


Constructor Summary
EnhancedLazyResultLoader(ExtendedSqlMapClient client, java.lang.String statementName, java.lang.Object parameterObject, java.lang.Class targetType)
          Constructor for an enhanced lazy list loader
 
Method Summary
 java.lang.Object loadResult()
          Loads the result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancedLazyResultLoader

public EnhancedLazyResultLoader(ExtendedSqlMapClient client,
                                java.lang.String statementName,
                                java.lang.Object parameterObject,
                                java.lang.Class targetType)
Constructor for an enhanced lazy list loader

Parameters:
client - - the client that is creating the lazy list
statementName - - the statement to be used to build the list
parameterObject - - the parameter object to be used to build the list
targetType - - the type we are putting data into
Method Detail

loadResult

public java.lang.Object loadResult()
                            throws java.sql.SQLException
Loads the result

Returns:
the results - a list or object
Throws:
java.sql.SQLException - if there is a problem