org.apache.ws.jaxme.pm.xmldb

Class XmlDbPM

public class XmlDbPM extends PMIdImpl

This is a persistence manager for the XML::DB interface. In other words, using this persistence manager you may read documents from a database via the XML::DB API or write them into the database using the same API.
This persistence manager is generic: The same manager works fine for any JAXB element.
Constructor Summary
XmlDbPM()
Creates a new instance of XmlDbPM.
Method Summary
voiddelete(Element pElement)
StringgetCollection()
Returns the collection name.
ClassgetDriverClass()
Returns the driver class.
StringgetPassword()
Returns the password.
StringgetUser()
Returns the users name.
protected CollectiongetXmlDbCollection()
Returns the database collection by invoking DatabaseManager#getCollection(String).
StringgetXPathQueryService()
Returns the name of the XPathQueryService.
StringgetXPathQueryServiceVersion()
Returns the version of the XPathQueryService.
voidinit(JMManager pManager)
voidinsert(Element pElement)
voidselect(Observer pObserver, String pQuery, PMParams pPlaceHolderArgs)
voidsetCollection(String pCollection)
Sets the collection name.
voidsetDriverClass(Class pDriverClass)
Sets the driver class.
voidsetPassword(String pPassword)
Sets the password.
voidsetUser(String pUser)
Sets the users name.
voidsetXPathQueryService(String pXpathQueryService)
Sets the name of the XPathQueryService.
voidsetXPathQueryServiceVersion(String pXpathQueryServiceVersion)
Sets the version of the XPathQueryService.
voidupdate(Element pElement)

Constructor Detail

XmlDbPM

public XmlDbPM()
Creates a new instance of XmlDbPM.

Method Detail

delete

public void delete(Element pElement)

getCollection

public String getCollection()
Returns the collection name.

getDriverClass

public Class getDriverClass()
Returns the driver class.

getPassword

public String getPassword()
Returns the password.

getUser

public String getUser()
Returns the users name.

getXmlDbCollection

protected Collection getXmlDbCollection()
Returns the database collection by invoking DatabaseManager#getCollection(String).

getXPathQueryService

public String getXPathQueryService()
Returns the name of the XPathQueryService. Defaults to "XPathQueryService".

getXPathQueryServiceVersion

public String getXPathQueryServiceVersion()
Returns the version of the XPathQueryService. Defaults to "1.0".

init

public void init(JMManager pManager)

insert

public void insert(Element pElement)

select

public void select(Observer pObserver, String pQuery, PMParams pPlaceHolderArgs)

setCollection

public void setCollection(String pCollection)
Sets the collection name.

setDriverClass

public void setDriverClass(Class pDriverClass)
Sets the driver class.

setPassword

public void setPassword(String pPassword)
Sets the password.

setUser

public void setUser(String pUser)
Sets the users name.

setXPathQueryService

public void setXPathQueryService(String pXpathQueryService)
Sets the name of the XPathQueryService. Defaults to "XPathQueryService".

setXPathQueryServiceVersion

public void setXPathQueryServiceVersion(String pXpathQueryServiceVersion)
Sets the version of the XPathQueryService. Defaults to "1.0".

update

public void update(Element pElement)