Class DefaultDescriptor

    • Field Detail

      • columnNumber

        private final int columnNumber
      • defaultUUID

        private final UUID defaultUUID
      • tableUUID

        private final UUID tableUUID
    • Constructor Detail

      • DefaultDescriptor

        public DefaultDescriptor​(DataDictionary dataDictionary,
                                 UUID defaultUUID,
                                 UUID tableUUID,
                                 int columnNumber)
        Constructor for a DefaultDescriptor
        Parameters:
        dataDictionary - the DD
        defaultUUID - The UUID of the default
        tableUUID - The UUID of the table
        columnNumber - The column number of the column that the default is for
    • Method Detail

      • getTableUUID

        public UUID getTableUUID()
        Get the UUID of the table.
        Returns:
        The UUID of the table.
      • getColumnNumber

        public int getColumnNumber()
        Get the column number of the column.
        Returns:
        The column number of the column.
      • toString

        public java.lang.String toString()
        Convert the DefaultDescriptor to a String.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A String representation of this DefaultDescriptor
      • getObjectName

        public java.lang.String getObjectName()
        Return the name of this Provider. (Useful for errors.)
        Specified by:
        getObjectName in interface Dependable
        Returns:
        String The name of this provider.
      • getObjectID

        public UUID getObjectID()
        Get the provider's UUID
        Specified by:
        getObjectID in interface Dependable
        Returns:
        The provider's UUID
      • getClassType

        public java.lang.String getClassType()
        Get the provider's type.
        Specified by:
        getClassType in interface Dependable
        Returns:
        char The provider's type.
      • isValid

        public boolean isValid()
        Check that all of the dependent's dependencies are valid.
        Specified by:
        isValid in interface Dependent
        Returns:
        true if the dependent is currently valid
      • makeInvalid

        public void makeInvalid​(int action,
                                LanguageConnectionContext lcc)
                         throws StandardException
        Mark the dependent as invalid (due to at least one of its dependencies being invalid). Always an error for a constraint -- should never have gotten here.
        Specified by:
        makeInvalid in interface Dependent
        Parameters:
        action - The action causing the invalidation
        lcc - The LanguageConnectionContext
        Throws:
        StandardException - thrown if called in sanity mode