Class SQLTableGroup


  • public class SQLTableGroup
    extends java.lang.Object
    Group of tables in an SQL statement. Tables are grouped to represent a particular object, so equates to an inheritance tree. In this way, if we have a class B which extends class A and they have tables B and A respectively then tables B and A will be in the same group when related to that object.
    • Field Detail

      • name

        java.lang.String name
        Name of this group.
      • joinType

        SQLJoin.JoinType joinType
        Type of join to this group (from the candidate group presumably).
      • tablesByAlias

        java.util.Map<java.lang.String,​SQLTable> tablesByAlias
        Map of tables in this group, keyed by their alias.
    • Constructor Detail

      • SQLTableGroup

        SQLTableGroup​(java.lang.String name,
                      SQLJoin.JoinType joinType)
        Constructor for a group with this name.
        Parameters:
        name - Name of the group
    • Method Detail

      • getName

        public java.lang.String getName()
      • addTable

        public void addTable​(SQLTable tbl)
      • getNumberOfTables

        public int getNumberOfTables()
      • getTables

        public SQLTable[] getTables()
      • toString

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