|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.model.condition.BaseCondition
javax.rad.model.condition.CompareCondition
public abstract class CompareCondition
Thats the base Class for all CompareCondition
s.
e.g. Equals, ...
Constructor Summary | |
---|---|
CompareCondition()
Constructs the base for a CompareCondition. |
|
CompareCondition(IDataRow pDataRow,
String pColumnName)
Constructs the base for a CompareCondition, with a column, the IDataRow to check and if null values should be ignored. |
|
CompareCondition(IDataRow pDataRow,
String pColumnName,
boolean pIgnoreNull)
Constructs the base for a CompareCondition, with a column, the IDataRow to check and that null values will be ignored. setIgnoreNull(true). |
|
CompareCondition(IDataRow pDataRow,
String pDataRowColumnName,
String pColumnName)
Constructs the base for a CompareCondition, with a column, the IDataRow to check, the column name to use in the IDataRow to get the value and that null values will be ignored. setIgnoreNull(true). |
|
CompareCondition(IDataRow pDataRow,
String pDataRowColumnName,
String pColumnName,
boolean pIgnoreNull)
Constructs the base for a CompareCondition, with a column, the IDataRow to check, the column name to use in the IDataRow to get the value and if null values should be ignored. |
|
CompareCondition(String pColumnName,
Object pValue)
Constructs the base for a CompareCondition, with a column, the value to check and that null values will be ignored. setIgnoreNull(false) |
|
CompareCondition(String pColumnName,
Object pValue,
boolean pIgnoreNull)
Constructs the base for a CompareCondition, with a column, the value to check and if null values should be ignored. |
Method Summary | |
---|---|
ICondition |
clone()
Return a clone of the specific ICondition. |
String |
getColumnName()
Returns the column name to use in the compare. |
IDataRow |
getDataRow()
Returns the data row to use in the compare. |
String |
getDataRowColumnName()
Returns the data row column name to use in the compare. |
Object |
getValue()
Returns the value to use in the compare. |
boolean |
isFulfilled(IDataRow pDataRow)
Returns true, if the ICondition is fulfilled. |
protected abstract boolean |
isFulfilled(IDataType pDataType,
Object pValue)
It checks if the pValue fulfill the ICondition , under usage of
the specified IDataType . |
boolean |
isIgnoreNull()
Returns if null values will be ignored. |
void |
setColumnName(String pColumnName)
Sets the column name to use in the compare. |
void |
setIgnoreNull(boolean pIgnoreNull)
Sets if null values will be ignored. |
void |
setValue(Object pValue)
Sets the value to use in the compare. |
Methods inherited from class javax.rad.model.condition.BaseCondition |
---|
and, or, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompareCondition()
public CompareCondition(String pColumnName, Object pValue)
pColumnName
- the column name to use for the compare operationpValue
- the value to use in the compare.public CompareCondition(String pColumnName, Object pValue, boolean pIgnoreNull)
pColumnName
- the column name to use for the compare operationpValue
- the value to use in the compare.pIgnoreNull
- determines if null values should be ignored.public CompareCondition(IDataRow pDataRow, String pColumnName)
pDataRow
- the IDataRow to use for the compare.pColumnName
- the column name to use for the compare operationpublic CompareCondition(IDataRow pDataRow, String pColumnName, boolean pIgnoreNull)
pDataRow
- the IDataRow to use for the compare.pColumnName
- the column name to use for the compare operationpIgnoreNull
- determines if null values should be ignored.public CompareCondition(IDataRow pDataRow, String pDataRowColumnName, String pColumnName)
pDataRow
- the IDataRow to use for the compare.pDataRowColumnName
- the column name in the IDataRow to use for the compare.pColumnName
- the column name to use for the compare operationpublic CompareCondition(IDataRow pDataRow, String pDataRowColumnName, String pColumnName, boolean pIgnoreNull)
pDataRow
- the IDataRow to use for the compare.pDataRowColumnName
- the column name in the IDataRow to use for the compare.pColumnName
- the column name to use for the compare operationpIgnoreNull
- determines if null values should be ignored.Method Detail |
---|
protected abstract boolean isFulfilled(IDataType pDataType, Object pValue)
ICondition
, under usage of
the specified IDataType
.
pDataType
- the IDataType
to use for the compare operationpValue
- the value to check against.
ICondition
is fulfilled.public boolean isFulfilled(IDataRow pDataRow)
ICondition
is fulfilled.
pDataRow
- the IDataRow
to use for the check of this ICondition
.
ICondition
is fulfilled.public ICondition clone()
clone
in interface ICondition
clone
in class BaseCondition
public String getColumnName()
public void setColumnName(String pColumnName)
pColumnName
- the column name to use in the compare.public IDataRow getDataRow()
public String getDataRowColumnName()
public Object getValue()
public void setValue(Object pValue)
pValue
- the value to use in the compare.public boolean isIgnoreNull()
public void setIgnoreNull(boolean pIgnoreNull)
pIgnoreNull
- true, if null values will be ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |