org.apache.ws.jaxme.pm.impl
Class PMIdImpl

java.lang.Object
  extended by org.apache.ws.jaxme.pm.impl.PMImpl
      extended by org.apache.ws.jaxme.pm.impl.PMIdImpl
All Implemented Interfaces:
PM
Direct Known Subclasses:
InoManager, XmlDbPM

public abstract class PMIdImpl
extends PMImpl

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.ws.jaxme.pm.impl.PMImpl
PMImpl.ListObserver
 
Constructor Summary
PMIdImpl()
           
 
Method Summary
 java.lang.String getGetIdMethodName()
          Returns the name of the method fetching the object ID.
protected  java.lang.String getId(Element pElement)
           
 void init(JMManager pManager)
          Initializes the PM.
 void setGetIdMethodName(java.lang.String pProperty)
          Sets the name of the method fetching the object ID.
 
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
 
Methods inherited from interface org.apache.ws.jaxme.PM
delete, insert, select, update
 

Constructor Detail

PMIdImpl

public PMIdImpl()
Method Detail

init

public void init(JMManager pManager)
          throws JAXBException
Description copied from interface: PM

Initializes the PM. Called from the JAXBContextImpl upon initialization.

Specified by:
init in interface PM
Overrides:
init in class PMImpl
Parameters:
pManager - The manager being queried for configuration details.
Throws:
JAXBException

setGetIdMethodName

public void setGetIdMethodName(java.lang.String pProperty)

Sets the name of the method fetching the object ID.


getGetIdMethodName

public java.lang.String getGetIdMethodName()

Returns the name of the method fetching the object ID.


getId

protected java.lang.String getId(Element pElement)
                          throws java.lang.NoSuchMethodException,
                                 java.lang.IllegalAccessException,
                                 java.lang.reflect.InvocationTargetException,
                                 PMException
Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
PMException