org.eclipse.emf.ecore.util
Interface QueryDelegate


public interface QueryDelegate

An interface for delegating query execution.

Since:
2.7

Nested Class Summary
static interface QueryDelegate.Factory
          A factory for creating query delegates.
 
Method Summary
 java.lang.Object execute(java.lang.Object target, java.util.Map<java.lang.String,?> arguments)
          Executes the query against the specified target object.
 void prepare()
          Prepares (e.g., parses) the query for execution.
 

Method Detail

prepare

void prepare()
             throws java.lang.reflect.InvocationTargetException
Prepares (e.g., parses) the query for execution.

Throws:
java.lang.reflect.InvocationTargetException - in case of failure to prepare (e.g., parse) the query, usually because of an exception

execute

java.lang.Object execute(java.lang.Object target,
                         java.util.Map<java.lang.String,?> arguments)
                         throws java.lang.reflect.InvocationTargetException
Executes the query against the specified target object.

Parameters:
target - the object against which to execute the query; must be an instance of the context with which the delegate was created
arguments - a map of parameter names to values; must correspond to the parameters with which the delegate was created
Returns:
the query's result
Throws:
java.lang.reflect.InvocationTargetException - in case of failure to execute the query, usually because of an exception

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.