Package net.ontopia.topicmaps.impl.rdbms
Class RDBMSTopicMapTransaction
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractTopicMapTransaction
net.ontopia.topicmaps.impl.rdbms.RDBMSTopicMapTransaction
- All Implemented Interfaces:
EventListenerIF,EventManagerIF,TopicMapTransactionIF
INTERNAL: The rdbms topic map transaction implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected Mapprotected ObjectTreeManagerprotected booleanprotected RoleTypeAssocTypeCacheprotected RoleTypeCacheprotected SubjectIdentityCacheprotected TopicEventsprotected TopicModificationManagerprotected TransactionIFFields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapTransaction
active, builder, cfactory, imanager, invalid, parent, store, topicmapFields inherited from interface net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF
EVENT_ABORT, EVENT_COMMIT -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()PUBLIC: Aborts the transaction; all changes made inside the transaction are rolled back.voidabort(boolean invalidate) voidaddListener(EventListenerIF listener, String event) INTERNAL: Register the listener as a listener for the event.voidcommit()PUBLIC: Commits the transaction.longgetAssocations(TopicIF topic) getAssociationsByType(TopicIF topic, TopicIF type) getObjectByItemIdentifier(LocatorIF locator) getOccurrencesByType(TopicIF topic, TopicIF type) getRolesByType(TopicIF player, TopicIF rtype) getRolesByType(TopicIF player, TopicIF rtype, TopicIF atype) getTopicBySubjectIdentifier(LocatorIF locator) getTopicBySubjectLocator(LocatorIF locator) PUBLIC: Gets the topic map that is accessible through the transaction.getTopicNamesByType(TopicIF topic, TopicIF type) INTERNAL: Returns the proxy transaction used by the topic map transaction.voidprefetchRolesByType(Collection players, TopicIF rtype, TopicIF atype) voidprocessEvent(Object object, String event, Object new_value, Object old_value) INTERNAL: A method that receives notification when an event has been triggered.voidremoveListener(EventListenerIF listener, String event) INTERNAL: Unregister the listener as a listener for the event.toString()booleanvalidate()Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapTransaction
getBuilder, getCollectionFactory, getIndexManager, getParent, getStore, isActive
-
Field Details
-
txn
-
readonly
protected boolean readonly -
actual_id
protected long actual_id -
sicache
-
rtcache
-
rtatcache
-
listeners
-
otree
-
topicmods
-
te
-
-
Method Details
-
getActualId
public long getActualId() -
getObjectTreeManager
-
commit
public void commit()Description copied from interface:TopicMapTransactionIFPUBLIC: Commits the transaction. The changes made are written to the persistent store. The transaction will resume after the commit meaning that the objects retrieved through is still usable after the commit.- Specified by:
commitin interfaceTopicMapTransactionIF- Overrides:
commitin classAbstractTopicMapTransaction
-
abort
public void abort()Description copied from interface:TopicMapTransactionIFPUBLIC: Aborts the transaction; all changes made inside the transaction are rolled back. The transaction will resume after the abort meaning that the objects retrieved through is still usable after the abort, but their state has been reverted to the state in the persistent store.- Specified by:
abortin interfaceTopicMapTransactionIF- Overrides:
abortin classAbstractTopicMapTransaction
-
abort
public void abort(boolean invalidate) - Overrides:
abortin classAbstractTopicMapTransaction
-
validate
public boolean validate()- Specified by:
validatein classAbstractTopicMapTransaction
-
createNested
- Overrides:
createNestedin classAbstractTopicMapTransaction
-
getTransaction
INTERNAL: Returns the proxy transaction used by the topic map transaction. -
getTopicMap
Description copied from interface:TopicMapTransactionIFPUBLIC: Gets the topic map that is accessible through the transaction.- Specified by:
getTopicMapin interfaceTopicMapTransactionIF- Overrides:
getTopicMapin classAbstractTopicMapTransaction- Returns:
- The topic map in the transaction; an object implementing TopicMapIF.
-
addListener
Description copied from interface:EventManagerIFINTERNAL: Register the listener as a listener for the event.- Specified by:
addListenerin interfaceEventManagerIF
-
removeListener
Description copied from interface:EventManagerIFINTERNAL: Unregister the listener as a listener for the event.- Specified by:
removeListenerin interfaceEventManagerIF
-
processEvent
Description copied from interface:EventListenerIFINTERNAL: A method that receives notification when an event has been triggered.- Specified by:
processEventin interfaceEventListenerIF
-
prefetchRolesByType
-
getObjectByItemIdentifier
-
getTopicBySubjectLocator
-
getTopicBySubjectIdentifier
-
getRolesByType
-
getRolesByType
-
getOccurrencesByType
-
getTopicNamesByType
-
getAssocations
-
getAssociationsByType
-
toString
-