- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.schema.Column
-
- All Implemented Interfaces:
Serializable
,Expression
,Model
,net.sf.jsqlparser.parser.ASTNodeAccess
,MultiPartName
public class Column extends net.sf.jsqlparser.parser.ASTNodeAccessImpl implements Expression, MultiPartName
A column. It can have the table name it belongs to.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface net.sf.jsqlparser.schema.MultiPartName
LEADING_TRAILING_QUOTES_PATTERN
-
-
Method Summary
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
appendTo, getASTNode, getParent, getParent, setASTNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.jsqlparser.expression.Expression
accept
-
-
-
-
Method Detail
-
getArrayConstructor
public ArrayConstructor getArrayConstructor()
-
setArrayConstructor
public Column setArrayConstructor(ArrayConstructor arrayConstructor)
-
getTable
public Table getTable()
Retrieve the information regarding theTable
thisColumn
does belong to, if any can be inferred.The inference is based only on local information, and not on the whole SQL command. For example, consider the following query:
SELECT x FROM Foo
Column
calledx
, this method would returnnull
, and not the info about the tableFoo
. On the other hand, consider:SELECT t.x FROM Foo t
Table
object for a table calledt
. But because the inference is local, such object will not know thatt
is just an alias forFoo
.- Returns:
- an instance of
Table
representing the table this column does belong to, if it can be inferred. Can benull
.
-
getTableName
public String getTableName()
-
getUnquotedTableName
public String getUnquotedTableName()
-
getSchemaName
public String getSchemaName()
-
getUnquotedSchemaName
public String getUnquotedSchemaName()
-
getCatalogName
public String getCatalogName()
-
getUnquotedCatalogName
public String getUnquotedCatalogName()
-
setTable
public void setTable(Table table)
-
getColumnName
public String getColumnName()
-
getUnquotedColumnName
public String getUnquotedColumnName()
-
setColumnName
public void setColumnName(String string)
-
getTableDelimiter
public String getTableDelimiter()
-
setTableDelimiter
public void setTableDelimiter(String tableDelimiter)
-
getFullyQualifiedName
public String getFullyQualifiedName()
- Specified by:
getFullyQualifiedName
in interfaceMultiPartName
-
getUnquotedName
public String getUnquotedName()
- Specified by:
getUnquotedName
in interfaceMultiPartName
-
getFullyQualifiedName
public String getFullyQualifiedName(boolean aliases)
-
getName
@Deprecated public String getName(boolean aliases)
Deprecated.
-
accept
public <T,S> T accept(ExpressionVisitor<T> expressionVisitor, S context)
- Specified by:
accept
in interfaceExpression
-
toString
public String toString()
- Overrides:
toString
in classnet.sf.jsqlparser.parser.ASTNodeAccessImpl
-
getCommentText
public String getCommentText()
-
setCommentText
public void setCommentText(String commentText)
-
-