|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.dom.DOMTransaction
public abstract class DOMTransaction
DOMTransaction controls access to the DOM file This implements a wrapper around the code passed in method start(). The class acquires a lock on the file, enters the locked code block and calls start.
Constructor Summary | |
---|---|
DOMTransaction(Object owner,
DOMFile f)
Deprecated. : use other constructors |
|
DOMTransaction(Object owner,
DOMFile f,
int mode)
Creates a new DOMTransaction instance. |
|
DOMTransaction(Object owner,
DOMFile f,
int mode,
DocumentImpl doc)
Creates a new DOMTransaction instance. |
Method Summary | |
---|---|
Object |
run()
The method run |
abstract Object |
start()
The method start |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMTransaction(Object owner, DOMFile f)
owner
- f
- public DOMTransaction(Object owner, DOMFile f, int mode)
DOMTransaction
instance.
owner
- an Object
valuef
- a DOMFile
valuemode
- an int
valuepublic DOMTransaction(Object owner, DOMFile f, int mode, DocumentImpl doc)
DOMTransaction
instance.
owner
- an Object
valuef
- a DOMFile
valuemode
- an int
valuedoc
- a DocumentImpl
valueMethod Detail |
---|
public abstract Object start() throws ReadOnlyException
start
Object
value
ReadOnlyException
- if an error occurspublic Object run()
run
Object
value
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |