Class SchemaCreatorImpl
- java.lang.Object
-
- org.hibernate.tool.schema.internal.SchemaCreatorImpl
-
- All Implemented Interfaces:
SchemaCreator
public class SchemaCreatorImpl extends Object implements SchemaCreator
Basic implementation ofSchemaCreator
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_IMPORT_FILE
-
Constructor Summary
Constructors Constructor Description SchemaCreatorImpl(ServiceRegistry serviceRegistry)
SchemaCreatorImpl(ServiceRegistry serviceRegistry, SchemaFilter schemaFilter)
SchemaCreatorImpl(HibernateSchemaManagementTool tool)
SchemaCreatorImpl(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createFromMetadata(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, GenerationTarget... targets)
void
createFromMetadata(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, GenerationTarget... targets)
void
createFromScript(ScriptSourceInput scriptSourceInput, SqlScriptCommandExtractor commandExtractor, Formatter formatter, Dialect dialect, ExecutionOptions options, GenerationTarget... targets)
void
doCreation(Metadata metadata, boolean manageNamespaces, GenerationTarget... targets)
Intended for use from testsvoid
doCreation(Metadata metadata, Dialect dialect, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
void
doCreation(Metadata metadata, ServiceRegistry serviceRegistry, Map<String,Object> settings, boolean manageNamespaces, GenerationTarget... targets)
Intended for use from testsvoid
doCreation(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor)
Perform a schema creation from the indicated source(s) to the indicated target(s).List<String>
generateCreationCommands(Metadata metadata, boolean manageNamespaces)
For testing...
-
-
-
Field Detail
-
DEFAULT_IMPORT_FILE
public static final String DEFAULT_IMPORT_FILE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SchemaCreatorImpl
public SchemaCreatorImpl(HibernateSchemaManagementTool tool)
-
SchemaCreatorImpl
public SchemaCreatorImpl(HibernateSchemaManagementTool tool, SchemaFilter schemaFilter)
-
SchemaCreatorImpl
public SchemaCreatorImpl(ServiceRegistry serviceRegistry)
-
SchemaCreatorImpl
public SchemaCreatorImpl(ServiceRegistry serviceRegistry, SchemaFilter schemaFilter)
-
-
Method Detail
-
doCreation
public void doCreation(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, TargetDescriptor targetDescriptor)
Description copied from interface:SchemaCreator
Perform a schema creation from the indicated source(s) to the indicated target(s).- Specified by:
doCreation
in interfaceSchemaCreator
- Parameters:
metadata
- Represents the schema to be created.options
- Options for executing the creationcontributableInclusionFilter
- Filter for Contributable instances to usesourceDescriptor
- description of the source(s) of creation commandstargetDescriptor
- description of the target(s) for the creation commands
-
doCreation
@Internal public void doCreation(Metadata metadata, Dialect dialect, ExecutionOptions options, ContributableMatcher contributableInclusionFilter, SourceDescriptor sourceDescriptor, GenerationTarget... targets)
-
createFromScript
public void createFromScript(ScriptSourceInput scriptSourceInput, SqlScriptCommandExtractor commandExtractor, Formatter formatter, Dialect dialect, ExecutionOptions options, GenerationTarget... targets)
-
createFromMetadata
@Internal public void createFromMetadata(Metadata metadata, ExecutionOptions options, Dialect dialect, Formatter formatter, GenerationTarget... targets)
-
createFromMetadata
@Internal public void createFromMetadata(Metadata metadata, ExecutionOptions options, ContributableMatcher contributableInclusionMatcher, Dialect dialect, Formatter formatter, GenerationTarget... targets)
-
generateCreationCommands
public List<String> generateCreationCommands(Metadata metadata, boolean manageNamespaces)
For testing...- Parameters:
metadata
- The metadata for which to generate the creation commands.- Returns:
- The generation commands
-
doCreation
@Internal public void doCreation(Metadata metadata, boolean manageNamespaces, GenerationTarget... targets)
Intended for use from tests
-
doCreation
@Internal public void doCreation(Metadata metadata, ServiceRegistry serviceRegistry, Map<String,Object> settings, boolean manageNamespaces, GenerationTarget... targets)
Intended for use from tests
-
-