org.eclipse.emf.cdo.server.ocl
Class OCLQueryHandler

java.lang.Object
  extended by org.eclipse.emf.cdo.server.ocl.OCLQueryHandler
All Implemented Interfaces:
IQueryHandler

public class OCLQueryHandler
extends Object
implements IQueryHandler

A query handler that evaluates OCL query expressions.


Nested Class Summary
static class OCLQueryHandler.Factory
          Creates OCLQueryHandler instances.
 
Field Summary
static String LANGUAGE_NAME
           
 
Constructor Summary
OCLQueryHandler()
           
 
Method Summary
protected  void addEnvironmentVariable(org.eclipse.ocl.Environment<?,EClassifier,?,?,?,?,?,?,?,org.eclipse.ocl.ecore.Constraint,EClass,EObject> environment, org.eclipse.ocl.expressions.Variable<EClassifier,?> variable)
           
protected  boolean addResult(Object result, IQueryContext context, CDOView view)
           
protected  CDOExtentMap createExtentMap(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  boolean createsLazyExtents()
           
protected  Object evaluate(org.eclipse.ocl.Query<EClassifier,EClass,EObject> query, EObject object)
           
 void executeQuery(CDOQueryInfo info, IQueryContext context)
          Executes the query represented by the specified query info by passing the query results to the query execution engine represented by the specified execution context.
protected  EClassifier getArbitraryContextClassifier(CDOPackageRegistry packageRegistry)
           
protected  CDORevision getRevision(EObject object, CDOView view)
           
protected  void initEnvironment(org.eclipse.ocl.Environment<?,EClassifier,?,?,?,?,?,?,?,org.eclipse.ocl.ecore.Constraint,EClass,EObject> environment, CDOPackageRegistry packageRegistry, Map<String,Object> parameters)
           
static void prepareContainer(IManagedContainer container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LANGUAGE_NAME

public static final String LANGUAGE_NAME
See Also:
Constant Field Values
Constructor Detail

OCLQueryHandler

public OCLQueryHandler()
Method Detail

executeQuery

public void executeQuery(CDOQueryInfo info,
                         IQueryContext context)
Description copied from interface: IQueryHandler
Executes the query represented by the specified query info by passing the query results to the query execution engine represented by the specified execution context.

Specified by:
executeQuery in interface IQueryHandler

addResult

protected boolean addResult(Object result,
                            IQueryContext context,
                            CDOView view)

getRevision

protected CDORevision getRevision(EObject object,
                                  CDOView view)

evaluate

protected Object evaluate(org.eclipse.ocl.Query<EClassifier,EClass,EObject> query,
                          EObject object)

createExtentMap

protected CDOExtentMap createExtentMap(CDOView view,
                                       CDOChangeSetData changeSetData,
                                       IQueryContext context)

createsLazyExtents

protected boolean createsLazyExtents()

getArbitraryContextClassifier

protected EClassifier getArbitraryContextClassifier(CDOPackageRegistry packageRegistry)

initEnvironment

protected void initEnvironment(org.eclipse.ocl.Environment<?,EClassifier,?,?,?,?,?,?,?,org.eclipse.ocl.ecore.Constraint,EClass,EObject> environment,
                               CDOPackageRegistry packageRegistry,
                               Map<String,Object> parameters)

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)

prepareContainer

public static void prepareContainer(IManagedContainer container)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.