com.force.sdk.jpa.query
Class ResultMetaDataROF
java.lang.Object
com.force.sdk.jpa.query.ResultMetaDataROF
public class ResultMetaDataROF
- extends Object
ResultObjectFactory that operates using a QueryResultMetaData and returns objects based on the definition.
A QueryResultMetaData allows for a row of a ResultSet to be returned as a mix of :-
- a number of persistent objects (made up of several ResultSet columns)
- a number of Objects (from individual ResultSet columns)
Each call to getObject() will then return a set of objects as per the MetaData definition.
ResultSet to object mapping
Each row of the SObject has a set of columns, and these columns are either used for direct outputting
back to the user as a "simple" object, or as a field in a persistent object.
- Author:
- Fiaz Hossain
Constructor Summary |
ResultMetaDataROF(org.datanucleus.metadata.QueryResultMetaData qrmd)
Constructor. |
Method Summary |
Object |
getObject(org.datanucleus.store.ExecutionContext ec,
ForceManagedConnection mconn,
org.datanucleus.store.query.AbstractJavaQuery query,
com.sforce.soap.partner.sobject.SObject sobject)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultMetaDataROF
public ResultMetaDataROF(org.datanucleus.metadata.QueryResultMetaData qrmd)
- Constructor.
- Parameters:
qrmd
- MetaData defining the results from the query.
getObject
public Object getObject(org.datanucleus.store.ExecutionContext ec,
ForceManagedConnection mconn,
org.datanucleus.store.query.AbstractJavaQuery query,
com.sforce.soap.partner.sobject.SObject sobject)
- Parameters:
ec
- ExecutionContextmconn
- ForceManagedConnectionquery
- AbstractJavaQuerysobject
- SObject
- Returns:
- The object(s) for this row of the SObject. We return persistent object first followed by single columns
in the order they are described.
Copyright © 2011. All Rights Reserved.