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.
      • 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.
      • flushEvents

        public void flushEvents()
      • 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 - if true the changes are commited, otherwise all 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