org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql
Class StaticConnectionProvider

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.StaticConnectionProvider
All Implemented Interfaces:
Serializable, ConnectionProvider

public class StaticConnectionProvider
extends Object
implements ConnectionProvider

Creation-Date: 07.04.2006, 14:54:57

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
StaticConnectionProvider(Connection connection)
           
 
Method Summary
 Connection createConnection(String user, String password)
          Although named getConnection() this method should always return a new connection when being queried or should wrap the connection in a way so that calls to "close()" on that connection do not prevent subsequent calls to this method to fail.
 Object getConnectionHash()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticConnectionProvider

public StaticConnectionProvider(Connection connection)
Method Detail

createConnection

public Connection createConnection(String user,
                                   String password)
                            throws SQLException
Although named getConnection() this method should always return a new connection when being queried or should wrap the connection in a way so that calls to "close()" on that connection do not prevent subsequent calls to this method to fail.

Specified by:
createConnection in interface ConnectionProvider
Parameters:
user - the user name.
password - the password.
Returns:
Throws:
SQLException

getConnectionHash

public Object getConnectionHash()
Specified by:
getConnectionHash in interface ConnectionProvider