|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.common.sql.schema.AliasedDatabaseTable
An AliasedDatabaseTable
represents a database table with an
alias name. Example:
SELECT x.price FROM item x
In this case, the item
table has an alias named x
.
Field Summary | |
private java.lang.String |
alias
Alias name or null if no alias is defined. |
private static long |
serialVersionUID
|
private DatabaseTable |
table
Database table. |
Constructor Summary | |
AliasedDatabaseTable(DatabaseTable table,
java.lang.String alias)
Creates a new AliasedDatabaseTable instance. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Two AliasedDatabaseTable are considered equal if they
represent the same table and have the same alias. |
java.lang.String |
getAlias()
Gets the alias name. |
DatabaseTable |
getTable()
Returns the DatabaseTable object corresponding to this
database. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private DatabaseTable table
private java.lang.String alias
null
if no alias is defined.
Constructor Detail |
public AliasedDatabaseTable(DatabaseTable table, java.lang.String alias)
AliasedDatabaseTable
instance.
table
- a DatabaseTable
valuealias
- the alias name, null
if no alias is definedMethod Detail |
public DatabaseTable getTable()
DatabaseTable
object corresponding to this
database.
DatabaseTable
valuepublic java.lang.String getAlias()
null
if no alias is set.public boolean equals(java.lang.Object other)
AliasedDatabaseTable
are considered equal if they
represent the same table and have the same alias.
other
- the object to compare with
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |