Package net.ontopia.topicmaps.db2tm
Class Processor
java.lang.Object
net.ontopia.topicmaps.db2tm.Processor
INTERNAL: Class that performs the actual db2tm processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic intstatic int -
Method Summary
Modifier and TypeMethodDescriptionprotected static AssociationIFprotected static Objectprotected static voidaddIdentities(AssociationIF assoc, Relation relation, Entity entity, String[] tuple, Context ctx) protected static TopicIFprotected static voidaddOccurrence(TopicIF topic, Relation relation, Entity entity, Field field, int fieldIndex, String[] tuple, Context ctx) protected static voidaddPlayer(TopicIF topic, Relation relation, Entity entity, Field field, int fieldIndex, String[] tuple, Context ctx) static voidaddRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc) INTERNAL: Runs a DB2TM process by adding tuples to the topic map.protected static voidprotected static voidaddTopicName(TopicIF topic, Relation relation, Entity entity, Field field, int fieldIndex, String[] tuple, Context ctx) static voidprotected static voidprotected static booleancheckCondition(Relation relation, Entity entity, String[] tuple, Context ctx) protected static booleancompareScope(String[] scope1, Collection<TopicIF> scope2, Entity entity, String[] tuple, Context ctx) protected static voiddeleteTopic(TopicIF topic) protected static AssociationIFfindAssociationByIdentities(Relation relation, Entity entity, String[] tuple, Context ctx) protected static TopicIFfindTopicByIdentities(Relation relation, Entity entity, String[] tuple, Context ctx) protected static List<OccurrenceIF>getOccurrences(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx) protected static List<AssociationRoleIF>getPlayers(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx) protected static List<TopicNameIF>getTopicNames(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx) protected static voidremoveAssociation(Relation relation, Entity entity, String[] tuple, Context ctx) protected static voidremoveEntity(Relation relation, Entity entity, String[] tuple, Context ctx) protected static voidremoveOccurrence(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx) protected static voidremovePlayer(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx) static voidremoveRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc) INTERNAL: Runs a DB2TM process by removing tuples from the topic map.protected static voidprotected static voidremoveTopicName(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx) static voidremoveTuple(Relation relation, String[] tuple, Context ctx) protected static voidremoveTypes(TopicIF topic, String[] types, Context ctx) static voidsynchronizeRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc) INTERNAL: Runs a DB2TM process by synchronizing the relations.static voidsynchronizeRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc, boolean forceRescan) protected static TopicIFprotected static voidprotected static void
-
Field Details
-
NEVER_COMMIT_MODE
public static int NEVER_COMMIT_MODE -
RELATIONAL_COMMIT_MODE
public static int RELATIONAL_COMMIT_MODE -
TUPLE_COMMIT_MODE
public static int TUPLE_COMMIT_MODE -
COUNT_COMMIT_MODE
public static int COUNT_COMMIT_MODE -
DEFAULT_COMMIT_MODE
public static int DEFAULT_COMMIT_MODE
-
-
Method Details
-
addRelations
public static void addRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc) INTERNAL: Runs a DB2TM process by adding tuples to the topic map. -
removeRelations
public static void removeRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc) INTERNAL: Runs a DB2TM process by removing tuples from the topic map. -
addTuple
-
addEntity
-
checkCondition
-
addAssociation
-
removeTuple
-
removeEntity
-
removeTopic
-
deleteTopic
-
findTopicByIdentities
-
findAssociationByIdentities
protected static AssociationIF findAssociationByIdentities(Relation relation, Entity entity, String[] tuple, Context ctx) -
addIdentities
-
updateIdentities
-
addIdentities
protected static void addIdentities(AssociationIF assoc, Relation relation, Entity entity, String[] tuple, Context ctx) -
addTypes
-
updateTypes
-
removeTypes
-
addScope
-
updateScope
-
compareScope
-
addTopicName
-
getTopicNames
-
removeTopicName
-
addOccurrence
-
getOccurrences
-
removeOccurrence
-
addPlayer
-
getPlayers
-
removePlayer
-
removeAssociation
-
synchronizeRelations
public static void synchronizeRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc) INTERNAL: Runs a DB2TM process by synchronizing the relations. -
synchronizeRelations
public static void synchronizeRelations(RelationMapping rmapping, Collection<String> relnames, TopicMapIF topicmap, LocatorIF baseloc, boolean forceRescan)
-