}
public String getConstraint(Constraint pConstraint) {
if (pConstraint instanceof CombinedConstraint) {
CombinedConstraint cc = (CombinedConstraint) pConstraint;
Statement st = cc.getConstrainedStatement();
if (st instanceof SelectStatement) {
SelectStatementMetaData selectStatementMetaData = new SelectStatementMetaData((SelectStatement) st);
return getCombinedConstraint(selectStatementMetaData, cc);
} else {
return getCombinedConstraint(null, cc);
}
} else if (pConstraint instanceof BooleanConstraint) {
BooleanConstraint bc = (BooleanConstraint) pConstraint;
Statement st = bc.getConstrainedStatement();
if (st instanceof SelectStatement) {
SelectStatementMetaData selectStatementMetaData = new SelectStatementMetaData((SelectStatement) st);
return getBooleanConstraint(selectStatementMetaData, bc);
} else {
return getBooleanConstraint(null, bc);