Enhydra 3.1 API

com.lutris.appserver.server.sql.sybase
Class SybaseConnectionAllocator

java.lang.Object
  |
  +--com.lutris.appserver.server.sql.standard.StandardConnectionAllocator
        |
        +--com.lutris.appserver.server.sql.sybase.SybaseConnectionAllocator

public class SybaseConnectionAllocator
extends StandardConnectionAllocator

An Sybase database connection allocator used by the Sybase 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 SybaseConnectionAllocator(SybaseLogicalDatabase logicalDatabase, Config connectionConfig)
          Creates an Sybase database connection allocator.
 
Method Summary
protected  DBConnection createConnection()
          Creates a new Sybase 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

SybaseConnectionAllocator

protected SybaseConnectionAllocator(SybaseLogicalDatabase logicalDatabase,
                                    Config connectionConfig)
                             throws ConfigException
Creates an Sybase database connection allocator.
Parameters:
logicalDatabase - the logical Sybase 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 Sybase 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