Class PersistenceContextModel
java.lang.Object
org.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.PersistenceContextModel
- All Implemented Interfaces:
Model
Model support for persistence context elements.
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.
- Author:
- Scott Andrews
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a deep copy of this model.booleanisMergeableWith(Model model) Determine if the model is able to be merged into the current modelvoidMerge the model into the current model
-
Constructor Details
-
PersistenceContextModel
public PersistenceContextModel()Create a persistence context model
-
-
Method Details
-
isMergeableWith
Description copied from interface:ModelDetermine if the model is able to be merged into the current model- Parameters:
model- the model to compare- Returns:
- true if able to merge
-
merge
Description copied from interface:ModelMerge the model into the current model- Parameters:
model- the model to merge with
-
createCopy
Description copied from interface:ModelCreate a deep copy of this model. Needed when merging models and collections.- Returns:
- a deep copy of this model
-