Package org.hcjf.layers.query
Interface Queryable.Consumer<O>
-
- All Known Implementing Classes:
ParameterizedQuery.ParameterizedConsumer,Queryable.DefaultConsumer,Queryable.IntrospectionConsumer
- Enclosing interface:
- Queryable
public static interface Queryable.Consumer<O>This class provides an interface to consume a different collection of naming data to be useful in evaluation process.
-
-
Method Summary
Modifier and Type Method Description <R> Rget(O instance, QueryParameter queryParameter, Queryable.DataSource<O> dataSource)Get naming information from an instance.<R> RgetParameter(java.lang.Integer place)This method must returns the parameter for the place indicated as parameter.<R> RresolveFunction(QueryFunction function, java.lang.Object instance, Queryable.DataSource<O> dataSource)This method must resolve the functions that are used into the query object.
-
-
-
Method Detail
-
get
<R> R get(O instance, QueryParameter queryParameter, Queryable.DataSource<O> dataSource)
Get naming information from an instance.- Type Parameters:
R- Expected response type.- Parameters:
instance- Data source.queryParameter- Query parameter.dataSource- Data source- Returns:
- Return the data storage in the data source indexed by the parameter name.
-
resolveFunction
<R> R resolveFunction(QueryFunction function, java.lang.Object instance, Queryable.DataSource<O> dataSource)
This method must resolve the functions that are used into the query object.- Type Parameters:
R- Expected result.- Parameters:
function- Query function.instance- Data object instance.dataSource- Data source- Returns:
- Return the value obtained of the function resolution.
-
getParameter
<R> R getParameter(java.lang.Integer place)
This method must returns the parameter for the place indicated as parameter.- Type Parameters:
R- Expected result type.- Parameters:
place- Place value.- Returns:
- Returns the value for the specific place.
-
-