use of org.datanucleus.store.rdbms.request.DeleteRequest in project datanucleus-rdbms by datanucleus.
the class RDBMSPersistenceHandler method getDeleteRequest.
/**
* Returns a request object that will delete 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 delete.
* @param acmd ClassMetaData of the object of the request
* @param clr ClassLoader resolver
* @return A deletion request object.
*/
private Request getDeleteRequest(DatastoreClass table, AbstractClassMetaData acmd, ClassLoaderResolver clr) {
RequestIdentifier reqID = new RequestIdentifier(table, null, RequestType.DELETE, acmd.getFullClassName());
Request req = requestsByID.get(reqID);
if (req == null) {
req = new DeleteRequest(table, acmd, clr);
requestsByID.put(reqID, req);
}
return req;
}
Aggregations