Class AbstractTopicMapTransaction

    • Constructor Detail

      • AbstractTopicMapTransaction

        public AbstractTopicMapTransaction()
    • Method Detail

      • isActive

        public boolean isActive()
        Description copied from interface: TopicMapTransactionIF
        PUBLIC: Returns true if the transaction is active (in process). A transaction is started immediately after it has been created, so there is no explicit method to call in order to activate a transaction.

        Specified by:
        isActive in interface TopicMapTransactionIF
        Returns:
        Boolean: true if active, false if not active (either not yet aborted, or commited).
      • getIndexManager

        public IndexManagerIF getIndexManager()
        Description copied from interface: TopicMapTransactionIF
        PUBLIC: Gets the index manager that manages the topic map indexes in the transaction.
        Specified by:
        getIndexManager in interface TopicMapTransactionIF
        Returns:
        The index manager used by the transaction: an object implementing IndexManagerIF.
      • getTopicMap

        public TopicMapIF getTopicMap()
        Description copied from interface: TopicMapTransactionIF
        PUBLIC: Gets the topic map that is accessible through the transaction.
        Specified by:
        getTopicMap in interface TopicMapTransactionIF
        Returns:
        The topic map in the transaction; an object implementing TopicMapIF.
      • commit

        public void commit()
        Description copied from interface: TopicMapTransactionIF
        PUBLIC: Commits the transaction. The changes made are written to the persistent store.

        The transaction will resume after the commit meaning that the objects retrieved through is still usable after the commit.
        Specified by:
        commit in interface TopicMapTransactionIF
      • abort

        public void abort()
        Description copied from interface: TopicMapTransactionIF
        PUBLIC: Aborts the transaction; all changes made inside the transaction are rolled back.

        The transaction will resume after the abort meaning that the objects retrieved through is still usable after the abort, but their state has been reverted to the state in the persistent store.
        Specified by:
        abort in interface TopicMapTransactionIF
      • abort

        public void abort​(boolean invalidate)
      • validate

        public abstract boolean validate()