2.17.2: 2011-06-17

net.sf.basedb.util.jep.convert
Class ASTVarNodeConverter

java.lang.Object
  extended by net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<ASTVarNode>
      extended by 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) $

Constructor Summary
ASTVarNodeConverter()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTVarNodeConverter

public ASTVarNodeConverter()
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 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)

2.17.2: 2011-06-17