Package org.eclipse.emf.cdo.server.ocl
Class OCLQueryHandler
java.lang.Object
org.eclipse.emf.cdo.server.ocl.OCLQueryHandler
- All Implemented Interfaces:
IQueryHandler
A
query handler that evaluates OCL query expressions.- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classAn abstraction of theclassifierand/orobejctof an OCL query context parameter.static classCreatesOCLQueryHandlerinstances.Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.IQueryHandler
IQueryHandler.PotentiallySlow -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEnvironmentVariable(org.eclipse.ocl.Environment<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> environment, org.eclipse.ocl.expressions.Variable<EClassifier, ?> variable) protected booleanaddResult(Object result, IQueryContext context, CDOView view) protected CDOExtentMapcreateExtentMap(CDOView view, CDOChangeSetData changeSetData, IQueryContext context) protected org.eclipse.ocl.expressions.OCLExpression<EClassifier>createInitExpression(org.eclipse.ocl.types.OCLStandardLibrary<EClassifier> stdLib, CDOPackageRegistry packageRegistry, Object value) protected org.eclipse.ocl.OCL<?,EClassifier, ?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> createOCL(CDOView view, CDOExtentMap extentMap) protected org.eclipse.ocl.Query<EClassifier,EClass, EObject> createQuery(CDOView view, CDOQueryInfo info, OCLQueryHandler.ContextParameter contextParameter, org.eclipse.ocl.OCL<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> ocl) protected booleanprotected Objectevaluate(org.eclipse.ocl.Query<EClassifier, EClass, EObject> query, EObject object) voidexecuteQuery(CDOQueryInfo info, IQueryContext context) Executes thequeryrepresented by the specifiedquery infobypassingthe query results to the query execution engine represented by the specifiedexecution context.protected EClassifiergetArbitraryContextClassifier(CDOPackageRegistry packageRegistry) Deprecated.As of 4.2 no longer supported.protected OCLQueryHandler.ContextParametergetContextParameter(CDOQueryInfo info, CDOView view) protected EClassprotected CDORevisiongetRevision(EObject object, CDOView view) protected voidinitEnvironment(org.eclipse.ocl.Environment<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> environment, CDOPackageRegistry packageRegistry, Map<String, Object> parameters) protected booleanisOCLQueryParameter(String name) static voidprepareContainer(org.eclipse.net4j.util.container.IManagedContainer container) protected booleanreadParameter(Map<String, ?> queryParameters, String name, boolean defaultValue) protected <T> TreadParameter(Map<String, ?> queryParameters, String name, Class<T> type, T defaultValue) protected voidreadParameters(Map<String, ?> queryParameters) protected voidsetOCLQueryParameters(Map<String, Object> parameters, org.eclipse.ocl.Query<EClassifier, EClass, EObject> query)
-
Field Details
-
LANGUAGE_NAME
- See Also:
-
LAZY_EXTENTS_PARAMETER
- Since:
- 4.1
- See Also:
-
IMPLICIT_ROOT_CLASS_PARAMETER
Query parameter indicating theEClassto set as the implicit root class of the type hierarchy. The default isnull.- Since:
- 4.2
- See Also:
-
-
Constructor Details
-
OCLQueryHandler
public OCLQueryHandler()
-
-
Method Details
-
executeQuery
Description copied from interface:IQueryHandlerExecutes thequeryrepresented by the specifiedquery infobypassingthe query results to the query execution engine represented by the specifiedexecution context.- Specified by:
executeQueryin interfaceIQueryHandler
-
addResult
-
getRevision
-
evaluate
-
createExtentMap
protected CDOExtentMap createExtentMap(CDOView view, CDOChangeSetData changeSetData, IQueryContext context) -
createsLazyExtents
protected boolean createsLazyExtents() -
createOCL
protected org.eclipse.ocl.OCL<?,EClassifier, createOCL?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> (CDOView view, CDOExtentMap extentMap) - Since:
- 4.2
-
createQuery
protected org.eclipse.ocl.Query<EClassifier,EClass, createQueryEObject> (CDOView view, CDOQueryInfo info, OCLQueryHandler.ContextParameter contextParameter, org.eclipse.ocl.OCL<?, EClassifier, throws org.eclipse.ocl.ParserException, DiagnosticException?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> ocl) - Throws:
org.eclipse.ocl.ParserExceptionDiagnosticException- Since:
- 4.2
-
getArbitraryContextClassifier
Deprecated.As of 4.2 no longer supported. -
initEnvironment
protected void initEnvironment(org.eclipse.ocl.Environment<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> environment, CDOPackageRegistry packageRegistry, Map<String, Object> parameters) -
getImplicitRootClass
- Since:
- 4.2
-
createInitExpression
protected org.eclipse.ocl.expressions.OCLExpression<EClassifier> createInitExpression(org.eclipse.ocl.types.OCLStandardLibrary<EClassifier> stdLib, CDOPackageRegistry packageRegistry, Object value) -
addEnvironmentVariable
protected void addEnvironmentVariable(org.eclipse.ocl.Environment<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, org.eclipse.ocl.ecore.Constraint, EClass, EObject> environment, org.eclipse.ocl.expressions.Variable<EClassifier, ?> variable) -
getContextParameter
- Since:
- 4.2
-
readParameters
- Since:
- 4.2
-
readParameter
- Since:
- 4.2
-
readParameter
protected <T> T readParameter(Map<String, ?> queryParameters, String name, Class<T> type, T defaultValue) - Since:
- 4.2
-
setOCLQueryParameters
protected void setOCLQueryParameters(Map<String, Object> parameters, org.eclipse.ocl.Query<EClassifier, EClass, EObject> query) - Since:
- 4.2
-
isOCLQueryParameter
- Since:
- 4.2
-
prepareContainer
public static void prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container)
-