Class Column

    • Field Detail

      • table

        private Table table
      • columnName

        private java.lang.String columnName
      • commentText

        private java.lang.String commentText
      • tableDelimiter

        private java.lang.String tableDelimiter
    • Constructor Detail

      • Column

        public Column()
      • Column

        public Column​(Table table,
                      java.lang.String columnName)
      • Column

        public Column​(java.util.List<java.lang.String> nameParts)
      • Column

        public Column​(java.util.List<java.lang.String> nameParts,
                      java.util.List<java.lang.String> delimiters)
      • Column

        public Column​(java.lang.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.
      • setTable

        public void setTable​(Table table)
      • getColumnName

        public java.lang.String getColumnName()
      • setColumnName

        public void setColumnName​(java.lang.String string)
      • getTableDelimiter

        public java.lang.String getTableDelimiter()
      • setTableDelimiter

        public void setTableDelimiter​(java.lang.String tableDelimiter)
      • getFullyQualifiedName

        public java.lang.String getFullyQualifiedName​(boolean aliases)
      • getName

        @Deprecated
        public java.lang.String getName​(boolean aliases)
        Deprecated.
      • toString

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

        public Column withColumnName​(java.lang.String columnName)
      • withCommentText

        public Column withCommentText​(java.lang.String commentText)
      • withTableDelimiter

        public Column withTableDelimiter​(java.lang.String delimiter)
      • getCommentText

        public java.lang.String getCommentText()
      • setCommentText

        public void setCommentText​(java.lang.String commentText)