org.xorm.datastore.xml
Class DocumentHolder
java.lang.Object
|
+--org.xorm.datastore.xml.DocumentHolder
- public class DocumentHolder
- extends Object
Wraps a JDOM Document and allows transactional access.
- Author:
- Wes Biggs
Method Summary |
void |
checkin(org.jdom.Document document)
Accepts the changes from the document. |
org.jdom.Document |
checkout()
Returns a cloned copy of the document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentHolder
public DocumentHolder(URL url)
checkout
public org.jdom.Document checkout()
- Returns a cloned copy of the document.
checkin
public void checkin(org.jdom.Document document)
- Accepts the changes from the document. If possible, rewrites
the content. Changes are synchronized but not checked; if two
concurrent threads make different changes, the last one to call
checkin() will win. This effectively gives the process a
transaction isolation level equivalent to TRANSACTION_READ_COMMITTED.
$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/datastore/xml/DocumentHolder.html,v 1.6 2004/05/30 08:55:07 wbiggs Exp $