Enhydra 3.1 API

com.lutris.appserver.server.sql.msql
Class MsqlConnectionAllocator

java.lang.Object
  |
  +--com.lutris.appserver.server.sql.standard.StandardConnectionAllocator
        |
        +--com.lutris.appserver.server.sql.msql.MsqlConnectionAllocator

public class MsqlConnectionAllocator
extends StandardConnectionAllocator

An Msql database connection allocator used by the Msql logical database.

Since:
LBS1.8
Version:
$Revision: 1.7.12.1 $
See Also:
StandardConnectionAllocator

Fields inherited from class com.lutris.appserver.server.sql.standard.StandardConnectionAllocator
generation, logicalDatabase, maxPreparedStatements, numRequests, password, queryTimeOut, sqlLogging, transactionTimeOut, url, user
 
Constructor Summary
protected MsqlConnectionAllocator(MsqlLogicalDatabase logicalDatabase, Config connectionConfig)
          Creates an Msql database connection allocator.
 
Method Summary
protected  DBConnection createConnection()
          Creates a new Msql connection to be added to the connection pool.
 
Methods inherited from class com.lutris.appserver.server.sql.standard.StandardConnectionAllocator
allocate, drop, dropAllNow, finalize, getActiveCount, getMaxCount, getMaxCountDate, getRequestCount, release, resetMaxCount
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsqlConnectionAllocator

protected MsqlConnectionAllocator(MsqlLogicalDatabase logicalDatabase,
                                  Config connectionConfig)
                           throws ConfigException
Creates an Msql database connection allocator.
Parameters:
logicalDatabase - the logical Msql database for which connections are pooled.
connectionConfig - configuration parameters for the database connections. There are no Informix specific configuration data.
Throws:
ConfigException - If bad configuration information is given in the config file.
See Also:
StandardConnectionAllocator.StandardConnectionAllocator(com.lutris.appserver.server.sql.LogicalDatabase, com.lutris.util.Config)
Method Detail

createConnection

protected DBConnection createConnection()
                                 throws java.sql.SQLException
Creates a new Msql connection to be added to the connection pool.
Overrides:
createConnection in class StandardConnectionAllocator
Throws:
java.sql.SQLException - If a SQL error occures.

Enhydra 3.1 API