Class OracleUcpDataSourcePoolMetadata

java.lang.Object
io.micronaut.jdbc.metadata.AbstractDataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>
io.micronaut.configuration.jdbc.ucp.metadata.OracleUcpDataSourcePoolMetadata
All Implemented Interfaces:
DataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>

public class OracleUcpDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>
DataSourcePoolMetadata for an Oracle UCP PoolDataSource.
Since:
7.0.0
Author:
Andreas Brenk
  • Constructor Details

    • OracleUcpDataSourcePoolMetadata

      public OracleUcpDataSourcePoolMetadata(oracle.ucp.jdbc.PoolDataSource dataSource, oracle.ucp.admin.UniversalConnectionPoolManager connectionPoolManager)
      Oracle UCP typed DataSourcePoolMetadata object.
      Parameters:
      dataSource - The datasource
      connectionPoolManager - The connection pool manager
  • Method Details

    • getIdle

      public Integer getIdle()
      Description copied from interface: DataSourcePoolMetadata
      Return the number of idle connections in the pool.
      Returns:
      the idle value
    • getActive

      public Integer getActive()
      Description copied from interface: DataSourcePoolMetadata
      Return the current number of active connections that have been allocated from the data source or null if that information is not available.
      Returns:
      the number of active connections or null
    • getMax

      public Integer getMax()
      Description copied from interface: DataSourcePoolMetadata
      Return the maximum number of active connections that can be allocated at the same time or -1 if there is no limit. Can also return null if that information is not available.
      Returns:
      the maximum number of active connections or null
    • getMin

      public Integer getMin()
      Description copied from interface: DataSourcePoolMetadata
      Return the minimum number of idle connections in the pool or null if that information is not available.
      Returns:
      the minimum number of active connections or null
    • getValidationQuery

      public String getValidationQuery()
      Description copied from interface: DataSourcePoolMetadata
      Return the query to use to validate that a connection is valid or null if that information is not available.
      Returns:
      the validation query or null
    • getDefaultAutoCommit

      public Boolean getDefaultAutoCommit()
      Description copied from interface: DataSourcePoolMetadata
      The default auto-commit state of connections created by this pool. If not set (null), default is JDBC driver default (If set to null then the java.sql.Connection.setAutoCommit(boolean) method will not be called.)
      Returns:
      the default auto-commit state or null