T
- Type of the persistent object that this createspublic final class PersistentClassROF<T> extends AbstractROF<T>
Modifier and Type | Field and Description |
---|---|
protected Class<T> |
persistentClass
Persistent class that this factory will generate (may be the root class).
|
protected StatementClassMapping |
resultMapping
Mapping of the results to members of this class (and sub-objects).
|
protected ResultSetGetter |
resultSetGetter |
protected org.datanucleus.metadata.AbstractClassMetaData |
rootCmd
Metadata for the (root) persistable candidate class.
|
ec, ignoreCache, rs
Constructor and Description |
---|
PersistentClassROF(org.datanucleus.ExecutionContext ec,
ResultSet rs,
boolean ignoreCache,
StatementClassMapping resultMapping,
org.datanucleus.metadata.AbstractClassMetaData acmd,
Class<T> persistentClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
getObject()
Method to convert the current ResultSet row into a persistable Object.
|
ResultSet |
getResultSet()
Accessor for the JDBC ResultSet being processed.
|
protected final org.datanucleus.metadata.AbstractClassMetaData rootCmd
protected Class<T> persistentClass
protected StatementClassMapping resultMapping
protected ResultSetGetter resultSetGetter
public PersistentClassROF(org.datanucleus.ExecutionContext ec, ResultSet rs, boolean ignoreCache, StatementClassMapping resultMapping, org.datanucleus.metadata.AbstractClassMetaData acmd, Class<T> persistentClass)
ec
- ExecutionContextrs
- ResultSet being processedignoreCache
- Whether to ignore the cacheresultMapping
- Mapping information for the result set and how it maps to the classacmd
- MetaData for the (root) candidate classpersistentClass
- Class that this factory will create instances of (or subclasses)public ResultSet getResultSet()
ResultObjectFactory
getResultSet
in interface ResultObjectFactory<T>
getResultSet
in class AbstractROF<T>
public T getObject()
Copyright © 2019. All rights reserved.