Class StandAloneDataTypeManager

    • Field Detail

      • name

        protected java.lang.String name
    • Constructor Detail

      • StandAloneDataTypeManager

        public StandAloneDataTypeManager​(java.lang.String rootName)
        Default constructor for temporary data-type manager.
        Parameters:
        rootName - Name of the root category.
      • StandAloneDataTypeManager

        protected StandAloneDataTypeManager​(ResourceFile packedDbfile,
                                            int openMode)
                                     throws java.io.IOException
        Constructor for a data-type manager backed by a packed database file. When opening for UPDATE an automatic upgrade will be performed if required.
        Parameters:
        packedDbfile - packed datatype archive file (i.e., *.gdt resource).
        openMode - open mode CREATE, READ_ONLY or UPDATE (see DBConstants)
        Throws:
        java.io.IOException - a low-level IO error. This exception may also be thrown when a version error occurs (cause is VersionException).
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: DataTypeManager
        Returns this data type manager's name
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
                     throws InvalidNameException
        Description copied from interface: DataTypeManager
        Sets this data type manager's name
        Parameters:
        name - the new name
        Throws:
        InvalidNameException - if the given name is invalid (such as when null or empty)
      • startTransaction

        public int startTransaction​(java.lang.String description)
        Description copied from interface: DataTypeManager
        Starts a transaction for making changes in this data type manager.
        Parameters:
        description - a short description of the changes to be made.
        Returns:
        the transaction ID
      • flushEvents

        public void flushEvents()
        Description copied from interface: DataTypeManager
        Force all pending notification events to be flushed
      • endTransaction

        public void endTransaction​(int transactionID,
                                   boolean commit)
        Description copied from interface: DataTypeManager
        Ends the current transaction
        Parameters:
        transactionID - id of the transaction to end
        commit - true if changes are committed, false if changes in transaction are revoked
      • close

        public void close()
        Description copied from interface: DataTypeManager
        Closes this dataType manager
      • finalize

        public void finalize()
        Overrides:
        finalize in class java.lang.Object
      • getType

        public ArchiveType getType()
        Description copied from interface: DataTypeManager
        Returns this manager's archive type
        Returns:
        the type