dbXML API

## Uses of Class
com.dbxml.db.core.transaction.Transaction

Packages that use Transaction
com.dbxml.db.common.adapters: Defines a set of Adapter classes that allow dbXML to persist objects other than dbXML DocumentTable instances.
com.dbxml.db.common.btree: Defines the dbXML BTree implementation as well as the low-level Paged file system.
com.dbxml.db.common.filers: Defines the standard dbXML Filer implementations which include MemFiler and FSFiler.
com.dbxml.db.common.fulltext: Defines the dbXML Full Text Indexer and a basic QueryResolver for Full Text retrieval.
com.dbxml.db.common.indexers: Defines the dbXML standard Indexer implementations which consist of NameIndexer and ValueIndexer.
com.dbxml.db.common.query: This package implements the common base functionality for Query Resolver implementations.
com.dbxml.db.common.scripting: Defines the dbXML Scripting package.
com.dbxml.db.common.xupdate: Defines several classes for dbXML XUpdate query processing.
com.dbxml.db.core: This is the top-level package for all dbXML Core functionality.
com.dbxml.db.core.adapter: Defines the Adapter interface as well as an abstract Adapter implementation that can be built from.
com.dbxml.db.core.filer: Defines the dbXML Filer interfaces.
com.dbxml.db.core.indexer: Defines the dbXML Indexer interfaces
com.dbxml.db.core.query: Implements the dbXML QueryEngine and XPathQueryResolver.
com.dbxml.db.core.transaction: This is the package for dbXML Transaction functionality.
com.dbxml.db.core.trigger: Defines the dbXML Trigger interface and implements TriggerManager, several Trigger-related Exceptions and a Simple Trigger implementation.
com.dbxml.db.enterprise.dbfiler: Defines the dbXML DBFiler class as well as a Connection pooling system.
com.dbxml.db.enterprise.sync: Implements the Extensions and Triggers required to perform seemless synchronization between servers.

Uses of Transaction in com.dbxml.db.common.adapters

Methods in com.dbxml.db.common.adapters with parameters of type Transaction
`void` `XMLSerializableAdapter.setObject(Transaction tx, java.lang.Object key, XMLSerializable obj)` setObject sets an XMLSerializable object in the Collection based on the provided Key.
`Key` `XMLSerializableAdapter.insertObject(Transaction tx, XMLSerializable obj)` insertObject inserts an XMLSerializable object into the Collection and returns a newly generated Key.
`void` `XMLSerializableAdapter.insertObject(Transaction tx, java.lang.Object key, XMLSerializable obj)` insertObject inserts an XMLSerializable object into the Collection based on the specified Key.
`XMLSerializable` `XMLSerializableAdapter.getObject(Transaction tx, java.lang.Object key)` getObject instantiates and returns an XMLSerializable object based on the provided Key.
`org.xml.sax.ContentHandler` `SAXAdapter.setDocument(Transaction tx, java.lang.Object key)` setDocument sets a Document using SAX events that are fed to the returned ContentHandler.
`org.xml.sax.ContentHandler` `SAXAdapter.insertDocument(Transaction tx)` setDocument sets a Document using SAX events that are fed to the returned ContentHandler.
`org.xml.sax.ContentHandler` `SAXAdapter.insertDocument(Transaction tx, java.lang.Object key)` insertDocument sets a Document using SAX events that are fed to the returned ContentHandler.
`void` `SAXAdapter.getDocument(Transaction tx, java.lang.Object key, org.xml.sax.ContentHandler handler)` getDocument instantiates and returns a DOM Document based on the provided Key.
`void` `JAXBElementAdapter.setObject(Transaction tx, java.lang.Object key, javax.xml.bind.Element obj)` setObject sets an JAXB Element object in the Collection based on the provided Key.
`Key` `JAXBElementAdapter.insertObject(Transaction tx, javax.xml.bind.Element obj)` insertObject inserts an JAXB Element object into the Collection and returns a newly generated Key.
`void` `JAXBElementAdapter.insertObject(Transaction tx, java.lang.Object key, javax.xml.bind.Element obj)` insertObject inserts an JAXB Element object into the Collection based on the specified Key.
`javax.xml.bind.Element` `JAXBElementAdapter.getObject(Transaction tx, java.lang.Object key)` getObject instantiates and returns a JAXB Element object based on the provided Key.
`void` `DOMAdapter.setDocument(Transaction tx, java.lang.Object key, org.w3c.dom.Document doc)` setDocument sets a DOM Document in the Collection based on the provided Key.
`Key` `DOMAdapter.insertDocument(Transaction tx, org.w3c.dom.Document doc)` insertDocument inserts a DOM Document into the Collection and returns a newly generated Key.
`void` `DOMAdapter.insertDocument(Transaction tx, java.lang.Object key, org.w3c.dom.Document doc)` insertDocument inserts a DOM Document into the Collection based on the specified Key.
`org.w3c.dom.Document` `DOMAdapter.getDocument(Transaction tx, java.lang.Object key)` getDocument instantiates and returns a DOM Document based on the provided Key.

