java.lang.Object
org.eclipse.persistence.config.CommitOrderType
Commit order type persistence property values.
JPA persistence property Usage:
properties.add(PersistenceUnitProperties.PERSISTENCE_CONTEXT_COMMIT_ORDER, CommitOrderType.Changes);
Property values are case-insensitive. Defines the ordering of updates and deletes of a set of the same entity type during a commit or flush operation. The commit order of entities is defined by their foreign key constraints, and then sorted alphabetically.\
By default the commit of a set of the same entity type is not ordered.
Entity type commit order can be modified using a org.eclipse.persistence.descriptors.DescriptorCustomizer and the ClassDescriptor.addConstraintDependency() API. Commit order can also be controlled using the EntityManager.flush() API.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
Id
Updates and deletes are ordered by the object's id. This can help avoid deadlocks on highly concurrent systems.- See Also:
-
Changes
Updates are ordered by the object's changes, then by id. This can improve batch writing efficiency.- See Also:
-
None
No ordering is done.- See Also:
-
DEFAULT
- See Also:
-
-
Constructor Details
-
CommitOrderType
public CommitOrderType()
-