|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.pm.impl.PMImpl
org.apache.ws.jaxme.pm.ino.api4j.TaminoAPI4JPm
| Nested Class Summary |
| Nested classes inherited from class org.apache.ws.jaxme.pm.impl.PMImpl |
PMImpl.ListObserver |
| Constructor Summary | |
TaminoAPI4JPm()
|
|
| Method Summary | |
void |
delete(Element pElement)
Deletes the given document from the database. |
java.lang.String |
getCollection()
|
java.lang.String |
getJndiReference()
|
protected TConnection |
getTConnection()
|
protected TSAXObjectModel |
getTSAXObjectModel()
|
protected TXMLObject |
getTXMLObject(InoObject pElement)
|
void |
init(JMManager pManager)
Initializes the PM. |
void |
insert(Element pElement)
Inserts the given document into the database. |
void |
select(Observer pObserver,
java.lang.String pQuery,
PMParams pParams)
Reads documents matching the given query. |
void |
setCollection(java.lang.String pCollection)
|
void |
setJndiReference(java.lang.String pJndiReference)
|
void |
update(Element pElement)
Updates the given document in the database. |
| 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 TaminoAPI4JPm()
| Method Detail |
public java.lang.String getCollection()
public void setCollection(java.lang.String pCollection)
public java.lang.String getJndiReference()
public void setJndiReference(java.lang.String pJndiReference)
public void init(JMManager pManager)
throws JAXBException
PMInitializes the PM. Called from the
JAXBContextImpl upon initialization.
init in interface PMinit in class PMImplJAXBExceptionprotected TXMLObject getTXMLObject(InoObject pElement)
protected TSAXObjectModel getTSAXObjectModel()
throws JAXBException
JAXBException
protected TConnection getTConnection()
throws javax.naming.NamingException,
TServerNotAvailableException
javax.naming.NamingException
TServerNotAvailableException
public void select(Observer pObserver,
java.lang.String pQuery,
PMParams pParams)
throws PMException
PMReads 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.pParams - An array of objects or null, if the
query doesn't contain any placeholders.
PMException
public void insert(Element pElement)
throws PMException
PMInserts the given document into the database.
PMException
public void update(Element pElement)
throws PMException
PMUpdates the given document in the database.
PMException
public void delete(Element pElement)
throws PMException
PMDeletes the given document from the database.
PMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||