com.sun.labs.minion.query
Class StringRelation

java.lang.Object
  extended by com.sun.labs.minion.query.Element
      extended by com.sun.labs.minion.query.Relation
          extended by com.sun.labs.minion.query.StringRelation

public class StringRelation
extends Relation

A query element for the string operators, which includes all of the valid operators from Relation, as well as substring, matches, starts, ends.

See Also:
Relation

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.labs.minion.query.Relation
Relation.Operator
 
Field Summary
 
Fields inherited from class com.sun.labs.minion.query.Relation
field, operator, value
 
Fields inherited from class com.sun.labs.minion.query.Element
fields, strict
 
Constructor Summary
StringRelation(java.lang.String field, Relation.Operator operator, java.lang.String value)
          Creates a relation for a string field.
 
Method Summary
 
Methods inherited from class com.sun.labs.minion.query.Relation
getField, getOperator, getQueryElement, getValue, toString
 
Methods inherited from class com.sun.labs.minion.query.Element
addField, getFields, getStrict, setFields, setStrict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringRelation

public StringRelation(java.lang.String field,
                      Relation.Operator operator,
                      java.lang.String value)
Creates a relation for a string field.

Parameters:
field - the field that the relation should operate on. This should be a field that has the SAVED attribute and is of type STRING. If either of these preconditions is violated, a warning will be issued when the query is evaluated by the engine.
operator - the operator to use for the relation
value - the value that is being compared to the values in the field