DODS 7.6 API

com.lutris.appserver.server.sql.informix
Class InformixConnectionAllocator

java.lang.Object
  extended by com.lutris.appserver.server.sql.standard.StandardConnectionAllocator
      extended by com.lutris.appserver.server.sql.informix.InformixConnectionAllocator
All Implemented Interfaces:
ConnectionAllocator, ExtendedConnectionAllocator

public class InformixConnectionAllocator
extends StandardConnectionAllocator

An Informix database connection pool.

Since:
LBS1.8
Version:
$Revision: 1.1 $
Author:
Kyle Clark

Field Summary
protected  InformixLogicalDatabase logicalDatabase
          The logical database for this connection pool.
 
Fields inherited from class com.lutris.appserver.server.sql.standard.StandardConnectionAllocator
connectionAllocateCheckSql, connectionReleaseCheckSql, generation, initWaitingConnections, maxPreparedStatements, maxWaitingConnections, numRequests, password, queryTimeOut, shutDownStr, sqlLogging, transactionTimeOut, url, user
 
Constructor Summary
protected InformixConnectionAllocator(InformixLogicalDatabase logicalDatabase, Config connectionConfig)
          Creates an Informix database connetion pool.
 
Method Summary
protected  DBConnection createConnection()
          Creates a new Informix connection to be added to the connection pool.
 
Methods inherited from class com.lutris.appserver.server.sql.standard.StandardConnectionAllocator
allocate, drop, dropAllNow, finalize, getActiveCount, getDatabaseName, getMaxCount, getMaxCountDate, getRequestCount, incrementRequesteCount, performRollbackOnReset, release, resetMaxCount
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logicalDatabase

protected InformixLogicalDatabase logicalDatabase
The logical database for this connection pool.

Constructor Detail

InformixConnectionAllocator

protected InformixConnectionAllocator(InformixLogicalDatabase logicalDatabase,
                                      Config connectionConfig)
                               throws ConfigException
Creates an Informix database connetion pool.

Parameters:
logicalDatabase - the logical Informix 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.
Method Detail

createConnection

protected DBConnection createConnection()
                                 throws java.sql.SQLException
Creates a new Informix connection to be added to the connection pool.

Overrides:
createConnection in class StandardConnectionAllocator
Throws:
java.sql.SQLException - If a SQL error occures.
See Also:
InformixDBConnection

DODS 7.6 API