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 SqlMapClientImpl
The client.protected boolean
The loaded.protected Object
The parameter object.protected Object
The result object.protected String
The statement name.protected Class
The 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:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-