Package org.hibernate.tool.schema
Enum Class JdbcMetadaAccessStrategy
- All Implemented Interfaces:
Serializable
,Comparable<JdbcMetadaAccessStrategy>
,Constable
Determines how JDBC metadata is read by the schema management tooling.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheSchemaMigrator
andSchemaValidator
execute a singleDatabaseMetaData.getTables(String, String, String, String[])
call to retrieve all the database table in order to determine all theEntity
have a mapped database tables.TheSchemaMigrator
andSchemaValidator
execute oneDatabaseMetaData.getTables(String, String, String, String[])
call for eachEntity
in order to determine if a corresponding database table exists. -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcMetadaAccessStrategy
interpretHbm2ddlSetting
(Object value) static JdbcMetadaAccessStrategy
interpretSetting
(Map<String, Object> options) toString()
static JdbcMetadaAccessStrategy
Returns the enum constant of this class with the specified name.static JdbcMetadaAccessStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INDIVIDUALLY
TheSchemaMigrator
andSchemaValidator
execute oneDatabaseMetaData.getTables(String, String, String, String[])
call for eachEntity
in order to determine if a corresponding database table exists. -
GROUPED
TheSchemaMigrator
andSchemaValidator
execute a singleDatabaseMetaData.getTables(String, String, String, String[])
call to retrieve all the database table in order to determine all theEntity
have a mapped database tables.This strategy is the default one, and it may require "hibernate.default_catalog" and/or "hibernate.default_schema" values to be provided.
-
-
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
-
toString
- Overrides:
toString
in classEnum<JdbcMetadaAccessStrategy>
-
interpretSetting
-
interpretHbm2ddlSetting
-