Class Schema


  • public class Schema
    extends java.lang.Object
    Schema contains a description of the database. This description is a set of TierDefinitions and a set of Constraints of the allowed relationship between tiers and the items within the tiers. Discussion: where to put the tier information? Should the schema contain only TierDefinitions that per se do not contain data, or tiers, that may contain items? With TierDefinitions in the Schema, a schema may contain information not present in actual tiers (e.g. because a given tier is not present in a given annotation.
    Author:
    draxler To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
    • Constructor Detail

      • Schema

        public Schema()
    • Method Detail

      • getTierDefinitions

        public java.util.Set<LevelDefinition> getTierDefinitions()
      • setTierDefinitions

        public void setTierDefinitions​(java.util.Set<LevelDefinition> tierDefinitions)
      • addLevelDefinition

        public void addLevelDefinition​(LevelDefinition tierDefinition)
      • getLevelDefinitionByName

        public LevelDefinition getLevelDefinitionByName​(java.lang.String tierName)
      • getConstraints

        public java.util.Set<LinkDefinition> getConstraints()
      • getRootTiers

        public java.util.Set<LinkDefinition> getRootTiers()
        getRootTiers() returns a set of LinkDefinitions of type INIT
        Returns:
        set of link definitions
      • getSubTiers

        public java.util.List<LinkDefinition> getSubTiers​(LinkDefinition linkDef)
        getSubTiers() returns the list of linked (i.e. subtier) tiers.
        Parameters:
        linkDef - link definition
        Returns:
        list of link definitions
      • toString

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