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 GROUPEDTheSchemaMigratorandSchemaValidatorexecute a singleDatabaseMetaData.getTables(String, String, String, String[])call to retrieve all the database table in order to determine all theEntityhave a mapped database tables.INDIVIDUALLYTheSchemaMigratorandSchemaValidatorexecute oneDatabaseMetaData.getTables(String, String, String, String[])call for eachEntityin 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 JdbcMetadaAccessStrategyinterpretHbm2ddlSetting(java.lang.Object value)static JdbcMetadaAccessStrategyinterpretSetting(java.util.Map options)java.lang.StringtoString()static JdbcMetadaAccessStrategyvalueOf(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
TheSchemaMigratorandSchemaValidatorexecute oneDatabaseMetaData.getTables(String, String, String, String[])call for eachEntityin order to determine if a corresponding database table exists.
-
GROUPED
public static final JdbcMetadaAccessStrategy 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
AvailableSettings.DEFAULT_CATALOGand/orAvailableSettings.DEFAULT_SCHEMAvalues 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:
toStringin classjava.lang.Enum<JdbcMetadaAccessStrategy>
-
interpretSetting
public static JdbcMetadaAccessStrategy interpretSetting(java.util.Map options)
-
interpretHbm2ddlSetting
public static JdbcMetadaAccessStrategy interpretHbm2ddlSetting(java.lang.Object value)
-
-