net.ontopia.persistence.query.jdo
Class JDOOrderBy

java.lang.Object
  extended by net.ontopia.persistence.query.jdo.JDOOrderBy

public class JDOOrderBy
extends java.lang.Object

INTERNAL: JDOQL order by statement. The order-by instance wraps a JDOValueIF or JDOAggregateIF instance and specifies whether the ordering should be ascending or descending.


Field Summary
protected  JDOAggregateIF aggregate
           
static int ASCENDING
           
static int DESCENDING
           
protected  int order
           
protected  JDOValueIF value
           
 
Constructor Summary
JDOOrderBy(JDOAggregateIF aggregate, int order)
           
JDOOrderBy(JDOValueIF value, int order)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 JDOAggregateIF getAggregate()
           
 int getOrder()
           
 JDOValueIF getValue()
           
 int hashCode()
           
 boolean isAggregate()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ASCENDING

public static final int ASCENDING
See Also:
Constant Field Values

DESCENDING

public static final int DESCENDING
See Also:
Constant Field Values

aggregate

protected JDOAggregateIF aggregate

value

protected JDOValueIF value

order

protected int order
Constructor Detail

JDOOrderBy

public JDOOrderBy(JDOValueIF value,
                  int order)

JDOOrderBy

public JDOOrderBy(JDOAggregateIF aggregate,
                  int order)
Method Detail

getOrder

public int getOrder()

isAggregate

public boolean isAggregate()

getAggregate

public JDOAggregateIF getAggregate()

getValue

public JDOValueIF getValue()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.