Package net.ontopia.topicmaps.db2tm
Class Context
java.lang.Object
net.ontopia.topicmaps.db2tm.Context
INTERNAL: Object used to hold contextual information while
processing tuples. Note that mapping, relation, topicMap and
baseLocator are all required properties.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LocatorIFprotected TopicMapBuilderIFprotected DeclarationContextIFprotected Object[]protected Collection<Object>[]protected static final intprotected Collection<Object>protected Collection<Object>protected QueryProcessorIFprotected Relationprotected RelationMappingprotected TopicMapIF -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcharacteristicsChanged(TopicIF topic) voidclose()INTERNAL: Gets the base locator currently in use.protected TopicMapBuilderIFINTERNAL: Gets the topic map builder currently in use.protected ObjectINTERNAL: Gets the entity object by idINTERNAL: Gets the relation mapping currently in use.INTERNAL: Gets the topic map query processor currently in use.INTERNAL: Gets the topic map currently in use.voidprotected voidmergeTopics(TopicIF target, TopicIF source) INTERNAL: Merge two topics.protected booleanregisterNewObject(Object object) INTERNAL: Register an object as a new topic map object (created by db2tm).protected voidregisterOldFieldValues(Object object, List<?>[] values) INTERNAL: Register the existing field values of an old object.protected booleanregisterOldObject(Object object) INTERNAL: Register an object as an existing topic map object.voidprotected voidprotected ObjectreuseOldFieldValue(Object object, int fieldIndex) INTERNAL: Return the existing field values of an old object.voidsetBaseLocator(LocatorIF baseloc) INTERNAL: Sets the current base locator.protected voidsetEntityObject(int ix, Object object) INTERNAL: Sets the current entity object.voidsetMapping(RelationMapping rmapping) INTERNAL: Sets the current relation mapping.voidsetRelation(Relation relation) INTERNAL: Sets the current relation.voidsetTopicMap(TopicMapIF topicmap) INTERNAL: Sets the current topic map.
-
Field Details
-
rmapping
-
relation
-
topicmap
-
baseloc
-
builder
-
qp
-
dc
-
entityObjects
-
extents
-
newObjects
-
oldObjects
-
oldValues
-
MAX_DSCANDIDATES
protected static final int MAX_DSCANDIDATES- See Also:
-
dsCandidates
-
-
Method Details
-
getMapping
INTERNAL: Gets the relation mapping currently in use. -
setMapping
INTERNAL: Sets the current relation mapping. -
setRelation
INTERNAL: Sets the current relation. -
getTopicMap
INTERNAL: Gets the topic map currently in use. -
setTopicMap
INTERNAL: Sets the current topic map. -
getQueryProcessor
INTERNAL: Gets the topic map query processor currently in use. -
getDeclarationContext
-
getBaseLocator
INTERNAL: Gets the base locator currently in use. -
setBaseLocator
INTERNAL: Sets the current base locator. -
getBuilder
INTERNAL: Gets the topic map builder currently in use. This builder is retrieved from the current topic map, so this is primarily a convenience method. -
setEntityObject
INTERNAL: Sets the current entity object. -
getEntityObjectById
INTERNAL: Gets the entity object by id -
mergeTopics
INTERNAL: Merge two topics. This method will replace all references to the old topic with references to the new one. -
registerOldObject
INTERNAL: Register an object as an existing topic map object. The method will return true if this is the first time we've seen it. -
registerNewObject
INTERNAL: Register an object as a new topic map object (created by db2tm). The method will return true if this is the first time we've seen it. -
registerOldFieldValues
INTERNAL: Register the existing field values of an old object. -
reuseOldFieldValue
INTERNAL: Return the existing field values of an old object. -
removeOldValues
protected void removeOldValues() -
loadExtents
public void loadExtents() -
removeExtentObjects
public void removeExtentObjects() -
characteristicsChanged
-
close
public void close()
-