|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICondition
The ICondition specifies the interface for all Condition's.
It also supports combine ICondition's to handle grouped logical operations.
like "a AND (b or c)".
Example:
... in Memory
ICondition filter = new Equals("ID", 15).and(new Equals("NAME", "a").or(new Equals("NAME", "b")));
System.out.println(new SQLSupport(filter) + "= " + filter.isFulfilled(dbMemDataBook.getRow(0)));
... with a RemoteDataBook e.g. for Database
DataRow drFilter = dbStorageDataBook.createEmptyRow();
drFilter.setDataCellValue("ADRESSE", "z*");
drFilter.setDataCellValue("PLZ", "1010");
ICondtion cFilter = new LikeIgnoreCase(drFilter, "ADRESSE").and(new Equals(drFilter, "PLZ"));
dbStorageDataBook.setFilter(filter);
IDataBook,
IDataRow| Method Summary | |
|---|---|
And |
and(ICondition pCondition)
It connects with an logic AND the specified ICondition. |
ICondition |
clone()
Return a clone of the specific ICondition. |
boolean |
isFulfilled(IDataRow pDataRow)
Returns true, if the ICondition is fulfilled. |
Or |
or(ICondition pCondition)
It connects with an logic OR the specified ICondition. |
| Method Detail |
|---|
boolean isFulfilled(IDataRow pDataRow)
ICondition is fulfilled.
pDataRow - the IDataRow to use for the check of this ICondition.
ICondition is fulfilled.And and(ICondition pCondition)
ICondition.
pCondition - the ICondition to add
ICondition itself as result.Or or(ICondition pCondition)
ICondition.
pCondition - the ICondition to add
ICondition itself as result.ICondition clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||