|
|||||||||
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.ino.api4j.TaminoAPI4JPm
public abstract class TaminoAPI4JPm
Common base class for
TaminoAPI4JRaPm
, and
TaminoAPI4JDbPm
.
Nested Class Summary |
---|
Nested classes/interfaces 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()
Returns the Tamino database collection. |
protected abstract 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)
Sets the Tamino database collection. |
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 void init(JMManager pManager) throws JAXBException
PM
Initializes the PM. Called from the
JAXBContextImpl
upon initialization.
init
in interface PM
init
in class PMImpl
pManager
- The manager being queried for configuration details.
JAXBException
public java.lang.String getCollection()
public void setCollection(java.lang.String pCollection)
protected TXMLObject getTXMLObject(InoObject pElement)
protected TSAXObjectModel getTSAXObjectModel() throws JAXBException
JAXBException
protected abstract TConnection getTConnection() throws PMException
PMException
public void select(Observer pObserver, java.lang.String pQuery, PMParams pParams) throws PMException
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.pParams
- An array of objects or null, if the
query doesn't contain any placeholders.
PMException
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 |