Class Column

    • Constructor Detail

      • Column

        public Column()
      • Column

        public Column​(Table table,
                      String columnName)
      • Column

        public Column​(List<String> nameParts)
      • Column

        public Column​(String columnName)
    • Method Detail

      • getTable

        public Table getTable()
        Retrieve the information regarding the Table this Column 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
         
        Given the Column called x, this method would return null, and not the info about the table Foo. On the other hand, consider:
          SELECT t.x FROM Foo t
         
        Here, we will get a Table object for a table called t. But because the inference is local, such object will not know that t is just an alias for Foo.
        Returns:
        an instance of Table representing the table this column does belong to, if it can be inferred. Can be null.
      • 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​(boolean aliases)
      • toString

        public String toString()
        Overrides:
        toString in class net.sf.jsqlparser.parser.ASTNodeAccessImpl
      • withColumnName

        public Column withColumnName​(String columnName)
      • withCommentText

        public Column withCommentText​(String commentText)
      • withTableDelimiter

        public Column withTableDelimiter​(String delimiter)
      • getCommentText

        public String getCommentText()
      • setCommentText

        public void setCommentText​(String commentText)