de.ispsoft.jaxme
Class JMJdbcDataSourceManager

java.lang.Object
  extended byde.ispsoft.jaxme.JMManagerImpl
      extended byde.ispsoft.jaxme.JMJdbcManager
          extended byde.ispsoft.jaxme.JMJdbcDataSourceManager
All Implemented Interfaces:
JMManager

public abstract class JMJdbcDataSourceManager
extends JMJdbcManager

A subclass of the JMJdbcManager that uses a JDBC DataSource rather to obtain a connection and not the DriverManager.

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes inherited from class de.ispsoft.jaxme.JMManagerImpl
JMManagerImpl.MyObserver
 
Field Summary
 
Fields inherited from class de.ispsoft.jaxme.JMJdbcManager
CONFIGURATION_NODE_NAME, CREATE_KEY_DONT, CREATE_KEY_POST_INSERT, CREATE_KEY_PRE_INSERT, datasource, DATASOURCE_NODE_NAME, driver, DRIVER_NODE_NAME, password, PASSWORD_NODE_NAME, url, URL_NODE_NAME, useDataSource, user, USER_NODE_NAME
 
Fields inherited from class de.ispsoft.jaxme.JMManagerImpl
ELEMENT_CLASS_NAME, HANDLER_CLASS_NAME, jmAnyElementClass, jmContentHandlerClass
 
Fields inherited from interface de.ispsoft.jaxme.JMManager
BIGINT, BIT, BLOB, BOOLEAN, CLOB, DECIMAL, DOUBLE, FLOAT, INTEGER, SMALLINT, TIMESTAMP, TINYINT, VARBINARY, VARCHAR
 
Constructor Summary
JMJdbcDataSourceManager()
          Creates a new instance of JMJdbcDataSourceManager
 
Method Summary
 java.sql.Connection getConnection()
          Returns an open JDBC connection
protected  void init(JMManagerFactory pFactory, java.lang.String pNamespaceURI, java.lang.String pLocalName, boolean pConnect)
          Initializes the manager.
 
Methods inherited from class de.ispsoft.jaxme.JMJdbcManager
delete, executeQueries, executeStatement, getDeleteQueries, getFieldList, getInsertCreatesPrimaryKey, getInsertQueries, getPreparedStatement, getQuery, getTableList, getUpdateQueries, getWhere, init, init, insert, newPrimaryKey, parseConfiguration, select, update
 
Methods inherited from class de.ispsoft.jaxme.JMManagerImpl
create, getJMAnyElementClass, getJMContentHandler, getLocalName, getNamespaceSupport, getNamespaceURI, select, select, select, select, select, select, select, toSAX, toWriter, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMJdbcDataSourceManager

public JMJdbcDataSourceManager()
Creates a new instance of JMJdbcDataSourceManager

Method Detail

init

protected void init(JMManagerFactory pFactory,
                    java.lang.String pNamespaceURI,
                    java.lang.String pLocalName,
                    boolean pConnect)
             throws org.xml.sax.SAXException
Initializes the manager.

Throws:
org.xml.sax.SAXException

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException,
                                         org.xml.sax.SAXException
Description copied from class: JMJdbcManager

Returns an open JDBC connection

Overrides:
getConnection in class JMJdbcManager
Throws:
java.sql.SQLException
org.xml.sax.SAXException