net.sf.jsqlparser.schema
Class Table
java.lang.Object
net.sf.jsqlparser.schema.Table
- All Implemented Interfaces:
- FromItem
public class Table
- extends java.lang.Object
- implements FromItem
A table. It can have an alias and the schema name it belongs to.
Field Summary |
private java.lang.String |
alias
|
private java.lang.String |
name
|
private java.lang.String |
schemaName
|
Constructor Summary |
Table()
|
Table(java.lang.String schemaName,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
schemaName
private java.lang.String schemaName
name
private java.lang.String name
alias
private java.lang.String alias
Table
public Table()
Table
public Table(java.lang.String schemaName,
java.lang.String name)
getName
public java.lang.String getName()
getSchemaName
public java.lang.String getSchemaName()
setName
public void setName(java.lang.String string)
setSchemaName
public void setSchemaName(java.lang.String string)
getAlias
public java.lang.String getAlias()
- Specified by:
getAlias
in interface FromItem
setAlias
public void setAlias(java.lang.String string)
- Specified by:
setAlias
in interface FromItem
getWholeTableName
public java.lang.String getWholeTableName()
accept
public void accept(FromItemVisitor fromItemVisitor)
- Specified by:
accept
in interface FromItem
accept
public void accept(IntoTableVisitor intoTableVisitor)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object