| 
 | ||||||||||
| 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
Abstract base class for persistence managers.
| Nested Class Summary | |
| static class | PMImpl.ListObserverThe ListObserveris a basicObserver, which collects result objects
 in aList. | 
| Constructor Summary | |
| PMImpl()Creates a new instance of PMImpl.java. | |
| Method Summary | |
|  java.lang.Object | create()Creates a new, empty element. | 
|  JMManager | getManager()Returns the manager being queried for configuration details. | 
|  void | init(JMManager pManager)Initializes the PM. | 
| protected  java.lang.String | parseQuery(java.lang.String pQuery,
           PMParams pPlaceHolderArgs) | 
|  void | select(Observer pObserver,
       java.lang.String pQuery)Reads documents matching the given query. | 
|  java.util.Iterator | select(java.lang.String pQuery)Returns an iterator to all documents matching the given query. | 
|  java.util.Iterator | select(java.lang.String pQuery,
       PMParams pPlaceHolderArgs)Returns an iterator to all documents matching the given query. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.apache.ws.jaxme.PM | 
| delete, insert, select, update | 
| Constructor Detail | 
public PMImpl()
Creates a new instance of PMImpl.java.
| Method Detail | 
public void init(JMManager pManager)
          throws JAXBException
PMInitializes the PM. Called from the
 JAXBContextImpl upon initialization.
init in interface PMpManager - The manager being queried for configuration details.
JAXBExceptionpublic JMManager getManager()
PMReturns the manager being queried for configuration details.
getManager in interface PM
public void select(Observer pObserver,
                   java.lang.String pQuery)
            throws JAXBException
PMReads documents matching the given query. For any document matching, the Observer's notify method is executed with the matching document as an argument.
select in interface PMpObserver - This Observer is notified for any matching document.
   The document is added as an argument.pQuery - The query to perform.
JAXBException
public java.util.Iterator select(java.lang.String pQuery)
                          throws JAXBException
PMReturns an iterator to all documents matching the given query.
select in interface PMpQuery - The query to perform.
JAXBException
public java.util.Iterator select(java.lang.String pQuery,
                                 PMParams pPlaceHolderArgs)
                          throws JAXBException
PMReturns an iterator to all documents matching the given query.
 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));
 
select in interface PMpQuery - The query to perform. May contain placeholders.pPlaceHolderArgs - An array of objects or null, if the
   query doesn't contain any placeholders.
JAXBException
public java.lang.Object create()
                        throws JAXBException
PMCreates a new, empty element.
create in interface PMJAXBException
protected java.lang.String parseQuery(java.lang.String pQuery,
                                      PMParams pPlaceHolderArgs)
                               throws PMException
PMException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||