net.ontopia.persistence.query.sql
Class SQLOrderBy

java.lang.Object
  extended by net.ontopia.persistence.query.sql.SQLOrderBy

public class SQLOrderBy
extends java.lang.Object

INTERNAL: SQL order by statement. The order-by instance wraps a SQLValueIF or SQLAggregateIF instance and specifies whether the ordering should be ascending or descending.


Field Summary
protected  SQLAggregateIF aggregate
           
static int ASCENDING
           
static int DESCENDING
           
protected  int order
           
protected  SQLValueIF value
           
 
Constructor Summary
SQLOrderBy(SQLAggregateIF aggregate, int order)
           
SQLOrderBy(SQLValueIF value, int order)
           
 
Method Summary
 SQLAggregateIF getAggregate()
           
 int getOrder()
           
 SQLValueIF getValue()
           
 boolean isAggregate()
           
 void setAggregate(SQLAggregateIF aggregate)
           
 void setValue(SQLValueIF value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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 SQLAggregateIF aggregate

value

protected SQLValueIF value

order

protected int order
Constructor Detail

SQLOrderBy

public SQLOrderBy(SQLValueIF value,
                  int order)

SQLOrderBy

public SQLOrderBy(SQLAggregateIF aggregate,
                  int order)
Method Detail

getOrder

public int getOrder()

isAggregate

public boolean isAggregate()

getAggregate

public SQLAggregateIF getAggregate()

setAggregate

public void setAggregate(SQLAggregateIF aggregate)

getValue

public SQLValueIF getValue()

setValue

public void setValue(SQLValueIF value)

toString

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


Copyright © 2000-2012 Ontopia.