Class AbstractROF<T>
- java.lang.Object
-
- org.datanucleus.store.rdbms.query.AbstractROF<T>
-
- All Implemented Interfaces:
ResultObjectFactory<T>
- Direct Known Subclasses:
PersistentClassROF,ResultClassROF,ResultMetaDataROF
public abstract class AbstractROF<T> extends java.lang.Object implements ResultObjectFactory<T>
Abstract result object factory, taking the ExecutionContext being operated in, and the ResultSet that will be processed.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.datanucleus.ExecutionContextecprotected org.datanucleus.FetchPlanfpprotected booleanignoreCacheWhether to ignore the cache when locating objects from an identity.protected java.sql.ResultSetrsprotected booleanupdateAllFields
-
Constructor Summary
Constructors Constructor Description AbstractROF(org.datanucleus.ExecutionContext ec, java.sql.ResultSet rs, org.datanucleus.FetchPlan fp)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.ResultSetgetResultSet()Accessor for the JDBC ResultSet being processed.voidsetIgnoreCache(boolean ignore)Specify whether when processing the results we should ignore the L1 cache.voidsetUpdateAllFields(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
-
-
-
-
Method Detail
-
getResultSet
public java.sql.ResultSet getResultSet()
Description copied from interface:ResultObjectFactoryAccessor for the JDBC ResultSet being processed.- Specified by:
getResultSetin interfaceResultObjectFactory<T>- Returns:
- The ResultSet
-
setIgnoreCache
public void setIgnoreCache(boolean ignore)
Description copied from interface:ResultObjectFactorySpecify whether when processing the results we should ignore the L1 cache.- Specified by:
setIgnoreCachein interfaceResultObjectFactory<T>- Parameters:
ignore- Whether to ignore the L1 cache
-
setUpdateAllFields
public void setUpdateAllFields(boolean update)
Description copied from interface:ResultObjectFactorySpecify whether when processing the results we should just update fields that are not currently loaded.- Specified by:
setUpdateAllFieldsin interfaceResultObjectFactory<T>- Parameters:
update- Whether to update all fields rather than just the non-loaded fields
-
-