com.flexive.shared.search.query
Class SelectValueNode

java.lang.Object
  extended by com.flexive.shared.search.query.QueryNode
      extended by com.flexive.shared.search.query.QueryValueNode<FxSelectOne,PropertyValueComparator>
          extended by com.flexive.shared.search.query.SelectValueNode
All Implemented Interfaces:
java.io.Serializable

public class SelectValueNode
extends QueryValueNode<FxSelectOne,PropertyValueComparator>

Select node

Version:
$Rev: 462 $
Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.search.query.QueryValueNode
comparator, inputMapper, value
 
Fields inherited from class com.flexive.shared.search.query.QueryNode
children, id, parent
 
Constructor Summary
SelectValueNode(int id, FxAssignment assignment, FxSelectListItem item)
           
 
Method Summary
protected  void buildSqlQuery(SqlQueryBuilder builder)
          Build the query represented by this node and its children.
 java.util.List<PropertyValueComparator> getNodeComparators()
          Override this method to set the available value comparators of a node instance.
 boolean isValid()
          Return true if the node's value is valid, or false if it is not.
 
Methods inherited from class com.flexive.shared.search.query.QueryValueNode
getAvailableComparators, getComparator, getEmptyValue, getInputMapper, getPropertyInputMapper, getValue, getValueFormatter, isReadOnly, isValueNode, isWideInput, setComparator, setInputMapper, setValue, visit
 
Methods inherited from class com.flexive.shared.search.query.QueryNode
addChild, addChild, addChildAfter, equals, findChild, getChild, getChildren, getId, getLabel, getLevel, getNodeName, getParent, getPath, hashCode, isHidden, removeChild, setChildren, setId, setParent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectValueNode

public SelectValueNode(int id,
                       FxAssignment assignment,
                       FxSelectListItem item)
Method Detail

getNodeComparators

public java.util.List<PropertyValueComparator> getNodeComparators()
Override this method to set the available value comparators of a node instance.

Specified by:
getNodeComparators in class QueryValueNode<FxSelectOne,PropertyValueComparator>
Returns:
all available enum values for this query node.

isValid

public boolean isValid()
Return true if the node's value is valid, or false if it is not.

Specified by:
isValid in class QueryNode
Returns:
true if the node's value is valid, or false if it is not.

buildSqlQuery

protected void buildSqlQuery(SqlQueryBuilder builder)
Build the query represented by this node and its children.

Specified by:
buildSqlQuery in class QueryNode
Parameters:
builder - an sql query builder