|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.transaction.CommonResource<R,T>
R - T - public abstract class CommonResource<R extends IResource,T extends IResourceType<R>>
A common implementation for the IResource abstraction.
| Method Summary | |
|---|---|
void |
begin()
begin is performed upon insertion of a resource in an active ITransaction or upon start of an ITransaction already
containing the IResource. |
void |
commit()
commit is performed when the ITransaction containing the
IResource is committed. |
R |
getParent()
If this resource supports hierarchies, the optional parent is returned. |
T |
getType()
The type that created this resource. |
void |
resume()
resume is performed when the ITransaction containing the
IResource is resumed. |
void |
rollback()
rollback is performed when the ITransaction containing the
IResource is rolled back. |
void |
suspend()
suspend is performed when the ITransaction containing the
IResource is suspended. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void begin()
throws ResourceException
IResourceITransaction or upon start of an ITransaction already
containing the IResource.
begin in interface IResourceResourceException
public void commit()
throws ResourceException
IResourceITransaction containing the
IResource is committed.
commit in interface IResourceResourceExceptionpublic R getParent()
IResource
getParent in interface IResourcepublic T getType()
IResource
getType in interface IResourcepublic void resume()
IResourceITransaction containing the
IResource is resumed.
resume in interface IResource
public void rollback()
throws ResourceException
IResourceITransaction containing the
IResource is rolled back.
rollback in interface IResourceResourceExceptionpublic void suspend()
IResourceITransaction containing the
IResource is suspended.
suspend in interface IResource
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||