org.eclipse.stardust.engine.api.query
Class ModelVersionPolicy
java.lang.Object
org.eclipse.stardust.engine.api.query.ModelVersionPolicy
- All Implemented Interfaces:
- Serializable, EvaluationPolicy
public class ModelVersionPolicy
- extends Object
- implements EvaluationPolicy
Evaluation policy affecting query execution in a multi-version model environment. Can
be used to restrict query evaluation involving model elements to only consider the
currently active model version.
- Version:
- $Revision$
- Author:
- rsauer
- See Also:
- Serialized Form
|
Constructor Summary |
ModelVersionPolicy(boolean restrictedToActiveModel)
Initializes a policy to either restrict query evaluation to only the active model
version or not. |
|
Method Summary |
boolean |
isRestrictedToActiveModel()
Indicates if this policy is restricting query evaluation to the active model version
or not. |
ModelVersionPolicy
public ModelVersionPolicy(boolean restrictedToActiveModel)
- Initializes a policy to either restrict query evaluation to only the active model
version or not.
- Parameters:
restrictedToActiveModel - Flag indicating if query evaluation will only
consider the active model version or not.
isRestrictedToActiveModel
public boolean isRestrictedToActiveModel()
- Indicates if this policy is restricting query evaluation to the active model version
or not.
- Returns:
true if query evaluation is restricted to the active model
version, false if not.
Copyright © 2017 Eclipse Stardust. All Rights Reserved.