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 SQLAggregateIF
aggregate
static int
ASCENDING
static int
DESCENDING
protected int
order
protected SQLValueIF
value
-
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 SQLAggregateIF
getAggregate()
int
getOrder()
SQLValueIF
getValue()
boolean
isAggregate()
void
setAggregate(SQLAggregateIF aggregate)
void
setValue(SQLValueIF value)
String
toString()
-
-
-
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)
-
-