|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.pm.impl.PMImpl org.apache.ws.jaxme.pm.impl.PMIdImpl org.apache.ws.jaxme.pm.ino.InoManager
public class InoManager
An implementation of a JMManager for a Tamino database.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.ws.jaxme.pm.impl.PMImpl |
---|
PMImpl.ListObserver |
Constructor Summary | |
---|---|
InoManager()
|
Method Summary | |
---|---|
void |
delete(Element pElement)
Deletes the given document from the database. |
protected java.lang.String |
getDeleteQuery(Element pElement)
Returns a query suited for deleting the element. |
java.lang.String |
getElementTag()
Returns the qualified element name of the root element. |
java.lang.String |
getIdTag()
Returns the qualified attribute name of the ID attribute. |
protected java.lang.String |
getInsertQuery(Element pElement)
Returns a query suited for inserting the element. |
protected java.lang.String |
getPassword()
|
protected java.net.HttpURLConnection |
getResponse(java.lang.String pQuery)
Performs a single database query. |
protected java.lang.String |
getUpdateQuery(Element pElement)
Returns a query suited for updating the element. |
protected java.lang.String |
getUser()
|
void |
init(JMManager pManager)
Initializes the PM. |
void |
insert(Element pElement)
Inserts the given document into the database. |
protected void |
performQuery(java.lang.String pQuery,
InoResponseHandler pHandler)
Parses a single INO response document. |
protected InoResponseHandler |
performQuery(java.lang.String pQuery,
java.util.List pList)
Performs a single database query. |
void |
select(Observer pObserver,
java.lang.String pQuery,
PMParams pPlaceHolderArgs)
Reads documents matching the given query. |
void |
setElementTag(java.lang.String pElementTag)
Sets the qualified element name of the root element. |
void |
setIdTag(java.lang.String pIdTag)
Returns the qualified attribute name of the ID attribute. |
void |
update(Element pElement)
Updates the given document in the database. |
Methods inherited from class org.apache.ws.jaxme.pm.impl.PMIdImpl |
---|
getGetIdMethodName, getId, setGetIdMethodName |
Methods inherited from class org.apache.ws.jaxme.pm.impl.PMImpl |
---|
create, getManager, parseQuery, select, select, select |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InoManager()
Method Detail |
---|
protected java.lang.String getUser()
protected java.lang.String getPassword()
public java.lang.String getElementTag()
public void setElementTag(java.lang.String pElementTag)
public java.lang.String getIdTag()
public void setIdTag(java.lang.String pIdTag)
public void init(JMManager pManager) throws JAXBException
PM
Initializes the PM. Called from the
JAXBContextImpl
upon initialization.
init
in interface PM
init
in class PMIdImpl
pManager
- The manager being queried for configuration details.
JAXBException
protected java.lang.String getDeleteQuery(Element pElement) throws JAXBException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.io.UnsupportedEncodingException
Returns a query suited for deleting the element.
JAXBException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.io.UnsupportedEncodingException
protected java.lang.String getUpdateQuery(Element pElement) throws JAXBException, java.io.UnsupportedEncodingException
Returns a query suited for updating the element.
JAXBException
java.io.UnsupportedEncodingException
protected java.lang.String getInsertQuery(Element pElement) throws JAXBException, java.io.UnsupportedEncodingException
Returns a query suited for inserting the element.
JAXBException
java.io.UnsupportedEncodingException
protected java.net.HttpURLConnection getResponse(java.lang.String pQuery) throws org.xml.sax.SAXException
Performs a single database query.
org.xml.sax.SAXException
protected InoResponseHandler performQuery(java.lang.String pQuery, java.util.List pList) throws org.xml.sax.SAXException
Performs a single database query.
org.xml.sax.SAXException
protected void performQuery(java.lang.String pQuery, InoResponseHandler pHandler) throws org.xml.sax.SAXException
Parses a single INO response document.
org.xml.sax.SAXException
public void select(Observer pObserver, java.lang.String pQuery, PMParams pPlaceHolderArgs) throws JAXBException
PM
Reads documents matching the given query. For any document matching, the Observer's notify method is executed with the matching document as an argument.
The query may contain placeholders. If it does, you have
to supply an instance of PMParams
with the placeholder
values. Example:
manager.select("Name = ? and Id = ?", new PMParams().addString("Someone").addInt(4));
pObserver
- This Observer is notified for any matching document.
The document is added as an argument.pQuery
- The query to perform. May contain placeholders.pPlaceHolderArgs
- An array of objects or null, if the
query doesn't contain any placeholders.
JAXBException
public void insert(Element pElement) throws PMException
PM
Inserts the given document into the database.
PMException
public void update(Element pElement) throws PMException
PM
Updates the given document in the database.
PMException
public void delete(Element pElement) throws PMException
PM
Deletes the given document from the database.
PMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |