Class LazyResultLoader
java.lang.Object
com.ibatis.sqlmap.engine.mapping.result.loader.LazyResultLoader
- All Implemented Interfaces:
InvocationHandler
Class to lazily load results into objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SqlMapClientImplThe client.protected booleanThe loaded.protected ObjectThe parameter object.protected ObjectThe result object.protected StringThe statement name.protected ClassThe target type. -
Constructor Summary
ConstructorsConstructorDescriptionLazyResultLoader(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType) Constructor for a lazy list loader. -
Method Summary
-
Field Details
-
client
The client. -
statementName
The statement name. -
parameterObject
The parameter object. -
targetType
The target type. -
loaded
protected boolean loadedThe loaded. -
resultObject
The result object.
-
-
Constructor Details
-
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
-
-
Method Details
-
loadResult
Loads the result.- Returns:
- the results - a list or object
- Throws:
SQLException- if there is a problem
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-