Package net.sf.basedb.util.jep.convert
Class ASTVarNodeConverter
- java.lang.Object
-
- net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<ASTVarNode>
-
- net.sf.basedb.util.jep.convert.ASTVarNodeConverter
-
- All Implemented Interfaces:
JepConversionFunction<ASTVarNode>
public class ASTVarNodeConverter extends AbstractJepConversionFunction<ASTVarNode>
Converts a variable node to a parameter expression or null.- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:08:14 +0200 (to, 11 sep 2008) $
-
-
Constructor Summary
Constructors Constructor Description ASTVarNodeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
toExpression(ASTVarNode node)
Converts a JEP variable to a parameter.-
Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
getDescription, getName, isFunction, isOperator, toRestriction
-
-
-
-
Method Detail
-
toExpression
public Expression toExpression(ASTVarNode node)
Converts a JEP variable to a parameter. A value for the parameter must be set on the query before executing it. The special variableNULL
(ignoring case) is converted to Java null.- Specified by:
toExpression
in interfaceJepConversionFunction<ASTVarNode>
- Overrides:
toExpression
in classAbstractJepConversionFunction<ASTVarNode>
- Parameters:
node
- The object to convert- Returns:
- An
Expression
representing a parameter or null - See Also:
Query.setParameter(String, Object, net.sf.basedb.core.Type)
-
-