Package org.hcjf.layers.query
Class Queryable.IntrospectionConsumer<O>
- java.lang.Object
-
- org.hcjf.layers.query.Queryable.DefaultConsumer<O>
-
- org.hcjf.layers.query.Queryable.IntrospectionConsumer<O>
-
- All Implemented Interfaces:
Queryable.Consumer<O>
- Enclosing interface:
- Queryable
public static class Queryable.IntrospectionConsumer<O> extends Queryable.DefaultConsumer<O>
This private class is the default consume method of the queries.
-
-
Constructor Summary
Constructors Constructor Description IntrospectionConsumer()
-
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.-
Methods inherited from class org.hcjf.layers.query.Queryable.DefaultConsumer
resolveFunction
-
-
-
-
Method Detail
-
get
public <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.
-
getParameter
public <R> R getParameter(java.lang.Integer place)
Description copied from interface:Queryable.ConsumerThis 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.
-
-