Package net.sf.basedb.util.jep.convert
Class GreaterConverter
java.lang.Object
net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Node>
net.sf.basedb.util.jep.convert.GreaterConverter
- All Implemented Interfaces:
JepConversionFunction<Node>
Convert the '>' operator
to a Query API
Restriction
.- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2010-08-13 12:48:17 +0200 (fr, 13 aug 2010) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a short description of the function or operatorgetName()
Get the name of the function or the symbol of the operatorboolean
If this converter is a built-in operator.toRestriction
(Node node) Convert to restriction by callingRestrictions.gt(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
-
Constructor Details
-
GreaterConverter
public GreaterConverter()
-
-
Method Details
-
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
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
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
Convert to restriction by callingRestrictions.gt(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
-