Class SQLOrderBy
- java.lang.Object
-
- net.ontopia.persistence.query.sql.SQLOrderBy
-
public class SQLOrderBy extends 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
Fields Modifier and Type Field Description protected SQLAggregateIFaggregatestatic intASCENDINGstatic intDESCENDINGprotected intorderprotected SQLValueIFvalue
-
Constructor Summary
Constructors Constructor Description SQLOrderBy(SQLAggregateIF aggregate, int order)SQLOrderBy(SQLValueIF value, int order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLAggregateIFgetAggregate()intgetOrder()SQLValueIFgetValue()booleanisAggregate()voidsetAggregate(SQLAggregateIF aggregate)voidsetValue(SQLValueIF value)StringtoString()
-
-
-
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)
-
-