Package net.sf.basedb.util.jep.convert
Class LessConverter
- java.lang.Object
-
- net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Node>
-
- net.sf.basedb.util.jep.convert.LessConverter
-
- All Implemented Interfaces:
JepConversionFunction<Node>
public class LessConverter extends AbstractJepConversionFunction<Node>
Convert the '<' operator to a Query APIRestriction
.- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2010-08-13 12:48:17 +0200 (fr, 13 aug 2010) $
-
-
Constructor Summary
Constructors Constructor Description LessConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Get a short description of the function or operatorString
getName()
Get the name of the function or the symbol of the operatorboolean
isOperator()
If this converter is a built-in operator.Restriction
toRestriction(Node node)
Convert to restriction by callingRestrictions.lt(net.sf.basedb.core.query.Expression, net.sf.basedb.core.query.Expression)
.-
Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
isFunction, toExpression
-
-
-
-
Method Detail
-
isOperator
public boolean isOperator()
Description copied from interface:JepConversionFunction
If this converter is a built-in operator.- Specified by:
isOperator
in interfaceJepConversionFunction<Node>
- Overrides:
isOperator
in classAbstractJepConversionFunction<Node>
- Returns:
- Always FALSE
-
getName
public String getName()
Description copied from interface:JepConversionFunction
Get the name of the function or the symbol of the operator- Specified by:
getName
in interfaceJepConversionFunction<Node>
- Overrides:
getName
in classAbstractJepConversionFunction<Node>
- Returns:
- The string '<'
-
getDescription
public String getDescription()
Description copied from interface:JepConversionFunction
Get a short description of the function or operator- Specified by:
getDescription
in interfaceJepConversionFunction<Node>
- Overrides:
getDescription
in classAbstractJepConversionFunction<Node>
- Returns:
- Always null
-
toRestriction
public Restriction toRestriction(Node node)
Convert to restriction by callingRestrictions.lt(net.sf.basedb.core.query.Expression, net.sf.basedb.core.query.Expression)
.- Specified by:
toRestriction
in interfaceJepConversionFunction<Node>
- Overrides:
toRestriction
in classAbstractJepConversionFunction<Node>
- Parameters:
node
- The object to convert- Returns:
- A restriction or null
-
-