public class ExpressionCondition extends java.lang.Object implements CustomCondition
Constructor and Description |
---|
ExpressionCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateCondition(MboRemote mbo,
java.lang.Object expression)
Evaluate the expression
|
java.lang.String |
toWhereClause(java.lang.Object expression,
MboSetRemote mboSet)
Convert to the where clause.
|
public boolean evaluateCondition(MboRemote mbo, java.lang.Object expression) throws MXException, java.rmi.RemoteException
evaluateCondition
in interface CustomCondition
mbo
- The mbo to be evaluatedexpression
- Any object of parameter that is understood by the condition class.
For data restrictions, this param is not used. To use it, some of the framework logic
must be overridden in the Mbo.MXException
java.rmi.RemoteException
SecurityRestrict
,
Condition
,
Mbo.evaluateRestriction(psdi.mbo.DataRestriction)
,
Mbo.evaluateCtrlConditions(java.util.HashSet)
,
Mbo.evaluateCondition(java.lang.String, boolean)
public java.lang.String toWhereClause(java.lang.Object expression, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
toWhereClause
in interface CustomCondition
expression
- expressionmboSet
- the MboSet that the expression will act as a QUALIFIED filterMXException
java.rmi.RemoteException
SecurityRestrict
,
Condition
,
MboSet.getQualifiedWhere()