|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.dbxml.db.core.adapter.SimpleAdapter
SimpleAdapter is a base class for implementing custom Adapters.
| Constructor Summary | |
SimpleAdapter(Collection col)
|
|
| Method Summary | |
java.lang.String |
getCanonicalName()
getCanonicalName returns the canonical name for the underlying Collection. |
Collection |
getCollection()
getCollection returns a reference to the underlying Collection. |
long |
getKeyCount(Transaction tx)
getKeyCount returns the count of objects being maintained by this Adapter. |
java.lang.String |
getName()
getName returns the name for the underlying Collection. |
Key[] |
listKeys(Transaction tx)
listKeys returns a list of object keys stored managed by the Adapter. |
ResultSet |
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 |
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. |
void |
remove(Transaction tx,
java.lang.Object key)
remove removes an object from the Adapter based on its Key. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleAdapter(Collection col)
| Method Detail |
public Collection getCollection()
Adapter
getCollection in interface Adapterpublic java.lang.String getName()
Adapter
getName in interface Adapterpublic java.lang.String getCanonicalName()
Adapter
getCanonicalName in interface Adapter
public long getKeyCount(Transaction tx)
throws DBException
Adapter
getKeyCount in interface Adaptertx - The controlling Transaction
DBException - If a Database Exception occurs
public void remove(Transaction tx,
java.lang.Object key)
throws DBException
Adapter
remove in interface Adaptertx - The controlling Transactionkey - The Object's Key
DBException - If a Database Exception occurs
public Key[] listKeys(Transaction tx)
throws DBException
Adapter
listKeys in interface Adaptertx - The controlling Transaction
DBException - If a Database Exception occurs
public ResultSet queryCollection(Transaction tx,
java.lang.String style,
java.lang.String query,
NamespaceMap nsMap)
throws DBException
Adapter
queryCollection in interface Adaptertx - The controlling Transactionstyle - The query style to use (ex: XPath)query - The query to executensMap - The namespace Map (if any)
DBException - If a Database Exception occurs
public ResultSet queryDocument(Transaction tx,
java.lang.String style,
java.lang.String query,
NamespaceMap nsMap,
java.lang.Object key)
throws DBException
Adapter
queryDocument in interface Adaptertx - The controlling Transactionstyle - The query style to use (ex: XPath)query - The query to executensMap - The namespace Map (if any)key - The Document to query
DBException - If a Database Exception occurs
|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||