com.basecmp.core.jdbc
Class JNDIConnectionFactory

java.lang.Object
  extended bycom.basecmp.core.jdbc.JNDIConnectionFactory
All Implemented Interfaces:
IConnectionFactory

public class JNDIConnectionFactory
extends java.lang.Object
implements IConnectionFactory

ConnectionFactory für die Verwendung in BaseCMP, implementiert auf Basis einer Datasource.

Author:
oros

Field Summary
static boolean enableProfiling
           
 
Constructor Summary
JNDIConnectionFactory()
           
 
Method Summary
 void freeConnection(java.sql.Connection connection)
          Befreit und schliesst ggf die übergebene, anonyme JDBC-Connection (implmentierungsabhängig).
 void freeConnection(java.lang.String name, java.sql.Connection connection)
          Befreit und schliesst ggf die übergebene, benannte JDBC-Connection (implmentierungsabhängig).
 java.sql.Connection getConnection()
          Liefert, abhängig von der Implementierung, eine anonyme oder Default-JDBC-Connection
 java.sql.Connection getConnection(java.lang.String name)
          Liefert eine benannte JDBC-Connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enableProfiling

public static boolean enableProfiling
Constructor Detail

JNDIConnectionFactory

public JNDIConnectionFactory()
Method Detail

freeConnection

public void freeConnection(java.sql.Connection connection)
                    throws java.sql.SQLException
Description copied from interface: IConnectionFactory
Befreit und schliesst ggf die übergebene, anonyme JDBC-Connection (implmentierungsabhängig).

Specified by:
freeConnection in interface IConnectionFactory
Throws:
java.sql.SQLException

freeConnection

public void freeConnection(java.lang.String name,
                           java.sql.Connection connection)
                    throws java.sql.SQLException
Description copied from interface: IConnectionFactory
Befreit und schliesst ggf die übergebene, benannte JDBC-Connection (implmentierungsabhängig).

Specified by:
freeConnection in interface IConnectionFactory
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Description copied from interface: IConnectionFactory
Liefert, abhängig von der Implementierung, eine anonyme oder Default-JDBC-Connection

Specified by:
getConnection in interface IConnectionFactory
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection(java.lang.String name)
                                  throws java.sql.SQLException
Description copied from interface: IConnectionFactory
Liefert eine benannte JDBC-Connection.

Specified by:
getConnection in interface IConnectionFactory
Throws:
java.sql.SQLException


Copyright © 2004 by basecmp® - Professional Web Solutions