- 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 theTablethisColumndoes 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:
Given theSELECT x FROM Foo
Columncalledx, this method would returnnull, and not the info about the tableFoo. On the other hand, consider:
Here, we will get aSELECT t.x FROM Foo t
Tableobject for a table calledt. But because the inference is local, such object will not know thattis just an alias forFoo.- Returns:
- an instance of
Tablerepresenting 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:
getFullyQualifiedNamein interfaceMultiPartName
-
getUnquotedName
public String getUnquotedName()
- Specified by:
getUnquotedNamein 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:
acceptin interfaceExpression
-
toString
public String toString()
- Overrides:
toStringin classnet.sf.jsqlparser.parser.ASTNodeAccessImpl
-
getCommentText
public String getCommentText()
-
setCommentText
public void setCommentText(String commentText)
-
-