Enum Class JdbcMetadataOnBoot
- All Implemented Interfaces:
Serializable, Comparable<JdbcMetadataOnBoot>, Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccess to the JDBC metadata is allowed.Access to the JDBC metadata is disallowed.Access to the JDBC metadata is required. -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcMetadataOnBootReturns the enum constant of this class with the specified name.static JdbcMetadataOnBoot[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-