|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.base.core.TAManager
public class TAManager
TAManager manages transactions.
It implements the Singleton Design-Patterns: An instance of
TAManager is created for every thread. This instance can be
fetched with getInstance().
| Method Summary | |
|---|---|
void |
begin()
Initializes a transaction. |
static void |
clear()
|
void |
clearManager()
|
void |
close()
Closes all registered resources. |
void |
commit()
Commits all actions on the registered resources and closes the resources. |
static TAManager |
getInstance()
Delivers an instance of TAManager. |
void |
registerResource(TAResource resource)
All resources, that should be managed, have to be registered to this manager. |
void |
removeResource(TAResource resource)
Removes a resource from the list of registered resources. |
void |
rollback()
Performs a rollback for all actions on the registered resources and closes the resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TAManager getInstance()
TAManager.
If it is the first call for the actual thread, a new
TAManager -object will be created. Subsequent calls in
this thread will deliver the object, that has been created by the first
call.
public void registerResource(TAResource resource)
resource - Resource of the transaction, that should be managed.public void removeResource(TAResource resource)
resource - Resource of the transaction, that should be removed.
public void begin()
throws XException
XException - if opening one ressource throws an XException.public void commit()
public void rollback()
public void close()
public void clearManager()
public static void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||