Uses of Transaction in com.dbxml.db.common.btree

Methods in com.dbxml.db.common.btree with parameters of type Transaction
`void` `Paged.flush(Transaction tx)`
`void` `Paged.Page.read(Transaction tx)`
`void` `Paged.Page.write(Transaction tx)`
`RecordMetaData` `BTreeFiler.getRecordMetaData(Transaction tx, Key key)`
`Record` `BTreeFiler.readRecord(Transaction tx, Key key)`
`boolean` `BTreeFiler.writeRecord(Transaction tx, Key key, Value value)`
`boolean` `BTreeFiler.deleteRecord(Transaction tx, Key key)`
`long` `BTreeFiler.getRecordCount(Transaction tx)`
`RecordSet` `BTreeFiler.getRecordSet(Transaction tx)`
`long` `BTree.addValue(Transaction tx, Value value, long pointer)` addValue adds a Value to the BTree and associates a pointer with it.
`long` `BTree.removeValue(Transaction tx, Value value)` removeValue removes a Value from the BTree and returns the associated pointer for it.
`long` `BTree.findValue(Transaction tx, Value value)` findValue finds a Value in the BTree and returns the associated pointer for it.
`void` `BTree.query(Transaction tx, IndexQuery query, BTreeCallback callback)` query performs a query against the BTree and performs callback operations to report the search results.

Uses of Transaction in com.dbxml.db.common.filers

Methods in com.dbxml.db.common.filers with parameters of type Transaction
`void` `MemFiler.flush(Transaction tx)`
`RecordMetaData` `MemFiler.getRecordMetaData(Transaction tx, Key key)`
`Record` `MemFiler.readRecord(Transaction tx, Key key)`
`boolean` `MemFiler.writeRecord(Transaction tx, Key key, Value value)`
`boolean` `MemFiler.deleteRecord(Transaction tx, Key key)`
`long` `MemFiler.getRecordCount(Transaction tx)`
`RecordSet` `MemFiler.getRecordSet(Transaction tx)`
`void` `FSFiler.flush(Transaction tx)`
`RecordMetaData` `FSFiler.getRecordMetaData(Transaction tx, Key key)`
`Record` `FSFiler.readRecord(Transaction tx, Key key)`
`boolean` `FSFiler.writeRecord(Transaction tx, Key key, Value value)`
`boolean` `FSFiler.deleteRecord(Transaction tx, Key key)`
`long` `FSFiler.getRecordCount(Transaction tx)`
`RecordSet` `FSFiler.getRecordSet(Transaction tx)`

Uses of Transaction in com.dbxml.db.common.fulltext

Methods in com.dbxml.db.common.fulltext with parameters of type Transaction
`ResultSet` `FullTextQuery.execute(Transaction tx)`
`void` `FullTextIndexer.remove(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)`
`void` `FullTextIndexer.add(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)`
`IndexMatch[]` `FullTextIndexer.queryMatches(Transaction tx, IndexQuery query)`

Constructors in com.dbxml.db.common.fulltext with parameters of type Transaction
`FullTextResultSet(Transaction tx, Collection context, Query query, Key[] keySet)`

Uses of Transaction in com.dbxml.db.common.indexers

Methods in com.dbxml.db.common.indexers with parameters of type Transaction
`void` `ValueIndexer.remove(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)`
`void` `ValueIndexer.add(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)`
`IndexMatch[]` `ValueIndexer.queryMatches(Transaction tx, IndexQuery query)`
`void` `NameIndexer.remove(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)`
`void` `NameIndexer.add(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)`
`IndexMatch[]` `NameIndexer.queryMatches(Transaction tx, IndexQuery query)`

Uses of Transaction in com.dbxml.db.common.query

