|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.reporting.data.Condition
public class Condition
A Condtion contains an attribute, an operator and a value (e.g: id = 3)
| Field Summary | |
|---|---|
static java.util.ArrayList |
ARETH_OPERATORS
|
static java.util.ArrayList |
DATE_OPERATORS
|
static Pair |
EMPTY_OPERATOR
|
static java.util.ArrayList |
NULL_OPERATORS
|
static java.util.ArrayList |
SET_OPERATORS
|
static java.util.ArrayList |
STRING_OPERATORS
|
| Constructor Summary | |
|---|---|
Condition(java.lang.String attribute,
java.lang.String operator,
java.lang.String value)
the public constructor |
|
| Method Summary | |
|---|---|
org.jdom.Element |
getAsDomElement()
Returns this selection condition as a dom element |
static java.lang.String |
getI18NOperator(java.lang.String operator)
|
java.lang.StringBuffer |
getSelectionString(java.lang.String entityPrefix)
|
void |
setAttribute(java.lang.String a)
setting the attribute... check if quote is needed |
void |
setOperator(java.lang.String o)
setting the operator... check if quote is needed |
void |
setValue(java.lang.String v)
setting the value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.ArrayList NULL_OPERATORS
public static java.util.ArrayList DATE_OPERATORS
public static java.util.ArrayList ARETH_OPERATORS
public static java.util.ArrayList SET_OPERATORS
public static java.util.ArrayList STRING_OPERATORS
public static Pair EMPTY_OPERATOR
| Constructor Detail |
|---|
public Condition(java.lang.String attribute,
java.lang.String operator,
java.lang.String value)
attribute - the attribute nameoperator - the operatorvalue - the value| Method Detail |
|---|
public void setAttribute(java.lang.String a)
a - the attribute namepublic void setOperator(java.lang.String o)
o - the operator stringpublic void setValue(java.lang.String v)
v - - the valuepublic java.lang.StringBuffer getSelectionString(java.lang.String entityPrefix)
entityPrefix - - the alias of the entity in the sql query
public org.jdom.Element getAsDomElement()
public static java.lang.String getI18NOperator(java.lang.String operator)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||