|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.sql.query.AbstractValue
public abstract class AbstractValue
An abstract representation of an item that can be present in the SELECT, GROUP BY, or ORDER BY sections of an SQL query, as well as in a constraint.
| Field Summary | |
|---|---|
static int |
EQUAL
Describes two AbstractValues as being equal. |
static int |
GREATER
Describes one AbstractValue as being greater than another AbstractValue. |
static int |
INCOMPARABLE
Describes one AbstractValue as being incomparable to another AbstractValue. |
static int |
LESS
Describes one AbstractValue as being less than another AbstractValue. |
static int |
NOT_EQUAL
Describes one AbstractValue as being definitely not equal to another AbstractValue. |
| Constructor Summary | |
|---|---|
AbstractValue()
|
|
| Method Summary | |
|---|---|
abstract int |
compare(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare the value of this AbstractValue with another. |
abstract boolean |
equals(java.lang.Object obj)
Overrides Object.equals(). |
abstract java.lang.String |
getSQLString()
Returns a String representation of this AbstractValue object, suitable for forming part of an SQL query. |
boolean |
greaterOrEqual(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare this value of this AbstractValue with another to see if it is more or equal. |
boolean |
greaterThan(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare this value of this AbstractValue with another to see if it is more. |
abstract int |
hashCode()
Overrides Object.hashcode(). |
abstract boolean |
isAggregate()
Returns true if this value is an aggregate function. |
boolean |
lessOrEqual(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare the value of this AbstractValue with another to see if it is less or equal. |
boolean |
lessThan(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare the value of this AbstractValue with another to see if it is less. |
boolean |
notEqualTo(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare this value of this AbstractValue with another to see if it is not equal. |
boolean |
valueEquals(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare the value of this AbstractValue with another to see if it is equal. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EQUAL
public static final int LESS
public static final int GREATER
public static final int NOT_EQUAL
public static final int INCOMPARABLE
| Constructor Detail |
|---|
public AbstractValue()
| Method Detail |
|---|
public abstract java.lang.String getSQLString()
getSQLString in interface SQLStringablepublic abstract boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - an Object to compare to
public abstract int hashCode()
hashCode in class java.lang.Object
public abstract int compare(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
obj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public boolean lessThan(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
obj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public boolean greaterThan(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
obj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public boolean notEqualTo(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
obj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public boolean greaterOrEqual(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
obj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public boolean lessOrEqual(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
obj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public boolean valueEquals(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
obj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public abstract boolean isAggregate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||