Class AbstractROF<T>
java.lang.Object
org.datanucleus.store.rdbms.query.AbstractROF<T>
- All Implemented Interfaces:
ResultObjectFactory<T>
- Direct Known Subclasses:
PersistentClassROF
,ResultClassROF
,ResultMetaDataROF
Abstract result object factory, taking the ExecutionContext being operated in, and the ResultSet that will be processed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.datanucleus.ExecutionContext
protected org.datanucleus.FetchPlan
protected boolean
Whether to ignore the cache when locating objects from an identity.protected ResultSet
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractROF
(org.datanucleus.ExecutionContext ec, ResultSet rs, org.datanucleus.FetchPlan fp) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionAccessor for the JDBC ResultSet being processed.void
setIgnoreCache
(boolean ignore) Specify whether when processing the results we should ignore the L1 cache.void
setUpdateAllFields
(boolean update) Specify whether when processing the results we should just update fields that are not currently loaded.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.datanucleus.store.rdbms.query.ResultObjectFactory
getObject
-
Field Details
-
ec
protected org.datanucleus.ExecutionContext ec -
rs
-
ignoreCache
protected boolean ignoreCacheWhether to ignore the cache when locating objects from an identity. -
updateAllFields
protected boolean updateAllFields -
fp
protected org.datanucleus.FetchPlan fp
-
-
Constructor Details
-
AbstractROF
Constructor.- Parameters:
ec
- ExecutionContextrs
- The JDBC ResultSetfp
- FetchPlan
-
-
Method Details
-
getResultSet
Description copied from interface:ResultObjectFactory
Accessor for the JDBC ResultSet being processed.- Specified by:
getResultSet
in interfaceResultObjectFactory<T>
- Returns:
- The ResultSet
-
setIgnoreCache
public void setIgnoreCache(boolean ignore) Description copied from interface:ResultObjectFactory
Specify whether when processing the results we should ignore the L1 cache.- Specified by:
setIgnoreCache
in interfaceResultObjectFactory<T>
- Parameters:
ignore
- Whether to ignore the L1 cache
-
setUpdateAllFields
public void setUpdateAllFields(boolean update) Description copied from interface:ResultObjectFactory
Specify whether when processing the results we should just update fields that are not currently loaded.- Specified by:
setUpdateAllFields
in interfaceResultObjectFactory<T>
- Parameters:
update
- Whether to update all fields rather than just the non-loaded fields
-