|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.query.PersistentIDROF
public final class PersistentIDROF
ResultObjectFactory that takes a JDBC ResultSet and create a PersistenceCapable object instance for each row in the ResultSet. We use information in the result set to determine the object type; this can be a discriminator column, or can be a special "NucleusType" column defined just for result processing.
| Field Summary | |
|---|---|
protected org.datanucleus.metadata.AbstractClassMetaData |
acmd
Metadata for the candidate class. |
protected boolean |
discriminator
Flag whether we should use a discriminator column to distinguish object types (otherwise use NUCLEUS_TYPE). |
protected org.datanucleus.FetchPlan |
fetchPlan
Fetch Plan to use when loading fields (if any). |
protected static org.datanucleus.util.Localiser |
LOCALISER
Localiser for messages. |
protected org.datanucleus.store.mapped.StatementClassMapping |
stmtMapping
Mapping for the statement to members of this class (and sub-objects). |
| Constructor Summary | |
|---|---|
PersistentIDROF(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreClass table,
org.datanucleus.metadata.AbstractClassMetaData acmd,
org.datanucleus.store.mapped.StatementClassMapping mappingDefinition,
boolean ignoreCache,
boolean discriminator,
org.datanucleus.FetchPlan fetchPlan,
java.lang.Class persistentClass)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getObject(org.datanucleus.ObjectManager om,
java.lang.Object rs)
Method to convert the current ResultSet row into an Object. |
void |
setPersistentClass(java.lang.Class cls)
Method to update the persistent class that the result object factory requires. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER
protected final org.datanucleus.metadata.AbstractClassMetaData acmd
protected org.datanucleus.store.mapped.StatementClassMapping stmtMapping
protected boolean discriminator
protected final org.datanucleus.FetchPlan fetchPlan
| Constructor Detail |
|---|
public PersistentIDROF(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreClass table,
org.datanucleus.metadata.AbstractClassMetaData acmd,
org.datanucleus.store.mapped.StatementClassMapping mappingDefinition,
boolean ignoreCache,
boolean discriminator,
org.datanucleus.FetchPlan fetchPlan,
java.lang.Class persistentClass)
storeMgr - Manager of the datastoretable - Table being selected fromacmd - MetaData for the class (base class)mappingDefinition - Mapping information for the result set and how it maps to the classignoreCache - Whether to ignore the cachediscriminator - Whether we use a discriminator column to distinguish object typesfetchPlan - the Fetch PlanpersistentClass - Class that this factory will create instances of (or subclasses)| Method Detail |
|---|
public void setPersistentClass(java.lang.Class cls)
cls - The Class the result factory requires.
public java.lang.Object getObject(org.datanucleus.ObjectManager om,
java.lang.Object rs)
getObject in interface org.datanucleus.store.query.ResultObjectFactoryom - The ObjectManagerrs - The ResultSet from the Query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||