public interface QueryProvider
Queryable
object.
Analogous to LINQ's System.Linq.QueryProvider.
Modifier and Type | Method and Description |
---|---|
<T> Queryable<T> |
createQuery(Expression expression,
Class<T> rowType)
Constructs a
Queryable object that can evaluate the query
represented by a specified expression tree. |
<T> Queryable<T> |
createQuery(Expression expression,
Type rowType)
Constructs a
Queryable object that can evaluate the query
represented by a specified expression tree. |
<T> T |
execute(Expression expression,
Class<T> type)
Executes the query represented by a specified expression tree.
|
<T> T |
execute(Expression expression,
Type type)
Executes the query represented by a specified expression tree.
|
<T> Enumerator<T> |
executeQuery(Queryable<T> queryable)
Executes a queryable, and returns an enumerator over the
rows that it yields.
|
<T> Queryable<T> createQuery(Expression expression, Class<T> rowType)
Queryable
object that can evaluate the query
represented by a specified expression tree.
NOTE: The RawQueryable.getExpression()
property of the returned Queryable
object is equal to
expression
.
T
- Row typeexpression
- ExpressionrowType
- Row type<T> Queryable<T> createQuery(Expression expression, Type rowType)
Queryable
object that can evaluate the query
represented by a specified expression tree. The row type may contain
generic information.T
- Row typeexpression
- ExpressionrowType
- Row type<T> T execute(Expression expression, Class<T> type)
This method executes queries that return a single value
(instead of an enumerable sequence of values). Expression trees that
represent queries that return enumerable results are executed when the
Queryable
object that contains the expression tree is
enumerated.
The Queryable standard query operator methods that return singleton
results call execute
. They pass it a
MethodCallExpression
that represents a linq4j query.
<T> T execute(Expression expression, Type type)
<T> Enumerator<T> executeQuery(Queryable<T> queryable)
queryable
- QueryableCopyright © 2012-2014 Julian Hyde. All Rights Reserved.