org.jboss.jca.as.converters

## Class LegacyConnectionFactoryImp

- java.lang.Object
- - org.jboss.jca.as.converters.LegacyConnectionFactoryImp

- All Implemented Interfaces:
    CommonXa, ConnectionFactory, NoTxConnectionFactory, TxConnectionFactory

      public class LegacyConnectionFactoryImp
      extends java.lang.Object
      implements TxConnectionFactory

  A LegacyConnectionFactoryImp impl.
  Version:
    $Revision: $
  Author:
    Jeff Zhang

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.jboss.jca.as.converters.TxConnectionFactory

      `TxConnectionFactory.Tag`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LegacyConnectionFactoryImp(java.lang.String jndiName, java.lang.String rarName, java.util.Map<java.lang.String,java.lang.String> rarConfigProperty, java.lang.String poolName, java.lang.String connectionDefinition, java.util.Map<java.lang.String,java.lang.String> connConfigProperty, org.jboss.jca.common.api.metadata.common.TransactionSupportEnum transactionSupport)` create a LegacyConnectionFactoryImp

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `LegacyConnectionFactoryImp` | `buildAdminObejcts(java.lang.String className, java.lang.String jndiName, java.lang.String poolName, java.util.Map<java.lang.String,java.lang.String> configProperties, boolean enabled, boolean useJavaContext)` build admin object
    `LegacyConnectionFactoryImp` | `buildCommonPool(java.lang.Integer minPoolSize, java.lang.Integer maxPoolSize, java.lang.Boolean prefill, org.jboss.jca.common.api.metadata.common.Capacity capacity, java.lang.Boolean noTxSeparatePool, java.lang.Boolean interleaving)` build pool part
    `LegacyConnectionFactoryImp` | `buildOther()` build other properties
    `void` | `buildResourceAdapterImpl()` buildResourceAdapterImpl
    `LegacyConnectionFactoryImp` | `buildSecurity(java.lang.String securityDomainManaged, java.lang.String securityDomainAndApplicationManaged, boolean applicationManaged)` build security part
    `LegacyConnectionFactoryImp` | `buildTimeOut(java.lang.Long blockingTimeoutMillis, java.lang.Long idleTimeoutMinutes, java.lang.Integer allocationRetry, java.lang.Long allocationRetryWaitMillis, java.lang.Integer xaResourceTimeout)` build timeout part
    `LegacyConnectionFactoryImp` | `buildValidation(java.lang.Boolean backgroundValidation, java.lang.Long backgroundValidationMillis, java.lang.Boolean useFastFail)` build validation part
    `LegacyConnectionFactoryImp` | `buildWorkManager(org.jboss.jca.common.api.metadata.resourceadapter.WorkManager workmanager)` build workmanager
    `java.lang.Integer` | `getAllocationRetry()` Get the allocationRetryWaitMillis.
    `java.lang.Long` | `getAllocationRetryWaitMillis()` Get the allocationRetryWaitMillis.
    `java.lang.Long` | `getBackgroundValidationMillis()` Get the backgroundValidationMillis.
    `java.lang.Long` | `getBlockingTimeoutMillis()` Get the blockingTimeoutMillis.
    `java.util.Map<java.lang.String,java.lang.String>` | `getConfigProperties()` Get the configProperties.
    `java.lang.String` | `getConnectionDefinition()` get the ConnectionDefinition
    `java.lang.Long` | `getIdleTimeoutMinutes()` Get the idleTimeoutMinutes.
    `java.lang.Boolean` | `getInterleaving()` getInterleaving
    `java.lang.String` | `getJndiName()` Get the jndiName.
    `java.lang.Integer` | `getMaxPoolSize()` Get the maxPoolSize.
    `java.lang.Integer` | `getMinPoolSize()` Get the minPoolSize.
    `java.lang.String` | `getRarName()` Get the rarName.
    `java.lang.String` | `getSecurityDomain()` get the security domain for pure security-domain security management
    `org.jboss.jca.common.api.metadata.common.TransactionSupportEnum` | `getTransactionSupport()` get the getTransactionSupport
    `java.lang.Integer` | `getXaResourceTimeout()` Get the xaResourceTimeout.
    `java.lang.Boolean` | `isBackgroundValidation()` Get the backgroundValidation.
    `java.lang.Boolean` | `isNoTxSeparatePools()` Get the noTxSeparatePools.
    `java.lang.Boolean` | `isPrefill()` Get the prefill.
    `java.lang.Boolean` | `isTrackConnectionByTx()` Get the TrackConnectionByTx.
    `java.lang.Boolean` | `isUseFastFail()` Get the useFastFail.
    `void` | `setInterleaving(java.lang.Boolean interleaving)` setInterleaving
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LegacyConnectionFactoryImp

          public LegacyConnectionFactoryImp(java.lang.String jndiName,
                                            java.lang.String rarName,
                                            java.util.Map<java.lang.String,java.lang.String> rarConfigProperty,
                                            java.lang.String poolName,
                                            java.lang.String connectionDefinition,
                                            java.util.Map<java.lang.String,java.lang.String> connConfigProperty,
                                            org.jboss.jca.common.api.metadata.common.TransactionSupportEnum transactionSupport)

      create a LegacyConnectionFactoryImp
      Parameters:
        `jndiName` - jndiName
        `rarName` - rarName
        `rarConfigProperty` - rarConfigProperty
        `poolName` - poolName
        `connectionDefinition` - connectionDefinition
        `connConfigProperty` - connConfigProperty
        `transactionSupport` - transactionSupport

  - ### Method Detail

    - #### buildResourceAdapterImpl

          public void buildResourceAdapterImpl()
                                        throws java.lang.Exception

      buildResourceAdapterImpl
      Throws:
        `java.lang.Exception` - exception

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### buildTimeOut

          public LegacyConnectionFactoryImp buildTimeOut(java.lang.Long blockingTimeoutMillis,
                                                         java.lang.Long idleTimeoutMinutes,
                                                         java.lang.Integer allocationRetry,
                                                         java.lang.Long allocationRetryWaitMillis,
                                                         java.lang.Integer xaResourceTimeout)
                                                  throws java.lang.Exception

      build timeout part
      Parameters:
        `blockingTimeoutMillis` - blockingTimeoutMillis
        `idleTimeoutMinutes` - idleTimeoutMinutes
        `allocationRetry` - allocationRetry
        `allocationRetryWaitMillis` - allocationRetryWaitMillis
        `xaResourceTimeout` - xaResourceTimeout
      Returns:
        this
      Throws:
        `java.lang.Exception` - exception

    - #### buildValidation

          public LegacyConnectionFactoryImp buildValidation(java.lang.Boolean backgroundValidation,
                                                            java.lang.Long backgroundValidationMillis,
                                                            java.lang.Boolean useFastFail)
                                                     throws java.lang.Exception

      build validation part
      Parameters:
        `backgroundValidation` - backgroundValidation
        `backgroundValidationMillis` - backgroundValidationMillis
        `useFastFail` - useFastFail
      Returns:
        this
      Throws:
        `java.lang.Exception` - exception

    - #### buildCommonPool

          public LegacyConnectionFactoryImp buildCommonPool(java.lang.Integer minPoolSize,
                                                            java.lang.Integer maxPoolSize,
                                                            java.lang.Boolean prefill,
                                                            org.jboss.jca.common.api.metadata.common.Capacity capacity,
                                                            java.lang.Boolean noTxSeparatePool,
                                                            java.lang.Boolean interleaving)
                                                     throws java.lang.Exception

      build pool part
      Parameters:
        `minPoolSize` - minPoolSize
        `maxPoolSize` - maxPoolSize
        `prefill` - prefill
        `capacity` - capacity
        `noTxSeparatePool` - noTxSeparatePool
        `interleaving` - interleaving
      Returns:
        this
      Throws:
        `java.lang.Exception` - exception

    - #### buildSecurity

          public LegacyConnectionFactoryImp buildSecurity(java.lang.String securityDomainManaged,
                                                          java.lang.String securityDomainAndApplicationManaged,
                                                          boolean applicationManaged)
                                                   throws java.lang.Exception

      build security part
      Parameters:
        `securityDomainManaged` - securityDomainManaged
        `securityDomainAndApplicationManaged` - securityDomainAndApplicationManaged
        `applicationManaged` - applicationManagedS
      Returns:
        this
      Throws:
        `java.lang.Exception` - exception

    - #### buildAdminObejcts

          public LegacyConnectionFactoryImp buildAdminObejcts(java.lang.String className,
                                                              java.lang.String jndiName,
                                                              java.lang.String poolName,
                                                              java.util.Map<java.lang.String,java.lang.String> configProperties,
                                                              boolean enabled,
                                                              boolean useJavaContext)
                                                       throws java.lang.Exception

      build admin object
      Parameters:
        `className` - className
        `jndiName` - jndiName
        `poolName` - poolName
        `configProperties` - configProperties
        `enabled` - enabled
        `useJavaContext` - useJavaContext
      Returns:
        this
      Throws:
        `java.lang.Exception` - exception

    - #### buildWorkManager

          public LegacyConnectionFactoryImp buildWorkManager(org.jboss.jca.common.api.metadata.resourceadapter.WorkManager workmanager)
                                                      throws java.lang.Exception

      build workmanager
      Parameters:
        `workmanager` - workmanager
      Returns:
        this
      Throws:
        `java.lang.Exception` - exception

    - #### buildOther

          public LegacyConnectionFactoryImp buildOther()

      build other properties
      Returns:
        this

    - #### getJndiName

          public java.lang.String getJndiName()

      Description copied from interface: `ConnectionFactory`
      Get the jndiName.
      Specified by:
        `getJndiName` in interface `ConnectionFactory`
      Returns:
        the jndiName.

    - #### getSecurityDomain

          public java.lang.String getSecurityDomain()

      Description copied from interface: `ConnectionFactory`
      get the security domain for pure security-domain security management
      Specified by:
        `getSecurityDomain` in interface `ConnectionFactory`
      Returns:
        the security-domain to use

    - #### getMinPoolSize

          public java.lang.Integer getMinPoolSize()

      Description copied from interface: `ConnectionFactory`
      Get the minPoolSize.
      Specified by:
        `getMinPoolSize` in interface `ConnectionFactory`
      Returns:
        the minPoolSize.

    - #### getMaxPoolSize

          public java.lang.Integer getMaxPoolSize()

      Description copied from interface: `ConnectionFactory`
      Get the maxPoolSize.
      Specified by:
        `getMaxPoolSize` in interface `ConnectionFactory`
      Returns:
        the maxPoolSize.

    - #### getBlockingTimeoutMillis

          public java.lang.Long getBlockingTimeoutMillis()

      Description copied from interface: `ConnectionFactory`
      Get the blockingTimeoutMillis.
      Specified by:
        `getBlockingTimeoutMillis` in interface `ConnectionFactory`
      Returns:
        the blockingTimeoutMillis.

    - #### isBackgroundValidation

          public java.lang.Boolean isBackgroundValidation()

      Description copied from interface: `ConnectionFactory`
      Get the backgroundValidation.
      Specified by:
        `isBackgroundValidation` in interface `ConnectionFactory`
      Returns:
        the backgroundValidation.

    - #### getBackgroundValidationMillis

          public java.lang.Long getBackgroundValidationMillis()

      Description copied from interface: `ConnectionFactory`
      Get the backgroundValidationMillis.
      Specified by:
        `getBackgroundValidationMillis` in interface `ConnectionFactory`
      Returns:
        the backgroundValidationMillis.

    - #### getIdleTimeoutMinutes

          public java.lang.Long getIdleTimeoutMinutes()

      Description copied from interface: `ConnectionFactory`
      Get the idleTimeoutMinutes.
      Specified by:
        `getIdleTimeoutMinutes` in interface `ConnectionFactory`
      Returns:
        the idleTimeoutMinutes.

    - #### getAllocationRetry

          public java.lang.Integer getAllocationRetry()

      Description copied from interface: `ConnectionFactory`
      Get the allocationRetryWaitMillis.
      Specified by:
        `getAllocationRetry` in interface `ConnectionFactory`
      Returns:
        the allocationRetryWaitMillis.

    - #### getAllocationRetryWaitMillis

          public java.lang.Long getAllocationRetryWaitMillis()

      Description copied from interface: `ConnectionFactory`
      Get the allocationRetryWaitMillis.
      Specified by:
        `getAllocationRetryWaitMillis` in interface `ConnectionFactory`
      Returns:
        the allocationRetryWaitMillis.

    - #### isPrefill

          public java.lang.Boolean isPrefill()

      Description copied from interface: `ConnectionFactory`
      Get the prefill.
      Specified by:
        `isPrefill` in interface `ConnectionFactory`
      Returns:
        the prefill.

    - #### isUseFastFail

          public java.lang.Boolean isUseFastFail()

      Description copied from interface: `ConnectionFactory`
      Get the useFastFail.
      Specified by:
        `isUseFastFail` in interface `ConnectionFactory`
      Returns:
        the useFastFail.

    - #### isNoTxSeparatePools

          public java.lang.Boolean isNoTxSeparatePools()

      Description copied from interface: `CommonXa`
      Get the noTxSeparatePools.
      Specified by:
        `isNoTxSeparatePools` in interface `CommonXa`
      Returns:
        the noTxSeparatePools.

    - #### isTrackConnectionByTx

          public java.lang.Boolean isTrackConnectionByTx()

      Description copied from interface: `CommonXa`
      Get the TrackConnectionByTx.
      Specified by:
        `isTrackConnectionByTx` in interface `CommonXa`
      Returns:
        the TrackConnectionByTx.

    - #### getXaResourceTimeout

          public java.lang.Integer getXaResourceTimeout()

      Description copied from interface: `CommonXa`
      Get the xaResourceTimeout.
      Specified by:
        `getXaResourceTimeout` in interface `CommonXa`
      Returns:
        the xaResourceTimeout.

    - #### getRarName

          public java.lang.String getRarName()

      Description copied from interface: `NoTxConnectionFactory`
      Get the rarName.
      Specified by:
        `getRarName` in interface `NoTxConnectionFactory`
      Returns:
        the rarName.

    - #### getConnectionDefinition

          public java.lang.String getConnectionDefinition()

      Description copied from interface: `NoTxConnectionFactory`
      get the ConnectionDefinition
      Specified by:
        `getConnectionDefinition` in interface `NoTxConnectionFactory`
      Returns:
        the ConnectionDefinition

    - #### getConfigProperties

          public java.util.Map<java.lang.String,java.lang.String> getConfigProperties()

      Description copied from interface: `NoTxConnectionFactory`
      Get the configProperties.
      Specified by:
        `getConfigProperties` in interface `NoTxConnectionFactory`
      Returns:
        the configProperties.

    - #### getTransactionSupport

          public org.jboss.jca.common.api.metadata.common.TransactionSupportEnum getTransactionSupport()

      Description copied from interface: `TxConnectionFactory`
      get the getTransactionSupport
      Specified by:
        `getTransactionSupport` in interface `TxConnectionFactory`
      Returns:
        the getTransactionSupport

    - #### setInterleaving

          public void setInterleaving(java.lang.Boolean interleaving)

      setInterleaving
      Parameters:
        `interleaving` - interleaving

    - #### getInterleaving

          public java.lang.Boolean getInterleaving()

      getInterleaving
      Returns:
        Boolean interleaving

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)