SchemaCreator.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final CoreMessageLogger | |
| private final SchemaFilter | |
| private final HibernateSchemaManagementTool |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | applyImportFiles(ExecutionOptions options, SqlScriptCommandExtractor commandExtractor, Dialect dialect, Formatter formatter, String defaultImportFile, GenerationTarget[] targets)
Handles import scripts specified using
|
| private boolean | Returns: true if the legacy default import file
was one of the listed imported files that were executedHandles import scripts specified using
|
| private void | applyImportSources(ExecutionOptions options, SqlScriptCommandExtractor commandExtractor, boolean format, Dialect dialect, GenerationTarget... targets)
|
| private static void | |
| private boolean | |
| private static void | createAuxiliaryObjectsAfterTables(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | createAuxiliaryObjectsBeforeTables(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | createForeignKeys(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| public void | createFromMetadata(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| public void | createFromMetadata(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| public void | createFromScript(ScriptSourceInput scriptSourceInput, SqlScriptCommandExtractor commandExtractor, Formatter formatter, Dialect dialect, ExecutionOptions options, GenerationTarget... targets)
|
| private static void | createSchemasAndCatalogs(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | createSequences(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets, Namespace namespace)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | createSequencesTablesConstraints(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | createTableConstraints(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets, Namespace namespace)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | createTables(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets, Namespace namespace)
Deprecated
as a consequence of
Metadata being deprecated.
|
| private static void | createUserDefinedTypes(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| public void | doCreation(Metadata
Represents the schema to be created. metadata, ExecutionOptions Options for executing the creation options, ContributableMatcher Filter for Contributable instances to use contributableInclusionFilter, SourceDescriptor description of the source(s) of creation commands sourceDescriptor, TargetDescriptor description of the target(s) for the creation commands targetDescriptor)Implements org.
Deprecated
as a consequence of
Perform a schema creation from the indicated source(s) to the indicated target(s).
Metadata being deprecated.
|
| public void | doCreation(Metadata metadata, Dialect dialect, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| public void | doCreation(Metadata metadata, final boolean manageNamespaces, GenerationTarget... targets)
Deprecated
as a consequence of
Intended for use from tests
Metadata being deprecated.
|
| public void | doCreation(Metadata metadata, final ServiceRegistry serviceRegistry, final Map<String, Object> settings, final boolean manageNamespaces, GenerationTarget... targets)
Deprecated
as a consequence of
Intended for use from tests
Metadata being deprecated.
|
| private static void | executeInitCommands(Metadata metadata, ExecutionOptions options, Formatter formatter, GenerationTarget[] targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| public List | Returns: The generation commandsThe metadata for which to generate the creation commands. metadata, final boolean manageNamespaces)
Deprecated
as a consequence of
For testing...
Metadata being deprecated.
|
| private static String | |
| private ClassLoaderService | |
| private SqlScriptCommandExtractor | |
| private static Formatter | getImportScriptFormatter(boolean format)
In principle, we should format the commands in the import script if the
|
| private static Object | |
| private ScriptSourceInput | interpretLegacyImportScriptSetting(String resourceName, ClassLoaderService classLoaderService, String charsetName)
|
| private void | performCreation(Metadata metadata, Dialect dialect, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
Deprecated
as a consequence of
Metadata being deprecated.
|
| DEFAULT_IMPORT_FILE | back to summary |
|---|---|
| public static final String DEFAULT_IMPORT_FILE | |
| log | back to summary |
|---|---|
| private static final CoreMessageLogger log | |
| schemaFilter | back to summary |
|---|---|
| private final SchemaFilter schemaFilter | |
| tool | back to summary |
|---|---|
| private final HibernateSchemaManagementTool tool | |
| SchemaCreatorImpl | back to summary |
|---|---|
| public SchemaCreatorImpl(HibernateSchemaManagementTool tool) | |
| SchemaCreatorImpl | back to summary |
|---|---|
| public SchemaCreatorImpl(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter) | |
| SchemaCreatorImpl | back to summary |
|---|---|
| public SchemaCreatorImpl(ServiceRegistry serviceRegistry) | |
| SchemaCreatorImpl | back to summary |
|---|---|
| public SchemaCreatorImpl(ServiceRegistry serviceRegistry, SchemaFilter schemaFilter) | |
| applyImportFiles | back to summary |
|---|---|
| private void applyImportFiles(ExecutionOptions options, SqlScriptCommandExtractor commandExtractor, Dialect dialect, Formatter formatter, String defaultImportFile, GenerationTarget[] targets) Handles import scripts specified using
| |
| applyImportScript | back to summary |
|---|---|
| private boolean applyImportScript(ExecutionOptions options, SqlScriptCommandExtractor commandExtractor, Dialect dialect, Formatter formatter, GenerationTarget[] targets) Handles import scripts specified using
| |
| applyImportSources | back to summary |
|---|---|
| private void applyImportSources(ExecutionOptions options, SqlScriptCommandExtractor commandExtractor, boolean format, Dialect dialect, GenerationTarget... targets) | |
| checkExportIdentifier | back to summary |
|---|---|
| private static void checkExportIdentifier(Exportable exportable, Set<String> exportIdentifiers) | |
| containsDefaultImportFile | back to summary |
|---|---|
| private boolean containsDefaultImportFile(ScriptSourceInput importScriptInput) | |
| createAuxiliaryObjectsAfterTables | back to summary |
|---|---|
| private static void createAuxiliaryObjectsAfterTables(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets)
Deprecated as a consequence of | |
| createAuxiliaryObjectsBeforeTables | back to summary |
|---|---|
| private static void createAuxiliaryObjectsBeforeTables(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets)
Deprecated as a consequence of | |
| createForeignKeys | back to summary |
|---|---|
| private static void createForeignKeys(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, GenerationTarget[] targets)
Deprecated as a consequence of | |
| createFromMetadata | back to summary |
|---|---|
| public void createFromMetadata(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, GenerationTarget... targets)
Deprecated as a consequence of
| |
| createFromMetadata | back to summary |
|---|---|
| public void createFromMetadata(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, GenerationTarget... targets)
Deprecated as a consequence of
| |
| createFromScript | back to summary |
|---|---|
| public void createFromScript(ScriptSourceInput scriptSourceInput, SqlScriptCommandExtractor commandExtractor, Formatter formatter, Dialect dialect, ExecutionOptions options, GenerationTarget... targets) | |
| createSchemasAndCatalogs | back to summary |
|---|---|
| private static void createSchemasAndCatalogs(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, GenerationTarget[] targets)
Deprecated as a consequence of | |
| createSequences | back to summary |
|---|---|
| private static void createSequences(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets, Namespace namespace)
Deprecated as a consequence of | |
| createSequencesTablesConstraints | back to summary |
|---|---|
| private static void createSequencesTablesConstraints(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets)
Deprecated as a consequence of | |
| createTableConstraints | back to summary |
|---|---|
| private static void createTableConstraints(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets, Namespace namespace)
Deprecated as a consequence of | |
| createTables | back to summary |
|---|---|
| private static void createTables(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, Set<String> exportIdentifiers, GenerationTarget[] targets, Namespace namespace)
Deprecated as a consequence of | |
| createUserDefinedTypes | back to summary |
|---|---|
| private static void createUserDefinedTypes(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, SqlStringGenerationContext context, GenerationTarget[] targets)
Deprecated as a consequence of | |
| doCreation | back to summary |
|---|---|
| public void doCreation(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor) Implements org. Doc from org. Deprecated as a consequence of Perform a schema creation from the indicated source(s) to the indicated target(s).
| |
| doCreation | back to summary |
|---|---|
| public void doCreation(Metadata metadata, Dialect dialect, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
Deprecated as a consequence of
| |
| doCreation | back to summary |
|---|---|
| public void doCreation(Metadata metadata, final boolean manageNamespaces, GenerationTarget... targets)
Deprecated as a consequence of Intended for use from tests
| |
| doCreation | back to summary |
|---|---|
| public void doCreation(Metadata metadata, final ServiceRegistry serviceRegistry, final Map<String, Object> settings, final boolean manageNamespaces, GenerationTarget... targets)
Deprecated as a consequence of Intended for use from tests
| |
| executeInitCommands | back to summary |
|---|---|
| private static void executeInitCommands(Metadata metadata, ExecutionOptions options, Formatter formatter, GenerationTarget[] targets)
Deprecated as a consequence of | |
| generateCreationCommands | back to summary |
|---|---|
| public List Deprecated as a consequence of For testing... | |
| getCharsetName | back to summary |
|---|---|
| private static String getCharsetName(ExecutionOptions options) | |
| getClassLoaderService | back to summary |
|---|---|
| private ClassLoaderService getClassLoaderService() | |
| getCommandExtractor | back to summary |
|---|---|
| private SqlScriptCommandExtractor getCommandExtractor() | |
| getImportScriptFormatter | back to summary |
|---|---|
| private static Formatter getImportScriptFormatter(boolean format) In principle, we should format the commands in the import script if the
| |
| getImportScriptSetting | back to summary |
|---|---|
private static Object getImportScriptSetting(ExecutionOptions options)
| |
| interpretLegacyImportScriptSetting | back to summary |
|---|---|
| private ScriptSourceInput interpretLegacyImportScriptSetting(String resourceName, ClassLoaderService classLoaderService, String charsetName) | |
| performCreation | back to summary |
|---|---|
| private void performCreation(Metadata metadata, Dialect dialect, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
Deprecated as a consequence of | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(String
The command command)Implements org. |
| public void | prepare()
Implements org. |
| public void | release()
Implements org. |
| commands | back to summary |
|---|---|
| private final ArrayList<String> commands | |
| JournalingGenerationTarget | back to summary |
|---|---|
| private JournalingGenerationTarget() | |
| accept | back to summary |
|---|---|
| public void accept(String command) Implements org. Doc from org. Accept a command | |
| prepare | back to summary |
|---|---|
| public void prepare() Implements org. Doc from org. Prepare for accepting actions
| |
| release | back to summary |
|---|---|
| public void release() Implements org. Doc from org. Release this target, giving it a change to release its resources.
| |