net.sf.jsqlparser.schema
Class Table

java.lang.Object
  extended by 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)
           
 
Method Summary
 void accept(FromItemVisitor fromItemVisitor)
           
 void accept(IntoTableVisitor intoTableVisitor)
           
 java.lang.String getAlias()
           
 java.lang.String getName()
           
 java.lang.String getSchemaName()
           
 java.lang.String getWholeTableName()
           
 void setAlias(java.lang.String string)
           
 void setName(java.lang.String string)
           
 void setSchemaName(java.lang.String string)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

schemaName

private java.lang.String schemaName

name

private java.lang.String name

alias

private java.lang.String alias
Constructor Detail

Table

public Table()

Table

public Table(java.lang.String schemaName,
             java.lang.String name)
Method Detail

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