com.basecmp.core.jdbc
Interface IConnectionFactory

All Known Implementing Classes:
JNDIConnectionFactory, MySqlConnection, NamedConnection, NamedConnectionPool, SimplePooledMySqlConnection

public interface IConnectionFactory

Factory-Interface für Klassen, die JDBC-Connections zur Verfügung stellen und ggf auch in einem Pool verwalten.

Author:
Wolfgang Schröder

Method Summary
 void freeConnection(java.sql.Connection connection)
          Befreit und schliesst ggf die übergebene, anonyme JDBC-Connection (implmentierungsabhängig).
 void freeConnection(java.lang.String connectionName, 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 connectionName)
          Liefert eine benannte JDBC-Connection.
 

Method Detail

freeConnection

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

Throws:
java.sql.SQLException

freeConnection

public void freeConnection(java.lang.String connectionName,
                           java.sql.Connection connection)
                    throws java.sql.SQLException
Befreit und schliesst ggf die übergebene, benannte JDBC-Connection (implmentierungsabhängig).

Throws:
java.sql.SQLException

getConnection

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

Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection(java.lang.String connectionName)
                                  throws java.sql.SQLException
Liefert eine benannte JDBC-Connection.

Throws:
java.sql.SQLException


Copyright © 2004 by basecmp® - Professional Web Solutions