Class SQLTable


  • public class SQLTable
    extends java.lang.Object
    Representation of a table reference in an SQL statement. Has a table, and an alias.
    • Constructor Detail

      • SQLTable

        SQLTable​(SQLStatement stmt,
                 Table tbl,
                 DatastoreIdentifier alias,
                 java.lang.String grpName)
        Constructor for a table involved in an SQLStatement. Package permission so that it can't be created from other packages - i.e to restrict construction to SQLStatement
        Parameters:
        stmt - Statement that this table relates to
        tbl - The underlying table
        alias - Alias to use for this table in the SQLStatement
        grpName - Name of the group this table is in
    • Method Detail

      • getTable

        public Table getTable()
      • getGroupName

        public java.lang.String getGroupName()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Stringifier method to return this "table" in a form for use in SQL statements. This can be of the following form(s)
         MYTABLE MYALIAS
         MYTABLE
         
        Overrides:
        toString in class java.lang.Object
        Returns:
        The String form for use