org.terracotta.toolkit.search.expression
Class RelationalClause

java.lang.Object
  extended by org.terracotta.toolkit.search.expression.BaseClause
      extended by org.terracotta.toolkit.search.expression.RelationalClause
All Implemented Interfaces:
Clause
Direct Known Subclasses:
RelationalClause.GreaterThan, RelationalClause.GreaterThanOrEqual, RelationalClause.LessThan, RelationalClause.LessThanOrEqual

public abstract class RelationalClause
extends BaseClause

Clause that represents relation between two values. Supported clauses are:

Static factory methods are available for convenience.


Nested Class Summary
static class RelationalClause.GreaterThan
           
static class RelationalClause.GreaterThanOrEqual
           
static class RelationalClause.LessThan
           
static class RelationalClause.LessThanOrEqual
           
 
Field Summary
 
Fields inherited from class org.terracotta.toolkit.search.expression.BaseClause
SEP
 
Constructor Summary
protected RelationalClause(String attributeName, String tag, Object value)
          Constructor
 
Method Summary
 String getAttributeName()
           
 Comparable getValue()
           
static RelationalClause gt(String name, Object value)
           
static RelationalClause gte(String name, Object value)
           
static RelationalClause lt(String name, Object value)
           
static RelationalClause lte(String name, Object value)
           
 String toString()
           
 
Methods inherited from class org.terracotta.toolkit.search.expression.BaseClause
and, not, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationalClause

protected RelationalClause(String attributeName,
                           String tag,
                           Object value)
Constructor

Parameters:
attributeName - attribute name
value - comparable value (used to infer type)
Method Detail

getValue

public Comparable getValue()

getAttributeName

public String getAttributeName()

toString

public String toString()
Overrides:
toString in class Object

lt

public static RelationalClause lt(String name,
                                  Object value)

gt

public static RelationalClause gt(String name,
                                  Object value)

lte

public static RelationalClause lte(String name,
                                   Object value)

gte

public static RelationalClause gte(String name,
                                   Object value)


Copyright © 2014 Terracotta, Inc.. All Rights Reserved.