use of org.datanucleus.store.rdbms.request.InsertRequest in project datanucleus-rdbms by datanucleus.
the class RDBMSPersistenceHandler method getInsertRequest.
/**
* Returns a request object that will insert a row in 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 into which to insert.
* @param cmd ClassMetaData of the object of the request
* @param clr ClassLoader resolver
* @return An insertion request object.
*/
private Request getInsertRequest(DatastoreClass table, AbstractClassMetaData cmd, ClassLoaderResolver clr) {
RequestIdentifier reqID = new RequestIdentifier(table, null, RequestType.INSERT, cmd.getFullClassName());
Request req = requestsByID.get(reqID);
if (req == null) {
req = new InsertRequest(table, cmd, clr);
requestsByID.put(reqID, req);
}
return req;
}
Aggregations