Class DeletionUtils


  • public class DeletionUtils
    extends Object
    INTERNAL: Topic map object deletion utilities.
    • Constructor Detail

      • DeletionUtils

        public DeletionUtils()
    • Method Detail

      • removeDependencies

        public static void removeDependencies​(TopicIF topic)
        INTERNAL: Removes the dependencies to the given topic from its topic map. Characteristics that have the topic in its scope get removed. Characteristics that have the topic as a type are removed from the topic map.
        Parameters:
        topic - The given topic; an object implementing TopicIF.
        Since:
        4.0
      • removeDependencies

        public static void removeDependencies​(ReifiableIF object)
      • clear

        public static void clear​(TopicMapIF topicmap)
        INTERNAL: Deletes all the topics and associations from the topic map. Note that this is not the best method for emptying a topic map; use TopicMapStoreIF.clear() instead, which is much faster with the RDBMS.
        Parameters:
        topicmap - The given topicmap; an object implementing TopicMapIF.
        Since:
        2.0