Class OraclePlugin

All Implemented Interfaces:
JdbiPlugin

public class OraclePlugin extends JdbiPlugin.Singleton
Jdbi plugin for Oracle databases.

Oracle does not support Types.OTHER for untyped null values, which is the default in Jdbi. This plugin configures the untyped null argument to use Types.NULL instead, which Oracle accepts.

Install this plugin when using Jdbi with an Oracle database to avoid errors when binding null values without an explicit type.

  • Constructor Details

    • OraclePlugin

      public OraclePlugin()
  • Method Details

    • customizeJdbi

      public void customizeJdbi(Jdbi jdbi)
      Description copied from interface: JdbiPlugin
      Configure customizations global to any object managed by this Jdbi. This method is invoked immediately when the plugin is installed.
      Parameters:
      jdbi - the jdbi to customize