public abstract class Table extends java.lang.Object implements java.lang.Comparable<Table>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
CVS ID
|
| Constructor and Description |
|---|
Table(java.lang.String name)
Create an instance representing a table by name.
|
Table(java.lang.String name,
java.lang.String alias)
Create an instance representing a table by name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Table table)
Compare this table to another for equality.
|
boolean |
equals(java.lang.Object o)
Compare this table to another object.
|
java.lang.String |
getAlias()
Get the alias for use with this table (by default same as the table name)
|
java.lang.String |
getCatalog()
Get the catalog (database) value for use with this table (empty by
default)
|
int |
hashCode()
Return the hashCode for the table.
|
void |
setCatalog(java.lang.String catalog)
Set a catalog (database) value for use with this table
|
java.lang.String |
toString()
Return the name of this table.
|
public static final java.lang.String ID
public Table(java.lang.String name)
name - This could be case-sensitive, depending on the database.public Table(java.lang.String name,
java.lang.String alias)
name - This could be case-sensitive, depending on the database.alias - Typically shortened name for a tablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - Any objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Table table)
compareTo in interface java.lang.Comparable<Table>table - Another tablepublic final java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAlias()
public java.lang.String getCatalog()
public void setCatalog(java.lang.String catalog)
catalog - nameCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona