com.informix.jdbcx

Class IfxDataSource

  • java.lang.Object
    • com.informix.jdbcx.IfxCoreDataSource
      • com.informix.jdbcx.IfxDataSource
  • All Implemented Interfaces:
    java.io.Serializable, java.sql.Wrapper, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.DataSource


    public class IfxDataSource
    extends com.informix.jdbcx.IfxCoreDataSource
    implements javax.sql.DataSource, javax.naming.Referenceable
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.informix.jdbcx.IfxCoreDataSource

        defProp, directConnection, DSProperties
    • Constructor Summary

      Constructors 
      Constructor and Description
      IfxDataSource()
      Allocates an empty IfxDataSource object.
      IfxDataSource(java.lang.String url) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void activateHDRPool_Primary() 
      void activateHDRPool_Secondary() 
      java.sql.Connection getConnection()
      Attempts to establish a connection to the data source that this DataSource object represents.
      java.sql.Connection getConnection(java.lang.String luser, java.lang.String lpassword)
      Attempts to establish a connection to the data source that this DataSource object represents.
      IfxConnectionPoolDataSource getCPDS() 
      int getCPMFreeCount() 
      java.util.logging.Logger getParentLogger() 
      javax.naming.Reference getReference()
      This method implements the Referenceable interface.
      boolean isWrapperFor(java.lang.Class<?> iface) 
      <T> T unwrap(java.lang.Class<T> iface) 
      • Methods inherited from class com.informix.jdbcx.IfxCoreDataSource

        addProp, getDatabaseName, getDataSourceName, getDescription, getDsProperties, getEmulateInformixServer, getIfxALLOWREGISTEROUTFORINPARAM, getIfxAPPENDISAM, getIfxCLIENT_LOCALE, getIfxCSM, getIfxDB_LOCALE, getIfxDBCENTURY, getIfxDBDATE, getIfxDBSPACETEMP, getIfxDBTEMP, getIfxDBTIME, getIfxDBUPSPACE, getIfxENABLE_HDRSWITCH, getIfxFET_BUF_SIZE, getIfxGL_DATE, getIfxGL_DATETIME, getIfxIFX_CODESETLOB, getIfxIFX_DIRECTIVES, getIfxIFX_EXTDIRECTIVES, getIfxIFX_FLAT_UCSQ, getIfxIFX_ISOLATION_LEVEL, getIfxIFX_LO_READONLY, getIfxIFX_LOCK_MODE_WAIT, getIfxIFX_PAD_VARCHAR, getIfxIFX_SOC_KEEPALIVE, getIfxIFX_SOC_TIMEOUT, getIfxIFX_TRIMTRAILINGSPACES, getIfxIFX_USE_STRENC, getIfxIFXHOST_SECONDARY, getIfxIFXHOST, getIfxINFORMIXCONRETRY, getIfxINFORMIXCONTIME, getIfxINFORMIXOPCACHE, getIfxINFORMIXSERVER_SECONDARY, getIfxINFORMIXSTACKSIZE, getIfxJDBCTEMP, getIfxLOBCACHE, getIfxNEWCODESET, getIfxNEWLOCALE, getIfxNEWNLSMAP, getIfxNODEFDAC, getIfxOPT_GOAL, getIfxOPTCOMPIND, getIfxOPTOFC, getIfxPATH, getIfxPDQPRIORITY, getIfxPLCONFIG, getIfxPLOAD_LO_PATH, getIfxPORTNO_SECONDARY, getIfxPROTOCOLTRACE, getIfxPROTOCOLTRACEFILE, getIfxPROXY, getIfxPSORT_DBTEMP, getIfxPSORT_NPROCS, getIfxSECURITY, getIfxSQLH_FILE, getIfxSQLH_LOC, getIfxSQLH_TYPE, getIfxSQLIDEBUG, getIfxSSL_PROTOCOLS, getIfxSSLCONNECTION, getIfxSTMT_CACHE, getIfxTRACE, getIfxTRACEFILE, getIfxTRUSTED_CONTEXT, getLoginTimeout, getLogWriter, getOverrideDatabaseProductName, getPassword, getPortNumber, getProp, getProperty, getRoleName, getServerName, getSessionVariables, getUser, isIfxDBANSIWARN, isIfxDELIMIDENT, isIfxENABLE_TYPE_CACHE, isIfxIFX_AUTOFREE, isIfxIFX_USEPUT, isIfxOPTOFC, isIfxUSE_DTENV, readProperties, removeProperty, setAutoCaseSchema, setCursorHoldability, setDatabaseName, setDataSourceName, setDescription, setEmulateInformixServer, setIfxALLOWREGISTEROUTFORINPARAM, setIfxAPPENDISAM, setIfxCLIENT_LOCALE, setIfxCSM, setIfxDB_LOCALE, setIfxDBANSIWARN, setIfxDBCENTURY, setIfxDBDATE, setIfxDBSPACETEMP, setIfxDBTEMP, setIfxDBTIME, setIfxDBUPSPACE, setIfxDELIMIDENT, setIfxDirectConnection, setIfxENABLE_HDRSWITCH, setIfxENABLE_TYPE_CACHE, setIfxFET_BUF_SIZE, setIfxGL_DATE, setIfxGL_DATETIME, setIfxIFX_AUTOFREE, setIfxIFX_CODESETLOB, setIfxIFX_DIRECTIVES, setIfxIFX_EXTDIRECTIVES, setIfxIFX_FLAT_UCSQ, setIfxIFX_ISOLATION_LEVEL, setIfxIFX_LO_READONLY, setIfxIFX_LOCK_MODE_WAIT, setIfxIFX_PAD_VARCHAR, setIfxIFX_PREPAREDSTATEMENT_CACHE_SIZE, setIfxIFX_SOC_KEEPALIVE, setIfxIFX_SOC_TIMEOUT, setIfxIFX_TRIMTRAILINGSPACES, setIfxIFX_USE_STRENC, setIfxIFX_USEPUT, setIfxIFXHOST_SECONDARY, setIfxIFXHOST, setIfxINFORMIXCONRETRY, setIfxINFORMIXCONTIME, setIfxINFORMIXOPCACHE, setIfxINFORMIXSERVER_SECONDARY, setIfxINFORMIXSTACKSIZE, setIfxJDBCTEMP, setIfxLOBCACHE, setIfxNEWCODESET, setIfxNEWLOCALE, setIfxNEWNLSMAP, setIfxNODEFDAC, setIfxOPT_GOAL, setIfxOPTCOMPIND, setIfxOPTOFC, setIfxPATH, setIfxPDQPRIORITY, setIfxPLCONFIG, setIfxPLOAD_LO_PATH, setIfxPORTNO_SECONDARY, setIfxPROTOCOLTRACE, setIfxPROTOCOLTRACEFILE, setIfxPROXY, setIfxPSORT_DBTEMP, setIfxPSORT_NPROCS, setIfxSECURITY, setIfxSQLH_FILE, setIfxSQLH_LOC, setIfxSQLH_TYPE, setIfxSQLIDEBUG, setIfxSSL_PROTOCOLS, setIfxSSLCONNECTION, setIfxSTMT_CACHE, setIfxTRACE, setIfxTRACEFILE, setIfxTRUSTED_CONTEXT, setIfxUSE_DTENV, setIsolationLevelAndLock, setLoginTimeout, setLogWriter, setMetadataUppercaseValues, setOptimizeOpenFetchClose, setOPTOFC, setOverrideDatabaseProductName, setPassword, setPortNumber, setProcessTableNameInResultSets, setRoleName, setServerName, setSessionVariables, setTrustStore, setTrustStorePassword, setUser, toInformixDataSource, toString, writeProperties
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.sql.CommonDataSource

        getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
    • Constructor Detail

      • IfxDataSource

        public IfxDataSource()
        Allocates an empty IfxDataSource object.
      • IfxDataSource

        public IfxDataSource(java.lang.String url)
                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • getConnection

        public java.sql.Connection getConnection()
                                          throws java.sql.SQLException
        Attempts to establish a connection to the data source that this DataSource object represents.
        Specified by:
        getConnection in interface javax.sql.DataSource
        Throws:
        java.sql.SQLException - if a database-access error occurs.
      • getConnection

        public java.sql.Connection getConnection(java.lang.String luser,
                                                 java.lang.String lpassword)
                                          throws java.sql.SQLException
        Attempts to establish a connection to the data source that this DataSource object represents.
        Specified by:
        getConnection in interface javax.sql.DataSource
        Parameters:
        user - the data source user on whose behalf the connection is being made.
        password - the user's password.
        Throws:
        java.sql.SQLException - if a database-access error occurs.
      • getReference

        public javax.naming.Reference getReference()
                                            throws javax.naming.NamingException
        This method implements the Referenceable interface. Perhaps it should be called, makeReference. It is used by the naming service provider to create a reference object that embodies enough information about this datasource such that the datasource can be recreated when naming.lookup() is called. This reference is only used internally by the naming service. It is eventually bound to a user specified name (in naming.bind()) and subsequently, it is used to reconstruct the datasource when naming.lookup() is called with the given name.
        Specified by:
        getReference in interface javax.naming.Referenceable
        Returns:
        reference to the datasource.
        Throws:
        javax.naming.NamingException
      • getCPMFreeCount

        public int getCPMFreeCount()
      • activateHDRPool_Primary

        public void activateHDRPool_Primary()
      • activateHDRPool_Secondary

        public void activateHDRPool_Secondary()
      • isWrapperFor

        public boolean isWrapperFor(java.lang.Class<?> iface)
        Specified by:
        isWrapperFor in interface java.sql.Wrapper
      • unwrap

        public <T> T unwrap(java.lang.Class<T> iface)
                     throws java.sql.SQLException
        Specified by:
        unwrap in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException
      • getParentLogger

        public java.util.logging.Logger getParentLogger()
                                                 throws java.sql.SQLFeatureNotSupportedException
        Specified by:
        getParentLogger in interface javax.sql.CommonDataSource
        Throws:
        java.sql.SQLFeatureNotSupportedException