public class FetchRequest extends Request
Any surrogate version stored in this table will be fetched *if* the object being updated doesn't already have a value for it. If the caller wants the surrogate version to be updated then they should nullify the "transactional" version before calling.
|Constructor and Description|
Constructor, taking the table.
|Modifier and Type||Method and Description|
Method to execute the request - to be implemented by deriving classes.
Method to process the supplied members of the class, adding to the SQLStatement as required.
public FetchRequest(org.datanucleus.store.mapped.DatastoreClass classTable, org.datanucleus.metadata.AbstractMemberMetaData mmds, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.ClassLoaderResolver clr)
classTable- The Class Table representing the datastore table to retrieve
mmds- MetaData of the fields/properties to retrieve
cmd- ClassMetaData of objects being fetched
clr- ClassLoader resolver
public void execute(org.datanucleus.store.ObjectProvider sm)
protected int processMembersOfClass(SQLStatement sqlStatement, org.datanucleus.metadata.AbstractMemberMetaData mmds, org.datanucleus.store.mapped.DatastoreClass table, SQLTable sqlTbl, org.datanucleus.store.mapped.StatementClassMapping mappingDef, Collection fetchCallbacks, org.datanucleus.ClassLoaderResolver clr)
sqlStatement- Statement being built
mmds- Meta-data for the required fields/properties
table- The table to look for member mappings
sqlTbl- The table in the SQL statement to use for selects
fetchCallbacks- Any additional required callbacks are added here
Copyright © 2013. All Rights Reserved.