com.ds.fw.dv.search
Class FwDVSearchQueryElement

java.lang.Object
  |
  +--com.ds.fw.types.FwSimpleObject
        |
        +--com.ds.fw.dv.search.FwDVSearchQueryElement
All Implemented Interfaces:
java.lang.Cloneable, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable

public class FwDVSearchQueryElement
extends FwSimpleObject

This class contains an framework query element. Its instances are used for building SQL queries. An element represents a data element and a sign for relation with other elements.

See Also:
Serialized Form

Field Summary
 java.lang.String operator
          An operator, representing the relation of this element with others.
 int type
          The element type.
 java.lang.Object value
          The data content of this element.
 
Constructor Summary
FwDVSearchQueryElement()
          Default constructor.
 
Method Summary
 java.lang.Object get()
          Gets the element's data.
 java.lang.String getOperator()
          Gets the element's operator.
 int getType()
          Gets the element's type.
 void set(java.lang.Object s)
          Sets the element's data.
 void setOperator(java.lang.String s)
          Sets the element's operator.
 void setType(int s)
          Sets the element's type.
 
Methods inherited from class com.ds.fw.types.FwSimpleObject
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public int type
The element type. It has to have one of the following values:
1 - single element
2 - multiple elements - FwDVSearchQuery object (i.e. element | element * element...)


operator

public java.lang.String operator
An operator, representing the relation of this element with others. Possible values are:
'+', '|', 'or', '*', '&', 'and'
The default value is '+'.


value

public java.lang.Object value
The data content of this element.

Constructor Detail

FwDVSearchQueryElement

public FwDVSearchQueryElement()
Default constructor.

Method Detail

set

public void set(java.lang.Object s)
Sets the element's data.

Parameters:
s - an object representing element's data

get

public java.lang.Object get()
Gets the element's data.


setOperator

public void setOperator(java.lang.String s)
Sets the element's operator.

Parameters:
s - the operator to be set

getOperator

public java.lang.String getOperator()
Gets the element's operator.

Returns:
the operator

setType

public void setType(int s)
Sets the element's type.

Parameters:
s - the element's new type (1 or 2)
See Also:
type

getType

public int getType()
Gets the element's type.

See Also:
type