Package org.intermine.sql.query
Class OrderDescending
- java.lang.Object
-
- org.intermine.sql.query.AbstractValue
-
- org.intermine.sql.query.OrderDescending
-
- All Implemented Interfaces:
SQLStringable
public class OrderDescending extends AbstractValue
A representation of an item that can be present in the ORDER BY section of an SQL query, but ordered descending..- Author:
- Matthew Wakeling
-
-
Field Summary
-
Fields inherited from class org.intermine.sql.query.AbstractValue
EQUAL, GREATER, INCOMPARABLE, LESS, NOT_EQUAL
-
-
Constructor Summary
Constructors Constructor Description OrderDescending(AbstractValue value)
Constructor for OrderDescending.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(AbstractValue obj, java.util.Map<AbstractTable,AbstractTable> tableMap, java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare the value of this AbstractValue with another.boolean
equals(java.lang.Object o)
Overrides Object.equals().java.lang.String
getSQLString()
Returns a String representation of this AbstractValue object, suitable for forming part of an SQL query.AbstractValue
getValue()
Returns the value.int
hashCode()
Overrides Object.hashcode().boolean
isAggregate()
Returns true if this value is an aggregate function.java.lang.String
toString()
-
Methods inherited from class org.intermine.sql.query.AbstractValue
greaterOrEqual, greaterThan, lessOrEqual, lessThan, notEqualTo, valueEquals
-
-
-
-
Constructor Detail
-
OrderDescending
public OrderDescending(AbstractValue value)
Constructor for OrderDescending.- Parameters:
value
- an AbstractValue
-
-
Method Detail
-
getValue
public AbstractValue getValue()
Returns the value.- Returns:
- an AbstractValue
-
getSQLString
public java.lang.String getSQLString()
Returns a String representation of this AbstractValue object, suitable for forming part of an SQL query.- Specified by:
getSQLString
in interfaceSQLStringable
- Specified by:
getSQLString
in classAbstractValue
- Returns:
- the String representation
-
equals
public boolean equals(java.lang.Object o)
Overrides Object.equals().- Specified by:
equals
in classAbstractValue
- Parameters:
o
- an Object to compare to- Returns:
- true if obj is equal
-
hashCode
public int hashCode()
Overrides Object.hashcode().- Specified by:
hashCode
in classAbstractValue
- Returns:
- an arbitrary integer based on the contents of the object
-
compare
public int compare(AbstractValue obj, java.util.Map<AbstractTable,AbstractTable> tableMap, java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare the value of this AbstractValue with another.- Specified by:
compare
in classAbstractValue
- Parameters:
obj
- an AbstractValue to compare totableMap
- a mapping between tablenames of the two elementsreverseTableMap
- a reverse of tableMap- Returns:
- EQUAL, LESS, GREATER, NOT_EQUAL, or INCOMPARABLE
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isAggregate
public boolean isAggregate()
Returns true if this value is an aggregate function.- Specified by:
isAggregate
in classAbstractValue
- Returns:
- a boolean
-
-