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, topicmapEVENT_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, isActiveprotected 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()
TopicMapTransactionIFcommit in interface TopicMapTransactionIFcommit in class AbstractTopicMapTransactionpublic void abort()
TopicMapTransactionIFabort in interface TopicMapTransactionIFabort in class AbstractTopicMapTransactionpublic void abort(boolean invalidate)
abort in class AbstractTopicMapTransactionpublic boolean validate()
validate in class AbstractTopicMapTransactionpublic TopicMapTransactionIF createNested()
createNested in class AbstractTopicMapTransactionpublic TransactionIF getTransaction()
public void addListener(EventListenerIF listener, String event)
EventManagerIFaddListener in interface EventManagerIFpublic void removeListener(EventListenerIF listener, String event)
EventManagerIFremoveListener in interface EventManagerIFpublic void processEvent(Object object, String event, Object new_value, Object old_value)
EventListenerIFprocessEvent in interface EventListenerIFpublic 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)