buf.append( fieldName );
}
Map<String, String> parameters = null;
if ( constr instanceof HasParameterizedOperator ) {
HasParameterizedOperator hop = constr;
parameters = hop.getParameters();
}
if ( constr instanceof SingleFieldConstraintEBLeftSide ) {
SingleFieldConstraintEBLeftSide sfexp = (SingleFieldConstraintEBLeftSide) constr;
addFieldRestriction( buf,
sfexp.getConstraintValueType(),
sfexp.getExpressionLeftSide().getGenericType(),
sfexp.getOperator(),
parameters,
sfexp.getValue(),
sfexp.getExpressionValue() );
} else {
addFieldRestriction( buf,
constr.getConstraintValueType(),
constr.getFieldType(),
constr.getOperator(),
parameters,
constr.getValue(),
constr.getExpressionValue() );
}
// and now do the connectives.
if ( constr.getConnectives() != null ) {
for ( int j = 0; j < constr.getConnectives().length; j++ ) {
final ConnectiveConstraint conn = constr.getConnectives()[ j ];
parameters = null;
if ( conn instanceof HasParameterizedOperator ) {
HasParameterizedOperator hop = (HasParameterizedOperator) conn;
parameters = hop.getParameters();
}
addFieldRestriction( buf,
conn.getConstraintValueType(),
conn.getFieldType(),