public abstract class TaminoAPI4JPm extends PMImpl
TaminoAPI4JRaPm, and
TaminoAPI4JDbPm.PMImpl.ListObserver| Constructor and Description |
|---|
TaminoAPI4JPm() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
create, getManager, parseQuery, select, select, selectpublic void init(JMManager pManager) throws JAXBException
PMInitializes the PM. Called from the
JAXBContextImpl upon initialization.
init in interface PMinit in class PMImplpManager - The manager being queried for configuration details.JAXBExceptionpublic java.lang.String getCollection()
public void setCollection(java.lang.String pCollection)
protected TXMLObject getTXMLObject(InoObject pElement)
protected TSAXObjectModel getTSAXObjectModel()
throws JAXBException
JAXBExceptionprotected abstract TConnection getTConnection()
throws PMException
PMExceptionpublic 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.PMExceptionpublic void insert(Element pElement) throws PMException
PMInserts the given document into the database.
PMExceptionpublic void update(Element pElement) throws PMException
PMUpdates the given document in the database.
PMExceptionpublic void delete(Element pElement) throws PMException
PMDeletes the given document from the database.
PMException