| java.lang.Object org.xorm.datastore.xml.JDOMDocumentDriver
JDOMDocumentDriver | public class JDOMDocumentDriver implements DatastoreDriver(Code) | | A datastore driver that uses an XML document as the datastore.
Datastore XML descriptor files need to specify a column named "."
as the primary key column; table names should match element names.
Data column names should be specified in a limited XPath notation.
Examples are "@name", "description/text()", and ".." for a parent
reference.
This class relies on the transactional mechanics of the DocumentHolder
class. At the beginning of each transaction, it acquires a document
by calling checkout(); upon commit (but not rollback) it calls
checkin().
author: Wes Biggs |
JDOMDocumentDriver | public JDOMDocumentDriver(DocumentHolder documentHolder)(Code) | | Sets the data source, which must be an instance of DocumentHolder.
|
begin | public void begin(boolean readOnly)(Code) | | Begins a transaction by calling checkout on the DocumentHolder.
|
commit | public void commit() throws DriverException(Code) | | Calls checkin() on the DocumentHolder if any write operations
were called during the transaction.
|
rollback | public void rollback()(Code) | | |
|
|