com.ibatis.sqlmap.engine.mapping.result.loader
Class LazyResultLoader
java.lang.Object
com.ibatis.sqlmap.engine.mapping.result.loader.LazyResultLoader
- All Implemented Interfaces:
- InvocationHandler
public class LazyResultLoader
- extends Object
- implements InvocationHandler
Class to lazily load results into objects
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
protected SqlMapClientImpl client
statementName
protected String statementName
parameterObject
protected Object parameterObject
targetType
protected Class targetType
loaded
protected boolean loaded
resultObject
protected Object resultObject
LazyResultLoader
public LazyResultLoader(SqlMapClientImpl client,
String statementName,
Object parameterObject,
Class targetType)
- Constructor for a lazy list loader
- Parameters:
client
- - the client that is creating the lazy liststatementName
- - the statement to be used to build the listparameterObject
- - the parameter object to be used to build the listtargetType
- - the type we are putting data into
loadResult
public Object loadResult()
throws SQLException
- Loads the result
- Returns:
- the results - a list or object
- Throws:
SQLException
- if there is a problem
invoke
public Object invoke(Object o,
Method method,
Object[] objects)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
Copyright © 2010. All Rights Reserved.