de.topicmapslab.majortom.redis.store
Class MergeUtils

java.lang.Object
  extended by de.topicmapslab.majortom.redis.store.MergeUtils

public class MergeUtils
extends java.lang.Object


Constructor Summary
MergeUtils()
           
 
Method Summary
private static java.util.Set<java.lang.String> checkForDuplciate(RedisHandler redis, java.lang.String aId, java.lang.String pId)
           
private static java.util.Set<java.lang.String> checkForDuplciate(RedisHandler redis, java.lang.String tId, java.lang.String nId, java.lang.String key)
           
private static void mergeCharacteristics(RedisTopicMapStore store, RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergeIdentity(RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergeItemIdentifiers(RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergePlayed(RedisTopicMapStore store, RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergeReificiation(RedisTopicMapStore store, RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergeRoles(RedisTopicMapStore store, RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergeScopes(RedisTopicMapStore store, RedisHandler redis, java.lang.String context, java.lang.String other)
           
static void mergeTopics(RedisTopicMapStore store, RedisHandler redis, de.topicmapslab.majortom.model.core.ITopic context, de.topicmapslab.majortom.model.core.ITopic other)
           
private static void mergeTopics(RedisTopicMapStore store, RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergeTypeHierarchy(RedisHandler redis, java.lang.String context, java.lang.String other)
           
private static void mergeVariants(RedisTopicMapStore store, RedisHandler redis, java.lang.String context, java.lang.String other)
           
static void removeDuplicates(RedisTopicMapStore store, RedisHandler redis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeUtils

public MergeUtils()
Method Detail

mergeTopics

public static void mergeTopics(RedisTopicMapStore store,
                               RedisHandler redis,
                               de.topicmapslab.majortom.model.core.ITopic context,
                               de.topicmapslab.majortom.model.core.ITopic other)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeTopics

private static void mergeTopics(RedisTopicMapStore store,
                                RedisHandler redis,
                                java.lang.String context,
                                java.lang.String other)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeCharacteristics

private static void mergeCharacteristics(RedisTopicMapStore store,
                                         RedisHandler redis,
                                         java.lang.String context,
                                         java.lang.String other)
                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

checkForDuplciate

private static java.util.Set<java.lang.String> checkForDuplciate(RedisHandler redis,
                                                                 java.lang.String tId,
                                                                 java.lang.String nId,
                                                                 java.lang.String key)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeReificiation

private static void mergeReificiation(RedisTopicMapStore store,
                                      RedisHandler redis,
                                      java.lang.String context,
                                      java.lang.String other)
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeVariants

private static void mergeVariants(RedisTopicMapStore store,
                                  RedisHandler redis,
                                  java.lang.String context,
                                  java.lang.String other)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeItemIdentifiers

private static void mergeItemIdentifiers(RedisHandler redis,
                                         java.lang.String context,
                                         java.lang.String other)
                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeIdentity

private static void mergeIdentity(RedisHandler redis,
                                  java.lang.String context,
                                  java.lang.String other)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeTypeHierarchy

private static void mergeTypeHierarchy(RedisHandler redis,
                                       java.lang.String context,
                                       java.lang.String other)
                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeScopes

private static void mergeScopes(RedisTopicMapStore store,
                                RedisHandler redis,
                                java.lang.String context,
                                java.lang.String other)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergePlayed

private static void mergePlayed(RedisTopicMapStore store,
                                RedisHandler redis,
                                java.lang.String context,
                                java.lang.String other)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

checkForDuplciate

private static java.util.Set<java.lang.String> checkForDuplciate(RedisHandler redis,
                                                                 java.lang.String aId,
                                                                 java.lang.String pId)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeDuplicates

public static void removeDuplicates(RedisTopicMapStore store,
                                    RedisHandler redis)
                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

mergeRoles

private static void mergeRoles(RedisTopicMapStore store,
                               RedisHandler redis,
                               java.lang.String context,
                               java.lang.String other)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException