Enum Class JdbcMetadataOnBoot

java.lang.Object
java.lang.Enum<JdbcMetadataOnBoot>
org.hibernate.engine.jdbc.env.JdbcMetadataOnBoot
All Implemented Interfaces:
Serializable, Comparable<JdbcMetadataOnBoot>, Constable

public enum JdbcMetadataOnBoot extends Enum<JdbcMetadataOnBoot>
Whether access to JDBC metadata is allowed during bootstrap. Typically, Hibernate accesses this metadata to understand the capabilities of the underlying database to help minimize needed configuration.
See Also:
API Note:
The default value is ALLOW.
  • Enum Constant Details

    • DISALLOW

      public static final JdbcMetadataOnBoot DISALLOW
      Access to the JDBC metadata is disallowed. At a bare minimum, this requires specifying the dialect or database being used. Specifying the database version is recommended as well.
      API Note:
      The specified Dialect may also provide defaults into the "explicit" settings.
    • ALLOW

      public static final JdbcMetadataOnBoot ALLOW
      Access to the JDBC metadata is allowed.
      API Note:
      This is the default.
      Implementation Note:
      When errors occur accessing the JDBC metadata, implicit values will be used as needed.
    • REQUIRE

      public static final JdbcMetadataOnBoot REQUIRE
      Access to the JDBC metadata is required.
      Implementation Note:
      Functions like ALLOW, except that errors which occur when accessing the JDBC metadata will be propagated back to the application.
  • Method Details

    • values

      public static JdbcMetadataOnBoot[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JdbcMetadataOnBoot valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null