Class SQLTableGroup

java.lang.Object
org.datanucleus.store.rdbms.sql.SQLTableGroup

public class SQLTableGroup extends 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 Details

    • name

      String name
      Name of this group.
    • joinType

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

      Map<String,SQLTable> tablesByAlias
      Map of tables in this group, keyed by their alias.
  • Constructor Details

    • SQLTableGroup

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

    • getName

      public String getName()
    • getJoinType

      public SQLJoin.JoinType getJoinType()
    • addTable

      public void addTable(SQLTable tbl)
    • getNumberOfTables

      public int getNumberOfTables()
    • getTables

      public SQLTable[] getTables()
    • toString

      public String toString()
      Overrides:
      toString in class Object