|
||||||||||
| 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 CompareConditions.
e.g. Equals, ...
| Constructor Summary | |
|---|---|
CompareCondition()
Constructs the base for a CompareCondition. |
|
CompareCondition(IDataRow pDataRow,
java.lang.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,
java.lang.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,
java.lang.String pDataRowColumnName,
java.lang.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,
java.lang.String pDataRowColumnName,
java.lang.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(java.lang.String pColumnName,
java.lang.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(java.lang.String pColumnName,
java.lang.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. |
java.lang.String |
getColumnName()
Returns the column name to use in the compare. |
IDataRow |
getDataRow()
Returns the data row to use in the compare. |
java.lang.String |
getDataRowColumnName()
Returns the data row column name to use in the compare. |
java.lang.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,
java.lang.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(java.lang.String pColumnName)
Sets the column name to use in the compare. |
void |
setIgnoreNull(boolean pIgnoreNull)
Sets if null values will be ignored. |
void |
setValue(java.lang.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(java.lang.String pColumnName,
java.lang.Object pValue)
pColumnName - the column name to use for the compare operationpValue - the value to use in the compare.
public CompareCondition(java.lang.String pColumnName,
java.lang.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,
java.lang.String pColumnName)
pDataRow - the IDataRow to use for the compare.pColumnName - the column name to use for the compare operation
public CompareCondition(IDataRow pDataRow,
java.lang.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,
java.lang.String pDataRowColumnName,
java.lang.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 operation
public CompareCondition(IDataRow pDataRow,
java.lang.String pDataRowColumnName,
java.lang.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,
java.lang.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 IConditionclone in class BaseConditionpublic java.lang.String getColumnName()
public void setColumnName(java.lang.String pColumnName)
pColumnName - the column name to use in the compare.public IDataRow getDataRow()
public java.lang.String getDataRowColumnName()
public java.lang.Object getValue()
public void setValue(java.lang.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 | |||||||||