org.exist.storage.dom
Class DOMTransaction

java.lang.Object
  extended by org.exist.storage.dom.DOMTransaction

public abstract class DOMTransaction
extends Object

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.

Author:
wolf

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

DOMTransaction

public DOMTransaction(Object owner,
                      DOMFile f)
Deprecated. : use other constructors

Parameters:
owner -
f -

DOMTransaction

public DOMTransaction(Object owner,
                      DOMFile f,
                      int mode)
Creates a new DOMTransaction instance.

Parameters:
owner - an Object value
f - a DOMFile value
mode - an int value

DOMTransaction

public DOMTransaction(Object owner,
                      DOMFile f,
                      int mode,
                      DocumentImpl doc)
Creates a new DOMTransaction instance.

Parameters:
owner - an Object value
f - a DOMFile value
mode - an int value
doc - a DocumentImpl value
Method Detail

start

public abstract Object start()
                      throws ReadOnlyException
The method start

Returns:
an Object value
Throws:
ReadOnlyException - if an error occurs

run

public Object run()
The method run

Returns:
an Object value


Copyright (C) Wolfgang Meier. All rights reserved.