In cases where you need to optimize the save performance for batch insertion or batch updating, you may want to utilize the batch persistence operation provided by Onyx Database Persistence Manager.
Get an instance of an Entity Persistence Manager via the Persistence Manager Factory
Create a loop that will instantiate managed objects and add them to a List.
All entities within the list must be of the same type.
Invoke the PersistenceManager#saveEntities method to save a Java List.
Onyx does not differentiate between updating or inserting managed
com.onyxdevtools.entities. If an entity with a matching primary key already exists, Onyx
will assume you are updating the entity specified and overwrite the existing record.
Execute a Query to verify that your entities were saved.