|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.query.AbstractQueryEngine
public abstract class AbstractQueryEngine
Abstract base class for QueryEngine implementations.
Nested Class Summary | |
---|---|
protected static class |
AbstractQueryEngine.ParsedQuery Immutable helper class that wraps both final query string and a map of parameter types, keyed by parameter name. |
Field Summary | |
---|---|
protected java.util.Map |
m_mapParsedQuery Map of cached ParsedQuery instances, keyed by their corresponding final query string. |
Constructor Summary | |
---|---|
AbstractQueryEngine() |
Method Summary | |
---|---|
protected java.util.List |
convertList(java.util.List listSource, java.lang.Class clzElementType) Convert all elements of the source list into the specified type. |
protected java.util.Map |
createBindings(java.util.Map mapParams, java.util.Map mapParamTypes) Converts string parameters to their required types. |
protected AbstractQueryEngine.ParsedQuery |
parseQueryString(java.lang.String sQuery) Parse a query string containing parameter type hints. |
protected java.lang.Class |
resolveParameterType(java.lang.String sType) Return the Class that corresponds with the given type hint. |
Methods inherited from interface com.tangosol.coherence.rest.query.QueryEngine |
---|
prepareQuery |
Field Detail |
---|
protected final java.util.Map m_mapParsedQuery
Constructor Detail |
---|
public AbstractQueryEngine()
Method Detail |
---|
protected AbstractQueryEngine.ParsedQuery parseQueryString(java.lang.String sQuery)
Parameter type hints allow users to specify the type conversion that should be performed on the string value of the parameter defined in the query string portion of the URL before it is bound to the query.
sQuery
- a query string to parse, which contains zero or more parameter bindings, possibly with type hintsprotected java.lang.Class resolveParameterType(java.lang.String sType)
sType
- the type hintprotected java.util.Map createBindings(java.util.Map mapParams, java.util.Map mapParamTypes)
mapParams
- a map of string parameter valuesmapParamTypes
- a map of required parameter typesprotected java.util.List convertList(java.util.List listSource, java.lang.Class clzElementType)
listSource
- source listclzElementType
- element type
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |