Package com.mckoi.database
Class TransactionSystem.DSFunctionLookup
- java.lang.Object
-
- com.mckoi.database.TransactionSystem.DSFunctionLookup
-
- All Implemented Interfaces:
FunctionLookup
- Enclosing class:
- TransactionSystem
private static class TransactionSystem.DSFunctionLookup extends java.lang.Object implements FunctionLookup
A FunctionLookup implementation that will look up a function from a list of FunctionFactory objects provided with.
-
-
Field Summary
Fields Modifier and Type Field Description private FunctionFactory[]
factories
-
Constructor Summary
Constructors Modifier Constructor Description private
DSFunctionLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flushContents(FunctionFactory[] factories)
Function
generateFunction(FunctionDef function_def)
Generate the Function given a FunctionDef object.boolean
isAggregate(FunctionDef function_def)
Returns true if the function defined by FunctionDef is an aggregate function, or false otherwise.
-
-
-
Field Detail
-
factories
private FunctionFactory[] factories
-
-
Method Detail
-
generateFunction
public Function generateFunction(FunctionDef function_def)
Description copied from interface:FunctionLookup
Generate the Function given a FunctionDef object. Returns null if the FunctionDef can not be resolved to a valid function object. If the specification of the function is invalid for some reason (the number or type of the parameters is incorrect) then a StatementException is thrown.- Specified by:
generateFunction
in interfaceFunctionLookup
-
isAggregate
public boolean isAggregate(FunctionDef function_def)
Description copied from interface:FunctionLookup
Returns true if the function defined by FunctionDef is an aggregate function, or false otherwise.- Specified by:
isAggregate
in interfaceFunctionLookup
-
flushContents
public void flushContents(FunctionFactory[] factories)
-
-