Package cz.cvut.kbss.jopa.model
Class BaseEntityQueryResultLoader<T>
java.lang.Object
cz.cvut.kbss.jopa.model.BaseEntityQueryResultLoader<T>
- Type Parameters:
T
- Result type
- All Implemented Interfaces:
QueryResultLoader<T>
Default entity loader just calls
UnitOfWork
to load an instance with the identifier retrieved from the result
row.-
Constructor Summary
ConstructorsConstructorDescriptionBaseEntityQueryResultLoader
(UnitOfWork uow, Class<T> resultType, Descriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionloadResult
(ResultRow resultRow) Loads the result from the given result row.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.cvut.kbss.jopa.model.QueryResultLoader
loadLastPending
-
Constructor Details
-
BaseEntityQueryResultLoader
-
-
Method Details
-
loadResult
Description copied from interface:QueryResultLoader
Loads the result from the given result row.- Specified by:
loadResult
in interfaceQueryResultLoader<T>
- Parameters:
resultRow
- Result row to load from- Returns:
- Loaded value, if present
-