Class StandAloneDataTypeManager

    • Field Detail

      • name

        protected java.lang.String name
    • Constructor Detail

      • StandAloneDataTypeManager

        public StandAloneDataTypeManager​(java.lang.String rootName)
        Constructor for new temporary data-type manager using the default DataOrganization. Note that this manager does not support the save or saveAs operation.
        Parameters:
        rootName - Name of the root category.
      • StandAloneDataTypeManager

        public StandAloneDataTypeManager​(java.lang.String rootName,
                                         DataOrganization dataOrganzation)
        Constructor for new temporary data-type manager using a specified DataOrganization. Note that this manager does not support the save or saveAs operation.
        Parameters:
        rootName - Name of the root category.
        dataOrganzation - applicable data organization
      • 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
      • 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