|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.impl.utils.AbstractTopicMapTransaction
net.ontopia.topicmaps.impl.rdbms.RDBMSTopicMapTransaction
public class RDBMSTopicMapTransaction
INTERNAL: The rdbms topic map transaction implementation.
| Field Summary | |
|---|---|
protected long |
actual_id
|
protected 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 |
| Fields inherited from interface net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF |
|---|
EVENT_ABORT, EVENT_COMMIT |
| 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,
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> |
getAssocationsByType(TopicIF topic,
TopicIF type)
|
TMObjectIF |
getObjectByItemIdentifier(LocatorIF locator)
|
ObjectTreeManager |
getObjectTreeManager()
|
Collection<OccurrenceIF> |
getOccurrencesByType(TopicIF topic,
TopicIF type)
|
Collection |
getRolesByType(TopicIF player,
TopicIF rtype)
|
Collection |
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()
|
| 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 |
|---|
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
| Method Detail |
|---|
public long getActualId()
public ObjectTreeManager getObjectTreeManager()
public void commit()
TopicMapTransactionIF
commit in interface TopicMapTransactionIFcommit in class AbstractTopicMapTransactionpublic void abort()
TopicMapTransactionIF
abort 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)
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 TopicIF getTopicBySubjectLocator(LocatorIF locator)
public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
public Collection getRolesByType(TopicIF player,
TopicIF rtype)
public Collection 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> getAssocationsByType(TopicIF topic,
TopicIF type)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||