Package org.hibernate.tool.schema
Enum JdbcMetadaAccessStrategy
- java.lang.Object
-
- java.lang.Enum<JdbcMetadaAccessStrategy>
-
- org.hibernate.tool.schema.JdbcMetadaAccessStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<JdbcMetadaAccessStrategy>
public enum JdbcMetadaAccessStrategy extends Enum<JdbcMetadaAccessStrategy>
Determines how JDBC metadata is read by the schema management tooling.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.INDIVIDUALLY
TheSchemaMigrator
andSchemaValidator
execute oneDatabaseMetaData.getTables(String, String, String, String[])
call for eachEntity
in order to determine if a corresponding database table exists.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JdbcMetadaAccessStrategy
interpretHbm2ddlSetting(Object value)
static JdbcMetadaAccessStrategy
interpretSetting(Map options)
String
toString()
static JdbcMetadaAccessStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static JdbcMetadaAccessStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDIVIDUALLY
public static final JdbcMetadaAccessStrategy INDIVIDUALLY
TheSchemaMigrator
andSchemaValidator
execute oneDatabaseMetaData.getTables(String, String, String, String[])
call for eachEntity
in order to determine if a corresponding database table exists.
-
GROUPED
public static final JdbcMetadaAccessStrategy 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 Detail
-
values
public static JdbcMetadaAccessStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JdbcMetadaAccessStrategy c : JdbcMetadaAccessStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JdbcMetadaAccessStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<JdbcMetadaAccessStrategy>
-
interpretSetting
public static JdbcMetadaAccessStrategy interpretSetting(Map options)
-
interpretHbm2ddlSetting
public static JdbcMetadaAccessStrategy interpretHbm2ddlSetting(Object value)
-
-