ca.idms.jdbc
Class IdmsConnectionPoolDataSource

java.lang.Object
  extended by ca.idms.jdbc.IdmsCommonDataSource
      extended by ca.idms.jdbc.IdmsCommonPoolDataSource
          extended by ca.idms.jdbc.IdmsConnectionPoolDataSource
All Implemented Interfaces:
IdmsDriverInterface, javax.sql.CommonDataSource, javax.sql.ConnectionPoolDataSource

public class IdmsConnectionPoolDataSource
extends IdmsCommonPoolDataSource
implements javax.sql.ConnectionPoolDataSource

The CA IDMS JDBC ConnectionPoolDataSource implementation class.

Since:
5.0
Version:
1.10, 09/04/02
Author:
Dave Ross
See Also:
IdmsDataSource, IdmsPooledConnection

Field Summary
 
Fields inherited from class ca.idms.jdbc.IdmsCommonDataSource
CCI, IDMS, TCP
 
Fields inherited from interface ca.idms.jdbc.IdmsDriverInterface
ACCOUNT, BATCH, CCIHOST, CCIPORT, CSUSPEND, CUSTOM, DEF_CCIPORT, DEF_TASK, DEFSCHEM, EWAIT, INFO, INTERACTIVE, NODE, PASSWORD, PROGRAM, RSINT, SBUFLEN, SERVICE, SSL, STRACE, SUSPEND, TASK, USER, VIA
 
Constructor Summary
IdmsConnectionPoolDataSource()
           
 
Method Summary
 javax.sql.PooledConnection getPooledConnection()
          Connect using the default user id and password.
 javax.sql.PooledConnection getPooledConnection(java.lang.String uid, java.lang.String pwd)
          Connect using the specified user id and password.
 
Methods inherited from class ca.idms.jdbc.IdmsCommonPoolDataSource
getInitialPoolSize, getMaxIdleTime, getMaxPoolSize, getMaxStatements, getMinPoolSize, getPropertyCycle, list, setInitialPoolSize, setMaxIdleTime, setMaxPoolSize, setMaxStatements, setMinPoolSize, setPropertyCycle
 
Methods inherited from class ca.idms.jdbc.IdmsCommonDataSource
getAccountInfo, getConnectSuspend, getDatabaseName, getDataSourceName, getDefaultSchema, getDescription, getExternalWait, getIdmsConnection, getIdmsConnection, getLoginTimeout, getLogWriter, getNetworkProtocol, getNodeName, getPassword, getPortNumber, getProgramName, getResourceInterval, getRoleName, getServerLength, getServerName, getServerTrace, getSuspendStrategy, getTaskCode, getUser, getViaNodeName, isIdentityAudited, isSsl, list, setAccountInfo, setConnectSuspend, setDatabaseName, setDataSourceName, setDefaultSchema, setDescription, setExternalWait, setIdentityAudited, setLoginTimeout, setLogWriter, setNetworkProtocol, setNodeName, setPassword, setPortNumber, setProgramName, setResourceInterval, setRoleName, setServerLength, setServerName, setServerTrace, setSsl, setSuspendStrategy, setTaskCode, setUser, setViaNodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Constructor Detail

IdmsConnectionPoolDataSource

public IdmsConnectionPoolDataSource()
Method Detail

getPooledConnection

public javax.sql.PooledConnection getPooledConnection()
                                               throws java.sql.SQLException
Connect using the default user id and password.

Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
Returns:
an IdmsPooledConnection to the database
Throws:
java.sql.SQLException - if an error occurs.

getPooledConnection

public javax.sql.PooledConnection getPooledConnection(java.lang.String uid,
                                                      java.lang.String pwd)
                                               throws java.sql.SQLException
Connect using the specified user id and password.

Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
Parameters:
uid - the IDMS user id, can't be null, IDMS will complain
pwd - the IDMS password, can be null if IDMS is not secured
Returns:
an IdmsPooledConnection to the database
Throws:
java.sql.SQLException - if an error occurs.


Copyright © 2009 CA, All rights reserved