org.apache.ws.jaxme.pm.jdbc
Class PMJdbcImpl

java.lang.Object
  extended by org.apache.ws.jaxme.pm.impl.PMImpl
      extended by org.apache.ws.jaxme.pm.jdbc.PMJdbcImpl
All Implemented Interfaces:
PM

public abstract class PMJdbcImpl
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
PMJdbcImpl()
          Creates a new instance of PMJdbcImpl.
 
Method Summary
 java.sql.Connection getConnection()
          Creates a new database connection.
 java.lang.String getJdbcDriver()
          Returns the configured JDBC driver.
 java.lang.String getJdbcPassword()
          Returns the configured JDBC password.
 java.lang.String getJdbcUrl()
          Returns the configured JDBC URL.
 java.lang.String getJdbcUser()
          Returns the configured JDBC user.
 void init(JMManager pManager)
          Initializes the PM.
 
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

PMJdbcImpl

public PMJdbcImpl()

Creates a new instance of PMJdbcImpl.

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

getJdbcDriver

public java.lang.String getJdbcDriver()
Returns the configured JDBC driver.


getJdbcUrl

public java.lang.String getJdbcUrl()
Returns the configured JDBC URL.


getJdbcUser

public java.lang.String getJdbcUser()
Returns the configured JDBC user.


getJdbcPassword

public java.lang.String getJdbcPassword()
Returns the configured JDBC password.


getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Creates a new database connection.

Throws:
java.sql.SQLException