|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.text.SqlMatchRuleVisitor
public class SqlMatchRuleVisitor
Walks over a MatchRule to create a SQL WHERE clause out of it.
| Constructor Summary | |
|---|---|
SqlMatchRuleVisitor()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
java.lang.String |
asSqlClause(MatchRule matchRule)
Converts the given match rule into a SQL conditional clause. |
void |
attribute(java.lang.String name,
int compareOperator,
java.lang.String[] values,
boolean andOperator,
boolean notOperator)
This method will be called for each attribute. |
void |
endGroup()
This method will be called for each group end occurence. |
void |
startGroup(boolean andOperator,
boolean notOperator)
This method will be called for each start of a new group. |
void |
walkThroughFinished()
This method will be called when the MatchRule has finished to walk through its elements. |
void |
walkThroughInit()
This method will be called right before the MatchRule walks through its elements. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlMatchRuleVisitor()
| Method Detail |
|---|
public void walkThroughInit()
walkThroughInit in interface MatchRuleVisitorpublic void walkThroughFinished()
walkThroughFinished in interface MatchRuleVisitor
public void startGroup(boolean andOperator,
boolean notOperator)
startGroup in interface MatchRuleVisitorandOperator - If true it is an AND combination otherwise it is ORnotOperator - Is only true for a NOT operationpublic void endGroup()
endGroup in interface MatchRuleVisitor
public void attribute(java.lang.String name,
int compareOperator,
java.lang.String[] values,
boolean andOperator,
boolean notOperator)
attribute in interface MatchRuleVisitorname - The attribute's namecompareOperator - The operator used to compare valuesvalues - All values the attrubute my match (implicit OR combination !)andOperator - If true it is an AND combination otherwise it is ORnotOperator - Is only true for a NOT operationpublic java.lang.String asSqlClause(MatchRule matchRule)
matchRule - The rule to be converted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||