public class InsertRequest extends Request
When inserting an object with inheritance this will involve 1 InsertRequest for each table involved. So if we have a class B that extends class A and they both use "new-table" inheritance strategy, we will have 2 InsertRequests, one for table A, and one for table B.
When the InsertRequest starts to populate its statement and it has a PC field, this calls PersistenceCapableMapping.setObject(). This then checks if the other PC object is yet persistent and, if not, will persist it before processing this objects INSERT. This forms the key to "persistence-by-reachability".
|Constructor and Description|
Constructor, taking the table.
|Modifier and Type||Method and Description|
Method performing the insertion of the record from the datastore.
public InsertRequest(DatastoreClass table, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.ClassLoaderResolver clr)
table- The Class Table representing the datastore table to insert.
cmd- ClassMetaData for the object being persisted
clr- ClassLoader resolver
public void execute(org.datanucleus.state.ObjectProvider op)
Copyright © 2014. All Rights Reserved.