2.17.2: 2011-06-17

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

java.lang.Object
  extended by net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Node>
      extended by net.sf.basedb.util.jep.convert.GreaterEqualsConverter
All Implemented Interfaces:
JepConversionFunction<Node>

public class GreaterEqualsConverter
extends AbstractJepConversionFunction<Node>

Convert the '>=' operator to a Query API Restriction.

Version:
2.4
Author:
nicklas
Last modified
$Date: 2010-08-13 12:48:17 +0200 (Fri, 13 Aug 2010) $

Constructor Summary
GreaterEqualsConverter()
           
 
Method Summary
 String getDescription()
          Get a short description of the function or operator
 String getName()
          Get the name of the function or the symbol of the operator
 boolean isOperator()
          If this converter is a built-in operator.
 Restriction toRestriction(Node node)
          Convert to restriction by calling Restrictions.gteq(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreaterEqualsConverter

public GreaterEqualsConverter()
Method Detail

isOperator

public boolean isOperator()
Description copied from interface: JepConversionFunction
If this converter is a built-in operator.

Specified by:
isOperator in interface JepConversionFunction<Node>
Overrides:
isOperator in class AbstractJepConversionFunction<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 interface JepConversionFunction<Node>
Overrides:
getName in class AbstractJepConversionFunction<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 interface JepConversionFunction<Node>
Overrides:
getDescription in class AbstractJepConversionFunction<Node>
Returns:
Always null

toRestriction

public Restriction toRestriction(Node node)
Convert to restriction by calling Restrictions.gteq(net.sf.basedb.core.query.Expression, net.sf.basedb.core.query.Expression).

Specified by:
toRestriction in interface JepConversionFunction<Node>
Overrides:
toRestriction in class AbstractJepConversionFunction<Node>
Parameters:
node - The object to convert
Returns:
A restriction or null

2.17.2: 2011-06-17