org.apache.ws.jaxme.pm.jdbc

Class PMJdbcImpl

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

Connection
getConnection()
Creates a new database connection.
String
getJdbcDriver()
Returns the configured JDBC driver.
String
getJdbcPassword()
Returns the configured JDBC password.
String
getJdbcUrl()
Returns the configured JDBC URL.
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, init, parseQuery, select, select, select

Constructor Details

PMJdbcImpl

public PMJdbcImpl()
Creates a new instance of PMJdbcImpl.

Method Details

getConnection

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

getJdbcDriver

public String getJdbcDriver()
Returns the configured JDBC driver.

getJdbcPassword

public String getJdbcPassword()
Returns the configured JDBC password.

getJdbcUrl

public String getJdbcUrl()
Returns the configured JDBC URL.

getJdbcUser

public String getJdbcUser()
Returns the configured JDBC user.

init

public void init(JMManager pManager)
            throws JAXBException
Initializes the PM. Called from the JAXBContextImpl upon initialization.
Specified by:
init in interface PM
Overrides:
init in interface PMImpl
Parameters:
pManager - The manager being queried for configuration details.