|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.sql.query.AbstractTable
org.intermine.sql.query.Table
public class Table
A representation of a table that can be present in the FROM section of an SQL query.
| Field Summary | |
|---|---|
protected java.lang.String |
name
|
| Fields inherited from class org.intermine.sql.query.AbstractTable |
|---|
alias |
| Constructor Summary | |
|---|---|
Table(java.lang.String name)
Constructor for this Table object, without an alias. |
|
Table(java.lang.String name,
java.lang.String alias)
Constructor for this Table object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Overrides Object.equals(). |
boolean |
equalsIgnoreAlias(AbstractTable obj)
Compare this Table to another AbstractTable, ignoring alias. |
java.lang.String |
getName()
Returns the name of the table |
java.lang.String |
getSQLString()
Returns a String representation of this Table object, suitable for forming part of an SQL query. |
int |
hashCode()
Overrides Object.hashcode(). |
java.lang.String |
toString()
A toString method, which helps us when debugging. |
| Methods inherited from class org.intermine.sql.query.AbstractTable |
|---|
equalsOnlyAlias, getAlias, setAlias |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
| Constructor Detail |
|---|
public Table(java.lang.String name,
java.lang.String alias)
name - the name of the table, as the database knows italias - an arbitrary name that the table has been renamed to for the rest of the querypublic Table(java.lang.String name)
name - the name of the table, as the database knows it. This name is also used in
the rest of the query.| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getSQLString()
getSQLString in interface SQLStringablegetSQLString in class AbstractTablepublic boolean equals(java.lang.Object obj)
equals in class AbstractTableobj - an Object to compare to
public int hashCode()
hashCode in class AbstractTablepublic boolean equalsIgnoreAlias(AbstractTable obj)
equalsIgnoreAlias in class AbstractTableobj - an AbstractTable to compare to
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||