Class GenerationTargetToDatabase
java.lang.Object
org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase
- All Implemented Interfaces:
GenerationTarget
A
GenerationTarget
which exports DDL directly to the database.-
Constructor Summary
ConstructorsConstructorDescriptionGenerationTargetToDatabase
(DdlTransactionIsolator ddlTransactionIsolator) GenerationTargetToDatabase
(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse) GenerationTargetToDatabase
(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse, boolean autocommit) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Accept a commandvoid
beforeScript
(ScriptSourceInput scriptSource) Called just before a script is executed using one or more calls toGenerationTarget.accept(String)
.void
prepare()
Prepare for accepting actionsvoid
release()
Release this target, giving it a change to release its resources.
-
Constructor Details
-
GenerationTargetToDatabase
-
GenerationTargetToDatabase
public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse) -
GenerationTargetToDatabase
public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse, boolean autocommit)
-
-
Method Details
-
prepare
public void prepare()Description copied from interface:GenerationTarget
Prepare for accepting actions- Specified by:
prepare
in interfaceGenerationTarget
-
beforeScript
Description copied from interface:GenerationTarget
Called just before a script is executed using one or more calls toGenerationTarget.accept(String)
.May be used for logging in particular.
- Specified by:
beforeScript
in interfaceGenerationTarget
- Parameters:
scriptSource
- The source for the script that is about to be executed.
-
accept
Description copied from interface:GenerationTarget
Accept a command- Specified by:
accept
in interfaceGenerationTarget
- Parameters:
command
- The command
-
release
public void release()Description copied from interface:GenerationTarget
Release this target, giving it a change to release its resources.- Specified by:
release
in interfaceGenerationTarget
-