use of org.datanucleus.store.rdbms.request.FetchRequest in project datanucleus-rdbms by datanucleus.
the class RDBMSPersistenceHandler method getFetchRequest.
/**
* Returns a request object that will fetch a row from the given table.
* The store manager will cache the request object for re-use by subsequent requests to the same table.
* @param table The table from which to fetch.
* @param mmds MetaData for the members corresponding to the columns to be fetched.
* @param cmd ClassMetaData of the object of the request
* @param clr ClassLoader resolver
* @return A fetch request object.
*/
private Request getFetchRequest(DatastoreClass table, AbstractMemberMetaData[] mmds, AbstractClassMetaData cmd, ClassLoaderResolver clr) {
RequestIdentifier reqID = new RequestIdentifier(table, mmds, RequestType.FETCH, cmd.getFullClassName());
Request req = requestsByID.get(reqID);
if (req == null) {
req = new FetchRequest(table, mmds, cmd, clr);
requestsByID.put(reqID, req);
}
return req;
}
Aggregations