Package net.ontopia.topicmaps.db2tm
Class Processor
- java.lang.Object
-
- net.ontopia.topicmaps.db2tm.Processor
-
public class Processor extends Object
INTERNAL: Class that performs the actual db2tm processing.
-
-
Field Summary
Fields Modifier and Type Field Description static intCOUNT_COMMIT_MODEstatic intDEFAULT_COMMIT_MODEstatic intNEVER_COMMIT_MODEstatic intRELATIONAL_COMMIT_MODEstatic intTUPLE_COMMIT_MODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static AssociationIFaddAssociation(TopicIF reifier, Relation relation, Entity entity, String[] tuple, Context ctx)protected static ObjectaddEntity(Relation relation, Entity entity, String[] tuple, Context ctx)protected static voidaddIdentities(AssociationIF assoc, Relation relation, Entity entity, String[] tuple, Context ctx)protected static TopicIFaddIdentities(TopicIF topic, Relation relation, Entity entity, String[] tuple, Context ctx)protected 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 voidaddScope(ScopedIF scoped, String[] scope, Entity entity, String[] tuple, Context ctx)protected static voidaddTopicName(TopicIF topic, Relation relation, Entity entity, Field field, int fieldIndex, String[] tuple, Context ctx)static voidaddTuple(Relation relation, String[] tuple, Context ctx)protected static voidaddTypes(TopicIF topic, String[] types, Entity entity, String[] tuple, Context ctx)protected 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 voidremoveTopic(TopicIF topic, Relation relation, Entity entity, String[] tuple, Context ctx)protected 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 TopicIFupdateIdentities(TopicIF topic, Relation relation, Entity entity, String[] tuple, Context ctx)protected static voidupdateScope(ScopedIF scoped, String[] scope, Entity entity, String[] tuple, Context ctx)protected static voidupdateTypes(TopicIF topic, String[] types, Entity entity, String[] tuple, Context ctx)
-
-
-
Method Detail
-
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.
-
addEntity
protected static Object addEntity(Relation relation, Entity entity, String[] tuple, Context ctx)
-
checkCondition
protected static boolean checkCondition(Relation relation, Entity entity, String[] tuple, Context ctx)
-
addAssociation
protected static AssociationIF addAssociation(TopicIF reifier, Relation relation, Entity entity, String[] tuple, Context ctx)
-
removeEntity
protected static void removeEntity(Relation relation, Entity entity, String[] tuple, Context ctx)
-
removeTopic
protected static void removeTopic(TopicIF topic, Relation relation, Entity entity, String[] tuple, Context ctx)
-
deleteTopic
protected static void deleteTopic(TopicIF topic)
-
findTopicByIdentities
protected static TopicIF findTopicByIdentities(Relation relation, Entity entity, String[] tuple, Context ctx)
-
findAssociationByIdentities
protected static AssociationIF findAssociationByIdentities(Relation relation, Entity entity, String[] tuple, Context ctx)
-
addIdentities
protected static TopicIF addIdentities(TopicIF topic, Relation relation, Entity entity, String[] tuple, Context ctx)
-
updateIdentities
protected static TopicIF updateIdentities(TopicIF topic, Relation relation, Entity entity, String[] tuple, Context ctx)
-
addIdentities
protected static void addIdentities(AssociationIF assoc, Relation relation, Entity entity, String[] tuple, Context ctx)
-
addTypes
protected static void addTypes(TopicIF topic, String[] types, Entity entity, String[] tuple, Context ctx)
-
updateTypes
protected static void updateTypes(TopicIF topic, String[] types, Entity entity, String[] tuple, Context ctx)
-
addScope
protected static void addScope(ScopedIF scoped, String[] scope, Entity entity, String[] tuple, Context ctx)
-
updateScope
protected static void updateScope(ScopedIF scoped, String[] scope, Entity entity, String[] tuple, Context ctx)
-
compareScope
protected static boolean compareScope(String[] scope1, Collection<TopicIF> scope2, Entity entity, String[] tuple, Context ctx)
-
addTopicName
protected static void addTopicName(TopicIF topic, Relation relation, Entity entity, Field field, int fieldIndex, String[] tuple, Context ctx)
-
getTopicNames
protected static List<TopicNameIF> getTopicNames(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
-
removeTopicName
protected static void removeTopicName(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
-
addOccurrence
protected static void addOccurrence(TopicIF topic, Relation relation, Entity entity, Field field, int fieldIndex, String[] tuple, Context ctx)
-
getOccurrences
protected static List<OccurrenceIF> getOccurrences(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
-
removeOccurrence
protected static void removeOccurrence(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
-
addPlayer
protected static void addPlayer(TopicIF topic, Relation relation, Entity entity, Field field, int fieldIndex, String[] tuple, Context ctx)
-
getPlayers
protected static List<AssociationRoleIF> getPlayers(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
-
removePlayer
protected static void removePlayer(TopicIF topic, Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
-
removeAssociation
protected static void removeAssociation(Relation relation, Entity entity, String[] tuple, Context ctx)
-
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)
-
-