Methods in com.dbxml.db.common.query with parameters of type Transaction
`ResultSet` `QueryResolverBase.query(Transaction tx, Collection context, java.lang.String query, NamespaceMap nsMap, Key[] keys)`

Constructors in com.dbxml.db.common.query with parameters of type Transaction
`ResultSetBase(Transaction tx, Collection context, Query query, Key[] keySet)`

Uses of Transaction in com.dbxml.db.common.scripting

Methods in com.dbxml.db.common.scripting with parameters of type Transaction
`java.lang.Object` `ScriptTrigger.beforeInsert(Transaction tx, Key key, java.lang.Object newObj)`
`void` `ScriptTrigger.afterInsert(Transaction tx, Key key, java.lang.Object newObj)`
`java.lang.Object` `ScriptTrigger.beforeUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)`
`void` `ScriptTrigger.afterUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)`
`void` `ScriptTrigger.beforeDelete(Transaction tx, Key key, java.lang.Object oldObj)`
`void` `ScriptTrigger.afterDelete(Transaction tx, Key key, java.lang.Object oldObj)`
`void` `ScriptTrigger.beforeGet(Transaction tx, Key key)`
`void` `ScriptTrigger.afterGet(Transaction tx, Key key, java.lang.Object obj)`

Uses of Transaction in com.dbxml.db.common.xupdate

Methods in com.dbxml.db.common.xupdate with parameters of type Transaction
`void` `XUpdateImpl.execute(Transaction tx, DOMAdapter domAdapter)` Execute the set of XUpdate commands against a collection (in the form of a DOMAdapter).

Uses of Transaction in com.dbxml.db.core

Methods in com.dbxml.db.core with parameters of type Transaction
`Key` `Collection.insertDocument(Transaction tx, DocumentTable document)` insertDocument inserts a new Document into a dbXML Collection.
`void` `Collection.setDocument(Transaction tx, java.lang.Object docKey, DocumentTable document)` setDocument overwrites/updates an existing Document in a dbXML Collection.
`void` `Collection.remove(Transaction tx, java.lang.Object key)` remove removes an object from the Collection based on its Key, regardless of its type.
`DocumentTable` `Collection.getDocument(Transaction tx, java.lang.Object docKey)` getDocument retrieves a Document by Key.
`RecordMetaData` `Collection.getRecordMetaData(Transaction tx, java.lang.Object docKey)` getRecordMetaData returns metadata about the Record identified by the provided Key.
`Container` `Collection.getContainer(Transaction tx, java.lang.Object docKey)` getContainer retrieves a Container from the Collection.
`Record` `Collection.getRecord(Transaction tx, java.lang.Object recKey)` getRecord retrieves a binary Record from the Collection.
`void` `Collection.setRecord(Transaction tx, Record rec)` setValue stores a binary Record in the Collection.
`void` `Collection.setRecord(Transaction tx, java.lang.Object recKey, Value value)` setRecord stores a binary Record in the Collection.
`Key` `Collection.insertRecord(Transaction tx, Value value)` insertRecord stores a binary Record in the Collection and returns a newly generated Key.
`ResultSet` `Collection.queryCollection(Transaction tx, java.lang.String style, java.lang.String query, NamespaceMap nsMap)` queryCollection performs a query against the current collection using the specified style and query String.
`ResultSet` `Collection.queryDocument(Transaction tx, java.lang.String style, java.lang.String query, NamespaceMap nsMap, java.lang.Object key)` queryDocument performs a query against a single Document using the specified style, query string, and Document ID.
`ContainerSet` `Collection.getContainerSet(Transaction tx)` getContainerSet returns the set of Documents being maintained by this Collection.
`Key[]` `Collection.listKeys(Transaction tx)` listKeys returns a list of all object keys stored by this collection.
`long` `Collection.getKeyCount(Transaction tx)` getKeyCount returns the count of objects being maintained by this Collection.

Uses of Transaction in com.dbxml.db.core.adapter

