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 ConstantDescriptionTheSchemaMigratorandSchemaValidatorexecute a singleDatabaseMetaData.getTables(String, String, String, String[])call to retrieve all the database table in order to determine all theEntityhave a mapped database tables.TheSchemaMigratorandSchemaValidatorexecute oneDatabaseMetaData.getTables(String, String, String, String[])call for eachEntityin order to determine if a corresponding database table exists. -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcMetadaAccessStrategyinterpretHbm2ddlSetting(Object value) static JdbcMetadaAccessStrategyinterpretSetting(Map<String, Object> options) toString()static JdbcMetadaAccessStrategyReturns 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
TheSchemaMigratorandSchemaValidatorexecute oneDatabaseMetaData.getTables(String, String, String, String[])call for eachEntityin order to determine if a corresponding database table exists. -
GROUPED
TheSchemaMigratorandSchemaValidatorexecute a singleDatabaseMetaData.getTables(String, String, String, String[])call to retrieve all the database table in order to determine all theEntityhave 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:
toStringin classEnum<JdbcMetadaAccessStrategy>
-
interpretSetting
-
interpretHbm2ddlSetting
-