ca.idms.jdbc
Class IdmsXADataSource

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

public class IdmsXADataSource
extends IdmsCommonPoolDataSource
implements javax.sql.XADataSource

The CA IDMS JDBC XADataSource implementation class.

Author:
Dave Ross
See Also:
IdmsCommonPoolDataSource, IdmsXAConnection

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
IdmsXADataSource()
           
 
Method Summary
 javax.sql.XAConnection getXAConnection()
          Connect using the default user id and password.
 javax.sql.XAConnection getXAConnection(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

IdmsXADataSource

public IdmsXADataSource()
Method Detail

getXAConnection

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

Specified by:
getXAConnection in interface javax.sql.XADataSource
Returns:
an IdmsXAConnection to the database
Throws:
java.sql.SQLException - if an error occurs.

getXAConnection

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

Specified by:
getXAConnection in interface javax.sql.XADataSource
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 IdmsXAConnection to the database
Throws:
java.sql.SQLException - if an error occurs.


Copyright © 2009 CA, All rights reserved