Methods in com.dbxml.db.core.adapter with parameters of type Transaction
`long` `SimpleAdapter.getKeyCount(Transaction tx)`
`void` `SimpleAdapter.remove(Transaction tx, java.lang.Object key)`
`Key[]` `SimpleAdapter.listKeys(Transaction tx)`
`ResultSet` `SimpleAdapter.queryCollection(Transaction tx, java.lang.String style, java.lang.String query, NamespaceMap nsMap)`
`ResultSet` `SimpleAdapter.queryDocument(Transaction tx, java.lang.String style, java.lang.String query, NamespaceMap nsMap, java.lang.Object key)`
`Key[]` `Adapter.listKeys(Transaction tx)` listKeys returns a list of object keys stored managed by the Adapter.
`void` `Adapter.remove(Transaction tx, java.lang.Object key)` remove removes an object from the Adapter based on its Key.
`long` `Adapter.getKeyCount(Transaction tx)` getKeyCount returns the count of objects being maintained by this Adapter.
`ResultSet` `Adapter.queryCollection(Transaction tx, java.lang.String style, java.lang.String query, NamespaceMap nsMap)` queryCollection performs a query against the current collection using the specified style and query String.
`ResultSet` `Adapter.queryDocument(Transaction tx, java.lang.String style, java.lang.String query, NamespaceMap nsMap, java.lang.Object key)` queryDocument performs a query against a single Document using the specified style, query string, and Document ID.

Uses of Transaction in com.dbxml.db.core.filer

Methods in com.dbxml.db.core.filer with parameters of type Transaction
`RecordMetaData` `Filer.getRecordMetaData(Transaction tx, Key key)` getRecordMetaData returns metadata about the Record identified by the provided Key.
`Record` `Filer.readRecord(Transaction tx, Key key)` readRecord returns a Record from the Filer based on the specified Key.
`boolean` `Filer.writeRecord(Transaction tx, Key key, Value value)` writeRecord writes a Value to the Filer based on the specified Key.
`boolean` `Filer.deleteRecord(Transaction tx, Key key)` deleteRecord removes a Record from the Filer based on the specified Key.
`long` `Filer.getRecordCount(Transaction tx)` getRecordCount returns the number of Records in the Filer.
`RecordSet` `Filer.getRecordSet(Transaction tx)` getRecordSet returns a RecordSet object for the current Filer.
`void` `Filer.flush(Transaction tx)` flush forcefully flushes any unwritten buffers to disk.

Uses of Transaction in com.dbxml.db.core.indexer

Methods in com.dbxml.db.core.indexer with parameters of type Transaction
`void` `IndexManager.addDocument(Transaction tx, Key key, DocumentTable doc)`
`void` `IndexManager.removeDocument(Transaction tx, Key key, DocumentTable doc)`
`void` `Indexer.remove(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)` remove removes all references to the specified Key from the Indexer.
`void` `Indexer.add(Transaction tx, java.lang.String value, Key key, int pos, int elemID, int attrID)` add adds a Document to the Indexer.
`IndexMatch[]` `Indexer.queryMatches(Transaction tx, IndexQuery query)` queryMatches retrieves a set of MatchEntry instances that match the supplied query.
`void` `Indexer.flush(Transaction tx)` flush forcefully flushes any unwritten buffers to disk.

Uses of Transaction in com.dbxml.db.core.query

Methods in com.dbxml.db.core.query with parameters of type Transaction
`ResultSet` `QueryResolver.query(Transaction tx, Collection context, java.lang.String query, NamespaceMap nsMap, Key[] keys)` query compiles a Query against the specified Collection context and returns the query results.
`ResultSet` `QueryEngine.query(Transaction tx, Collection col, java.lang.String style, java.lang.String query, NamespaceMap nsMap, Key[] keys)` query performs the specified query and returns a NodeSet with any possible results from that query.
`ResultSet` `Query.execute(Transaction tx)` execute actually Executes the query and returns the resulting ResultSet.

Uses of Transaction in com.dbxml.db.core.transaction

Methods in com.dbxml.db.core.transaction with parameters of type Transaction
`void` `TransactionLog.start(Transaction tx)` start Starts a transaction participation for the current Collection and binds the specified Transaction to the current Thread.
`void` `TransactionLog.commit(Transaction tx)` commit ends a transaction participation for the current Collection and Thread.
`void` `TransactionLog.cancel(Transaction tx)` cancel ends a transaction participation for the current Collection and Thread.

Uses of Transaction in com.dbxml.db.core.trigger

