net.sf.jsqlparser.schema
Class Column
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
columnName
private java.lang.String columnName
table
private Table table
Column
public Column()
Column
public Column(Table table,
java.lang.String columnName)
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