use of com.sun.jdo.spi.persistence.support.sqlstore.sql.constraint.ConstraintNode in project Payara by payara.
the class SelectStatement method processRootConstraint.
/**
* Processes Order By constraints and calls the super class
* method for all other constrains.
*/
protected void processRootConstraint(ConstraintOperation opNode, List stack, StringBuffer whereText) {
int op = opNode.operation;
int opInfo = operationFormat(op);
if ((opInfo & OP_ORDERBY_MASK) > 0) {
stack.remove(stack.size() - 1);
ConstraintNode node = (ConstraintNode) stack.get(stack.size() - 1);
if (!(node instanceof ConstraintField)) {
throw new JDOFatalInternalException(I18NHelper.getMessage(messages, // NOI18N
"core.constraint.needfieldnode"));
} else {
processOrderByField((ConstraintFieldDesc) node, op);
stack.remove(stack.size() - 1);
}
} else {
super.processRootConstraint(opNode, stack, whereText);
}
}
Aggregations