|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.sql.query.AbstractValue
org.intermine.sql.query.Field
public class Field
A representation of a field in a table.
| Field Summary | |
|---|---|
protected java.lang.String |
name
|
protected AbstractTable |
table
|
| Fields inherited from class org.intermine.sql.query.AbstractValue |
|---|
EQUAL, GREATER, INCOMPARABLE, LESS, NOT_EQUAL |
| Constructor Summary | |
|---|---|
Field(java.lang.String name,
AbstractTable table)
Constructor for this Field object. |
|
| Method Summary | |
|---|---|
int |
compare(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
Compare this field to another AbstractValue. |
boolean |
equals(java.lang.Object obj)
Overrides Object.equals(). |
boolean |
equalsTableOnlyAlias(AbstractValue obj)
Compare this Field to another AbstractValue, including only the table alias. |
java.lang.String |
getName()
Returns the name of the field. |
java.lang.String |
getSQLString()
Returns a String representation of this Field object, suitable for forming part of an SQL query. |
AbstractTable |
getTable()
Returns the table of this field. |
int |
hashCode()
Overrides Object.hashcode(). |
boolean |
isAggregate()
Returns true if this value is an aggregate function. |
| Methods inherited from class org.intermine.sql.query.AbstractValue |
|---|
greaterOrEqual, greaterThan, lessOrEqual, lessThan, notEqualTo, valueEquals |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected AbstractTable table
| Constructor Detail |
|---|
public Field(java.lang.String name,
AbstractTable table)
name - the name of the field, as the database knows ittable - the name of the AbstractTable to which the field belongs, as the database
knows it| Method Detail |
|---|
public java.lang.String getSQLString()
getSQLString in interface SQLStringablegetSQLString in class AbstractValuepublic boolean equals(java.lang.Object obj)
equals in class AbstractValueobj - an Object to compare to
public int hashCode()
hashCode in class AbstractValuepublic boolean equalsTableOnlyAlias(AbstractValue obj)
obj - an AbstractField to compare to
public AbstractTable getTable()
public java.lang.String getName()
public int compare(AbstractValue obj,
java.util.Map<AbstractTable,AbstractTable> tableMap,
java.util.Map<AbstractTable,AbstractTable> reverseTableMap)
compare in class AbstractValueobj - an AbstractValue to compare totableMap - a mapping between tablenames of the two elementsreverseTableMap - a reverse of tableMap
public boolean isAggregate()
isAggregate in class AbstractValue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||