Class: Java::NetOntopiaTopicmapsImplTmapi2::TopicMapImpl

Inherits:
Object
  • Object
show all
Defined in:
lib/rtm/ontopia/rdbms/store.rb

Instance Method Summary collapse

Instance Method Details

#abortObject

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.

This is just a convencience method for getWrapped().getStore().abort().

Returns:

  • true



27
28
29
30
# File 'lib/rtm/ontopia/rdbms/store.rb', line 27

def abort
  wrapped.store.abort
  true
end

#commitObject

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.

This is just a convencience method for getWrapped().getStore().commit().

Returns:

  • true



12
13
14
15
# File 'lib/rtm/ontopia/rdbms/store.rb', line 12

def commit
  wrapped.store.commit
  true
end

#rollbackObject

This method is undocumented intentionally because it is here only for those of us who look for “rollback” instead of “abort”.



35
36
37
38
# File 'lib/rtm/ontopia/rdbms/store.rb', line 35

def rollback
  warn("TopicMap#rollback is only a convenience method for Ontopia's default 'abort'. Please use that instead.")
  abort
end