|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.query.PersistentIDROF
public final class PersistentIDROF
Class to take a JDBC ResultSet and create a PersistenceCapable object instance for each row in the ResultSet. Each row in the ResultSet represents an instance of a particular object type. We can determine the object type in one of two ways :
| Field Summary | |
|---|---|
protected AbstractClassMetaData |
acmd
fieldnumbers taken from this MetaData |
protected int[] |
datastoreIdentityExpressionIndex
Indices of datastore identity columns |
protected boolean |
discriminator
Flag whether we should use a discriminator column to distinguish object types (otherwise use JPOXMETADATA). |
protected FetchPlanImpl |
fetchPlan
Fetch Plan to use when loading fields (if any). |
protected int[] |
fieldNumbers
FIeld numbers to populate. |
protected boolean |
hasMetaDataInResults
if the results have included a meta data column with the class name |
protected StatementExpressionIndex[] |
statementExpressionIndex
Mapping from ResultSet to field numbers and mappings. |
protected int[] |
versionIndex
Index of version column(s). |
| Constructor Summary | |
|---|---|
PersistentIDROF(DatastoreClass table,
int[] fieldNumbers,
AbstractClassMetaData acmd,
StatementExpressionIndex[] statementExpressionIndex,
int[] datastoreIdentityExpressionIndex,
int[] versionIndex,
boolean ignoreCache,
boolean discriminator,
boolean hasMetaDataInResults,
FetchPlanImpl fetchPlan)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getObject(PersistenceManager pm,
java.sql.ResultSet rs,
java.lang.Class pcClass)
Method to convert the current ResultSet row into an Object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int[] fieldNumbers
protected StatementExpressionIndex[] statementExpressionIndex
protected final int[] datastoreIdentityExpressionIndex
protected final int[] versionIndex
protected boolean discriminator
protected final boolean hasMetaDataInResults
protected final FetchPlanImpl fetchPlan
protected final AbstractClassMetaData acmd
| Constructor Detail |
|---|
public PersistentIDROF(DatastoreClass table,
int[] fieldNumbers,
AbstractClassMetaData acmd,
StatementExpressionIndex[] statementExpressionIndex,
int[] datastoreIdentityExpressionIndex,
int[] versionIndex,
boolean ignoreCache,
boolean discriminator,
boolean hasMetaDataInResults,
FetchPlanImpl fetchPlan)
table - Table being selected fromfieldNumbers - Numbers of the fields in the select. May be null if no fields are retrievedstatementExpressionIndex - Index of columns to statement columnsdatastoreIdentityExpressionIndex - index for datastore identityversionIndex - Indices of the version column(s)ignoreCache - Whether to ignore the cachediscriminator - Whether we use a discriminator column to distinguish object
types, or whether we use a JPOXMETADATA columnhasMetaDataInResults - whether we use JPOXMETADATA columnfetchPlan - the Fetch Plan| Method Detail |
|---|
public java.lang.Object getObject(PersistenceManager pm,
java.sql.ResultSet rs,
java.lang.Class pcClass)
getObject in interface Query.ResultObjectFactorypm - The PersistenceManagerrs - The ResultSet from the Query.pcClass - The candidate class that we are looking for (may be base class).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||