net.ontopia.topicmaps.impl.rdbms
Class RDBMSTopicMapTransaction

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractTopicMapTransaction
      extended by net.ontopia.topicmaps.impl.rdbms.RDBMSTopicMapTransaction
All Implemented Interfaces:
EventListenerIF, EventManagerIF, TopicMapTransactionIF

public class RDBMSTopicMapTransaction
extends AbstractTopicMapTransaction
implements EventManagerIF

INTERNAL: The rdbms topic map transaction implementation.


Field Summary
protected  long actual_id
           
protected  java.util.Map listeners
           
protected  ObjectTreeManager otree
           
protected  boolean readonly
           
protected  RoleTypeAssocTypeCache rtatcache
           
protected  RoleTypeCache rtcache
           
protected  SubjectIdentityCache sicache
           
protected  TopicModificationManager topicmods
           
protected  TransactionIF txn
           
 
Fields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapTransaction
active, builder, cfactory, imanager, invalid, parent, store, topicmap
 
Method Summary
 void abort()
          PUBLIC: Aborts the transaction; all changes made inside the transaction are rolled back.
 void abort(boolean invalidate)
           
 void addListener(EventListenerIF listener, java.lang.String event)
          INTERNAL: Register the listener as a listener for the event.
 void commit()
          PUBLIC: Commits the transaction.
 TopicMapTransactionIF createNested()
           
 long getActualId()
           
 TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
           
 ObjectTreeManager getObjectTreeManager()
           
 java.util.Collection getRolesByType(TopicIF player, TopicIF rtype)
           
 java.util.Collection getRolesByType(TopicIF player, TopicIF rtype, TopicIF atype)
           
 TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
           
 TopicIF getTopicBySubjectLocator(LocatorIF locator)
           
 TransactionIF getTransaction()
          INTERNAL: Returns the proxy transaction used by the topic map transaction.
 void prefetchRolesByType(java.util.Collection players, TopicIF rtype, TopicIF atype)
           
 void processEvent(java.lang.Object object, java.lang.String event, java.lang.Object new_value, java.lang.Object old_value)
          INTERNAL: A method that receives notification when an event has been triggered.
 void removeListener(EventListenerIF listener, java.lang.String event)
          INTERNAL: Unregister the listener as a listener for the event.
 java.lang.String toString()
           
 boolean validate()
           
 
Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapTransaction
getBuilder, getCollectionFactory, getIndexManager, getParent, getStore, getTopicMap, isActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

txn

protected TransactionIF txn

readonly

protected boolean readonly

actual_id

protected long actual_id

sicache

protected SubjectIdentityCache sicache

rtcache

protected RoleTypeCache rtcache

rtatcache

protected RoleTypeAssocTypeCache rtatcache

listeners

protected java.util.Map listeners

otree

protected ObjectTreeManager otree

topicmods

protected TopicModificationManager topicmods
Method Detail

getActualId

public long getActualId()

getObjectTreeManager

public ObjectTreeManager getObjectTreeManager()

commit

public void commit()
Description copied from interface: TopicMapTransactionIF
PUBLIC: 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:
commit in interface TopicMapTransactionIF
Overrides:
commit in class AbstractTopicMapTransaction

abort

public void abort()
Description copied from interface: TopicMapTransactionIF
PUBLIC: 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:
abort in interface TopicMapTransactionIF
Overrides:
abort in class AbstractTopicMapTransaction

abort

public void abort(boolean invalidate)
Overrides:
abort in class AbstractTopicMapTransaction

validate

public boolean validate()
Specified by:
validate in class AbstractTopicMapTransaction

createNested

public TopicMapTransactionIF createNested()
Overrides:
createNested in class AbstractTopicMapTransaction

getTransaction

public TransactionIF getTransaction()
INTERNAL: Returns the proxy transaction used by the topic map transaction.


addListener

public void addListener(EventListenerIF listener,
                        java.lang.String event)
Description copied from interface: EventManagerIF
INTERNAL: Register the listener as a listener for the event.

Specified by:
addListener in interface EventManagerIF

removeListener

public void removeListener(EventListenerIF listener,
                           java.lang.String event)
Description copied from interface: EventManagerIF
INTERNAL: Unregister the listener as a listener for the event.

Specified by:
removeListener in interface EventManagerIF

processEvent

public void processEvent(java.lang.Object object,
                         java.lang.String event,
                         java.lang.Object new_value,
                         java.lang.Object old_value)
Description copied from interface: EventListenerIF
INTERNAL: A method that receives notification when an event has been triggered.

Specified by:
processEvent in interface EventListenerIF

prefetchRolesByType

public void prefetchRolesByType(java.util.Collection players,
                                TopicIF rtype,
                                TopicIF atype)

getObjectByItemIdentifier

public TMObjectIF getObjectByItemIdentifier(LocatorIF locator)

getTopicBySubjectLocator

public TopicIF getTopicBySubjectLocator(LocatorIF locator)

getTopicBySubjectIdentifier

public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)

getRolesByType

public java.util.Collection getRolesByType(TopicIF player,
                                           TopicIF rtype)

getRolesByType

public java.util.Collection getRolesByType(TopicIF player,
                                           TopicIF rtype,
                                           TopicIF atype)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.