FileDocCategorySizeDatePackage
ConstraintOperation.javaAPI DocGlassfish v2 API3040Fri May 04 22:35:14 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.sql.constraint

ConstraintOperation

public class ConstraintOperation extends ConstraintNode

Fields Summary
public static final int
PROP_ORDERBY
public static final int
PROP_ORDERBY_DESC
public int
operation
Constructors Summary
public ConstraintOperation()


      
        super();
    
public ConstraintOperation(int operation)

        super();

        this.operation = operation;
    
Methods Summary
public inthasProperty(int propertyKey)

        // RESOLVE:  We should probably get rid of this and standardize on the
        // SqlRetrieveDesc.GetOperationInfo method.
        if (propertyKey == PROP_ORDERBY) {
            if (operation == ActionDesc.OP_ORDERBY
                    || operation == ActionDesc.OP_ORDERBY_DESC) {
                return ConstraintNode.PROP_TRUE;
            } else {
                return ConstraintNode.PROP_FALSE;
            }
        }
        return ConstraintNode.PROP_UNKNOWN;