public class RDBMSTopicMapTransaction extends AbstractTopicMapTransaction implements EventManagerIF
Modifier and Type | Field and Description |
---|---|
protected long |
actual_id |
protected Map |
listeners |
protected ObjectTreeManager |
otree |
protected boolean |
readonly |
protected RoleTypeAssocTypeCache |
rtatcache |
protected RoleTypeCache |
rtcache |
protected SubjectIdentityCache |
sicache |
protected TopicEvents |
te |
protected TopicModificationManager |
topicmods |
protected TransactionIF |
txn |
active, builder, cfactory, imanager, invalid, parent, store, topicmap
EVENT_ABORT, EVENT_COMMIT
Modifier and Type | Method and Description |
---|---|
void |
abort()
PUBLIC: Aborts the transaction; all changes made inside the
transaction are rolled back.
|
void |
abort(boolean invalidate) |
void |
addListener(EventListenerIF listener,
String event)
INTERNAL: Register the listener as a listener for the event.
|
void |
commit()
PUBLIC: Commits the transaction.
|
TopicMapTransactionIF |
createNested() |
long |
getActualId() |
Collection<AssociationIF> |
getAssocations(TopicIF topic) |
Collection<AssociationIF> |
getAssociationsByType(TopicIF topic,
TopicIF type) |
TMObjectIF |
getObjectByItemIdentifier(LocatorIF locator) |
ObjectTreeManager |
getObjectTreeManager() |
Collection<OccurrenceIF> |
getOccurrencesByType(TopicIF topic,
TopicIF type) |
Collection<AssociationRoleIF> |
getRolesByType(TopicIF player,
TopicIF rtype) |
Collection<AssociationRoleIF> |
getRolesByType(TopicIF player,
TopicIF rtype,
TopicIF atype) |
TopicIF |
getTopicBySubjectIdentifier(LocatorIF locator) |
TopicIF |
getTopicBySubjectLocator(LocatorIF locator) |
Collection<TopicNameIF> |
getTopicNamesByType(TopicIF topic,
TopicIF type) |
TransactionIF |
getTransaction()
INTERNAL: Returns the proxy transaction used by the topic map
transaction.
|
void |
prefetchRolesByType(Collection players,
TopicIF rtype,
TopicIF atype) |
void |
processEvent(Object object,
String event,
Object new_value,
Object old_value)
INTERNAL: A method that receives notification when an event has been triggered.
|
void |
removeListener(EventListenerIF listener,
String event)
INTERNAL: Unregister the listener as a listener for the event.
|
String |
toString() |
boolean |
validate() |
getBuilder, getCollectionFactory, getIndexManager, getParent, getStore, getTopicMap, isActive
protected TransactionIF txn
protected boolean readonly
protected long actual_id
protected SubjectIdentityCache sicache
protected RoleTypeCache rtcache
protected RoleTypeAssocTypeCache rtatcache
protected Map listeners
protected ObjectTreeManager otree
protected TopicModificationManager topicmods
protected TopicEvents te
public long getActualId()
public ObjectTreeManager getObjectTreeManager()
public void commit()
TopicMapTransactionIF
commit
in interface TopicMapTransactionIF
commit
in class AbstractTopicMapTransaction
public void abort()
TopicMapTransactionIF
abort
in interface TopicMapTransactionIF
abort
in class AbstractTopicMapTransaction
public void abort(boolean invalidate)
abort
in class AbstractTopicMapTransaction
public boolean validate()
validate
in class AbstractTopicMapTransaction
public TopicMapTransactionIF createNested()
createNested
in class AbstractTopicMapTransaction
public TransactionIF getTransaction()
public void addListener(EventListenerIF listener, String event)
EventManagerIF
addListener
in interface EventManagerIF
public void removeListener(EventListenerIF listener, String event)
EventManagerIF
removeListener
in interface EventManagerIF
public void processEvent(Object object, String event, Object new_value, Object old_value)
EventListenerIF
processEvent
in interface EventListenerIF
public void prefetchRolesByType(Collection players, TopicIF rtype, TopicIF atype)
public TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
public Collection<AssociationRoleIF> getRolesByType(TopicIF player, TopicIF rtype)
public Collection<AssociationRoleIF> getRolesByType(TopicIF player, TopicIF rtype, TopicIF atype)
public Collection<OccurrenceIF> getOccurrencesByType(TopicIF topic, TopicIF type)
public Collection<TopicNameIF> getTopicNamesByType(TopicIF topic, TopicIF type)
public Collection<AssociationIF> getAssocations(TopicIF topic)
public Collection<AssociationIF> getAssociationsByType(TopicIF topic, TopicIF type)