Class Table


  • public final class Table
    extends DiagramNode
    Represents a table node.
    Since:
    1.0.0
    • Method Detail

      • getTooltip

        public java.lang.String getTooltip()
        Returns the tool tip of the current external table node.
        See Also:
        isExternalTable()
      • getParent

        public DatasetGroup getParent()
        Returns the direct parent group node of the current table node; returns null if the current table node is external.
        Overrides:
        getParent in class DiagramNode
      • getChildren

        public java.util.List<DiagramNode> getChildren()
        Returns an unmodifiable list of direct child nodes inside the current table node.
      • isTable

        public boolean isTable()
        Description copied from class: DiagramNode
        Returns true if the current node is a table node.
        Overrides:
        isTable in class DiagramNode
      • addGroup

        public TableGroup addGroup​(java.lang.String name)
        Adds a child group node inside the current table node.
        Parameters:
        name - a specific name for the child group node.
        Returns:
        a table group
        See Also:
        TableGroup
      • addField

        public TableField addField​(java.lang.String name)
        Adds a child field node inside the current table node.
        Parameters:
        name - a specific the name f the child field node.
        Returns:
        a table field
        See Also:
        TableField
      • addPrimaryKeyField

        public TableField addPrimaryKeyField​(java.lang.String name)
        Adds a child field node as primary key inside the current table node.
        Parameters:
        name - a specific name for the child field node.
        Returns:
        a table field
        See Also:
        TableField