net.sf.basedb.util.jep.convert
Class IntegerConverter
java.lang.Object
net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Integer>
net.sf.basedb.util.jep.convert.IntegerConverter
- All Implemented Interfaces:
- JepConversionFunction<Integer>
public class IntegerConverter
- extends AbstractJepConversionFunction<Integer>
Convert an Integer
constant
to a Query API Expression
.
- 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 |
IntegerConverter
public IntegerConverter()
toExpression
public Expression toExpression(Integer i)
- Convert to expression by calling
Expressions.integer(int)
.
- Specified by:
toExpression
in interface JepConversionFunction<Integer>
- Overrides:
toExpression
in class AbstractJepConversionFunction<Integer>
- Parameters:
i
- The object to convert
- Returns:
- An expression or null