Methods in com.dbxml.db.core.trigger with parameters of type Transaction
`java.lang.Object` `TriggerManager.fireBeforeInsert(Transaction tx, Key key, java.lang.Object newObj)` fireBeforeInsert fires beforeInsert events to all of the registered Triggers, unless a DBException is thrown.
`void` `TriggerManager.fireAfterInsert(Transaction tx, Key key, java.lang.Object newObj)` fireAfterInsert fires afterInsert events to all of the registered Triggers, unless a DBException is thrown.
`java.lang.Object` `TriggerManager.fireBeforeUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)` fireBeforeUpdate fires beforeUpdate events to all of the registered Triggers, unless a DBException is thrown.
`void` `TriggerManager.fireAfterUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)` fireAfterUpdate fires afterUpdate events to all of the registered Triggers, unless a DBException is thrown.
`void` `TriggerManager.fireBeforeDelete(Transaction tx, Key key, java.lang.Object oldObj)` fireBeforeDelete fires beforeDelete events to all of the registered Triggers, unless a DBException is thrown.
`void` `TriggerManager.fireAfterDelete(Transaction tx, Key key, java.lang.Object oldObj)` fireAfterDelete fires afterDelete events to all of the registered Triggers, unless a DBException is thrown.
`void` `TriggerManager.fireBeforeGet(Transaction tx, Key key)` fireBeforeGet fires beforeGet events to all of the registered Triggers, unless a DBException is thrown.
`void` `TriggerManager.fireAfterGet(Transaction tx, Key key, java.lang.Object obj)` fireAfterGet fires afterGet events to all of the registered Triggers, unless a DBException is thrown.
`java.lang.Object` `Trigger.beforeInsert(Transaction tx, Key key, java.lang.Object newObj)` beforeInsert is fired before a new Object is inserted into the Collection.
`void` `Trigger.afterInsert(Transaction tx, Key key, java.lang.Object newObj)` afterInsert is fired after a new Object is inserted into the Collection.
`java.lang.Object` `Trigger.beforeUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)` beforeUpdate is fired before a Object is updated in the Collection.
`void` `Trigger.afterUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)` afterUpdate is fired after a Object is updated in the Collection.
`void` `Trigger.beforeDelete(Transaction tx, Key key, java.lang.Object oldObj)` beforeDelete is fired before a Object is deleted from the Collection.
`void` `Trigger.afterDelete(Transaction tx, Key key, java.lang.Object oldObj)` afterDelete is fired after a Object is deleted from the Collection.
`void` `Trigger.beforeGet(Transaction tx, Key key)` beforeGet is fired before a Object is retrieved from the Collection.
`void` `Trigger.afterGet(Transaction tx, Key key, java.lang.Object obj)` afterGet is fired after a Object is retrieved from the Collection, but before it is actually returned.
`java.lang.Object` `SimpleTrigger.beforeInsert(Transaction tx, Key key, java.lang.Object newObj)`
`void` `SimpleTrigger.afterInsert(Transaction tx, Key key, java.lang.Object newObj)`
`java.lang.Object` `SimpleTrigger.beforeUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)`
`void` `SimpleTrigger.afterUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)`
`void` `SimpleTrigger.beforeDelete(Transaction tx, Key key, java.lang.Object oldObj)`
`void` `SimpleTrigger.afterDelete(Transaction tx, Key key, java.lang.Object oldObj)`
`void` `SimpleTrigger.beforeGet(Transaction tx, Key key)`
`void` `SimpleTrigger.afterGet(Transaction tx, Key key, java.lang.Object obj)`

Uses of Transaction in com.dbxml.db.enterprise.dbfiler

Methods in com.dbxml.db.enterprise.dbfiler with parameters of type Transaction
`void` `DBFiler.flush(Transaction tx)`
`RecordMetaData` `DBFiler.getRecordMetaData(Transaction tx, Key key)`
`Record` `DBFiler.readRecord(Transaction tx, Key key)`
`boolean` `DBFiler.writeRecord(Transaction tx, Key key, Value value)`
`boolean` `DBFiler.deleteRecord(Transaction tx, Key key)`
`long` `DBFiler.getRecordCount(Transaction tx)`
`RecordSet` `DBFiler.getRecordSet(Transaction tx)`

Uses of Transaction in com.dbxml.db.enterprise.sync

Methods in com.dbxml.db.enterprise.sync with parameters of type Transaction
`void` `SyncTrigger.afterDelete(Transaction tx, Key key, java.lang.Object oldObj)`
`void` `SyncTrigger.afterUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj)`
`void` `SyncTrigger.afterInsert(Transaction tx, Key key, java.lang.Object newObj)`

dbXML API

Copyright (c) 2004 The dbXML Group