public class PersistenceContextModel extends AbstractModel
Allocates a persistence context when this flow starts. The persistence context is closed when the flow ends. If the flow ends by reaching a "commit" end-state, changes made to managed persistent entities during the course of flow execution are flushed to the database in a transaction.
The persistence context can be referenced from within this flow by the "entityManager" variable.
Constructor and Description |
---|
PersistenceContextModel()
Create a persistence context model
|
Modifier and Type | Method and Description |
---|---|
Model |
createCopy()
Create a deep copy of this model.
|
boolean |
isMergeableWith(Model model)
Determine if the model is able to be merged into the current model
|
void |
merge(Model model)
Merge the model into the current model
|
public PersistenceContextModel()
public boolean isMergeableWith(Model model)
Model
model
- the model to comparepublic void merge(Model model)
Model
model
- the model to merge with