Interface CanConfigureOracleDataSource

All Known Implementing Classes:
WalletArchive

@Internal public interface CanConfigureOracleDataSource
A trait interface for types that can contribute to the configuration of an OracleDataSourceAttributes instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    configure(oracle.jdbc.datasource.OracleCommonDataSource ods)
    Convenience method to configure an OracleCommonDataSource sub-type.
    configure(T dataSource)
    Configure a data source using the state in this instance.
  • Method Details

    • configure

      default void configure(oracle.jdbc.datasource.OracleCommonDataSource ods) throws SQLException, IOException
      Convenience method to configure an OracleCommonDataSource sub-type.
      Parameters:
      ods - The data source to be configure
      Throws:
      SQLException - if a database error occurs configuring the data source
      IOException - if an error occurs reading the state embodied in this instance
    • configure

      <T extends OracleDataSourceAttributes> T configure(T dataSource) throws SQLException, IOException
      Configure a data source using the state in this instance.
      Type Parameters:
      T - The data source type
      Parameters:
      dataSource - The data source to be configured
      Returns:
      The configured instance
      Throws:
      SQLException - if a database error occurs
      IOException - if an error occurs reading the state embodied in this instance