net.sf.jsqlparser.schema
Class Column

java.lang.Object
  extended by net.sf.jsqlparser.schema.Column
All Implemented Interfaces:
Expression, ColumnReference

public class Column
extends java.lang.Object
implements Expression, ColumnReference

A column. It can have the table name it belongs to.


Field Summary
private  java.lang.String columnName
           
private  Table table
           
 
Constructor Summary
Column()
           
Column(Table table, java.lang.String columnName)
           
 
Method Summary
 void accept(ColumnReferenceVisitor columnReferenceVisitor)
           
 void accept(ExpressionVisitor expressionVisitor)
           
 java.lang.String getColumnName()
           
 Table getTable()
           
 java.lang.String getWholeColumnName()
           
 void setColumnName(java.lang.String string)
           
 void setTable(Table table)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

columnName

private java.lang.String columnName

table

private Table table
Constructor Detail

Column

public Column()

Column

public Column(Table table,
              java.lang.String columnName)
Method Detail

getColumnName

public java.lang.String getColumnName()

getTable

public Table getTable()

setColumnName

public void setColumnName(java.lang.String string)

setTable

public void setTable(Table table)

getWholeColumnName

public java.lang.String getWholeColumnName()
Returns:
the name of the column, prefixed with 'tableName' and '.'

accept

public void accept(ExpressionVisitor expressionVisitor)
Specified by:
accept in interface Expression

accept

public void accept(ColumnReferenceVisitor columnReferenceVisitor)
Specified by:
accept in interface ColumnReference

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object