Package org.hcjf.layers.query.functions
Class BaseQueryFunctionLayer
- java.lang.Object
-
- org.hcjf.layers.Layer
-
- org.hcjf.layers.query.functions.BaseFunctionLayer
-
- org.hcjf.layers.query.functions.BaseQueryFunctionLayer
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler,LayerInterface,QueryFunctionLayerInterface
- Direct Known Subclasses:
BsonQueryFunctionLayer,CollectionQueryFunction,DateQueryFunctionLayer,GeoQueryFunctionLayer,MathQueryFunctionLayer,ObjectQueryFunction,ReferenceFunctionLayer,StringQueryFunctionLayer
public abstract class BaseQueryFunctionLayer extends BaseFunctionLayer implements QueryFunctionLayerInterface
- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.layers.Layer
Layer.Access, Layer.LayerAgent, Layer.LayerAgentMBean
-
-
Constructor Summary
Constructors Constructor Description BaseQueryFunctionLayer(java.lang.String implName)
-
Method Summary
Modifier and Type Method Description protected voidaddFunctionName(java.lang.String alias)Adds alias to internal store to deploy the layer with all the aliases added with the expected format name.protected voidcheckNumberAndType(java.lang.String functionName, java.lang.Object[] parameters, java.lang.Integer expectedLength, java.lang.Class... types)Check if the number of parameters and the type are the same that the incoming array.java.util.Set<java.lang.String>getAliases()Returns the set of the aliases of the layer.-
Methods inherited from class org.hcjf.layers.query.functions.BaseFunctionLayer
getParameter
-
Methods inherited from class org.hcjf.layers.Layer
checkAccess, getImplName, getLayer, getProxy, getSession, getTarget, invoke, isOverwritable, isPlugin, isStateful
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hcjf.layers.LayerInterface
getImplName, getRegex, isDistributed, isPlugin, isStateful
-
Methods inherited from interface org.hcjf.layers.query.functions.QueryFunctionLayerInterface
evaluate
-
-
-
-
Method Detail
-
addFunctionName
protected final void addFunctionName(java.lang.String alias)
Adds alias to internal store to deploy the layer with all the aliases added with the expected format name.- Parameters:
alias- Alias name.
-
getAliases
public final java.util.Set<java.lang.String> getAliases()
Returns the set of the aliases of the layer.- Overrides:
getAliasesin classLayer- Returns:
- Aliases of the layer.
-
checkNumberAndType
protected void checkNumberAndType(java.lang.String functionName, java.lang.Object[] parameters, java.lang.Integer expectedLength, java.lang.Class... types)Check if the number of parameters and the type are the same that the incoming array.- Parameters:
functionName- Name of the function that are testing.parameters- Incoming parameters array.expectedLength- Expected parameters array length.types- Excepted parameters type.
-
-