public enum JdbcMetadaAccessStrategy extends Enum<JdbcMetadaAccessStrategy>
Enum Constant and Description |
---|
GROUPED
The
SchemaMigrator and SchemaValidator
execute a single DatabaseMetaData.getTables(String, String, String, String[]) call
to retrieve all the database table in order to determine all the Entity have a mapped database tables. |
INDIVIDUALLY
The
SchemaMigrator and SchemaValidator
execute one DatabaseMetaData.getTables(String, String, String, String[]) call for each
Entity in order to determine if a corresponding database table exists. |
Modifier and Type | Method and 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.
|
public static final JdbcMetadaAccessStrategy INDIVIDUALLY
SchemaMigrator
and SchemaValidator
execute one DatabaseMetaData.getTables(String, String, String, String[])
call for each
Entity
in order to determine if a corresponding database table exists.public static final JdbcMetadaAccessStrategy GROUPED
SchemaMigrator
and SchemaValidator
execute a single DatabaseMetaData.getTables(String, String, String, String[])
call
to retrieve all the database table in order to determine all the Entity
have a mapped database tables.
This strategy is the default one and it may require AvailableSettings.DEFAULT_CATALOG
and/or
AvailableSettings.DEFAULT_SCHEMA
values to be provided.
public static JdbcMetadaAccessStrategy[] values()
for (JdbcMetadaAccessStrategy c : JdbcMetadaAccessStrategy.values()) System.out.println(c);
public static JdbcMetadaAccessStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<JdbcMetadaAccessStrategy>
public static JdbcMetadaAccessStrategy interpretSetting(Map options)
public static JdbcMetadaAccessStrategy interpretHbm2ddlSetting(Object value)
Copyright © 2019 JBoss by Red Hat. All rights reserved.