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 (Thu, 11 Sep 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASTVarNodeConverter
public ASTVarNodeConverter()
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 variable
NULL
(ignoring case) is converted to Java null.
- Specified by:
toExpression
in interface JepConversionFunction<ASTVarNode>
- Overrides:
toExpression
in class AbstractJepConversionFunction<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)