|
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
com.dbxml.db.common.adapters.JAXBElementAdapter
JAXElementAdapter adapts a dbXML Collection to support the management of JAXB-bound Java classes.
Constructor Summary | |
JAXBElementAdapter(Collection col)
|
Method Summary | |
javax.xml.bind.Element |
getObject(Transaction tx,
java.lang.Object key)
getObject instantiates and returns a JAXB Element object based on the provided Key. |
Key |
insertObject(Transaction tx,
javax.xml.bind.Element obj)
insertObject inserts an JAXB Element object into the Collection and returns a newly generated Key. |
void |
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. |
void |
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. |
Methods inherited from class com.dbxml.db.core.adapter.SimpleAdapter |
getCanonicalName, getCollection, getKeyCount, getName, listKeys, queryCollection, queryDocument, remove |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JAXBElementAdapter(Collection col)
Method Detail |
public void setObject(Transaction tx, java.lang.Object key, javax.xml.bind.Element obj) throws DBException
tx
- The controlling Transactionkey
- The Key to useobj
- The Object to set
DBException
- If a Database Exception occurspublic Key insertObject(Transaction tx, javax.xml.bind.Element obj) throws DBException
tx
- The controlling Transactionobj
- The Object to insert
DBException
- If a Database Exception occurspublic void insertObject(Transaction tx, java.lang.Object key, javax.xml.bind.Element obj) throws DBException
tx
- The controlling Transactionkey
- The Key to useobj
- The Object to insert
DBException
- If a Database Exception occurspublic javax.xml.bind.Element getObject(Transaction tx, java.lang.Object key) throws DBException
tx
- The controlling Transactionkey
- The Document Key
DBException
- If a Database Exception occurs
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |