use of org.datanucleus.store.rdbms.request.LocateRequest in project datanucleus-rdbms by datanucleus.
the class RDBMSPersistenceHandler method getLocateRequest.
/**
* Returns a request object that will locate 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 locate.
* @param className the class name of the object of the request
* @return A locate request object.
*/
private Request getLocateRequest(DatastoreClass table, String className) {
RequestIdentifier reqID = new RequestIdentifier(table, null, RequestType.LOCATE, className);
Request req = requestsByID.get(reqID);
if (req == null) {
req = new LocateRequest(table);
requestsByID.put(reqID, req);
}
return req;
}
Aggregations