Package org.hibernate.tool.schema
Enum JdbcMetadaAccessStrategy
- java.lang.Object
-
- java.lang.Enum<JdbcMetadaAccessStrategy>
-
- org.hibernate.tool.schema.JdbcMetadaAccessStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JdbcMetadaAccessStrategy>
public enum JdbcMetadaAccessStrategy extends java.lang.Enum<JdbcMetadaAccessStrategy>
-
-
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(java.lang.Object value)
static JdbcMetadaAccessStrategy
interpretSetting(java.util.Map options)
java.lang.String
toString()
static JdbcMetadaAccessStrategy
valueOf(java.lang.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
AvailableSettings.DEFAULT_CATALOG
and/orAvailableSettings.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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<JdbcMetadaAccessStrategy>
-
interpretSetting
public static JdbcMetadaAccessStrategy interpretSetting(java.util.Map options)
-
interpretHbm2ddlSetting
public static JdbcMetadaAccessStrategy interpretHbm2ddlSetting(java.lang.Object value)
-
-