Class GenerationTargetToDatabase
- java.lang.Object
-
- org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase
-
- All Implemented Interfaces:
GenerationTarget
public class GenerationTargetToDatabase extends Object implements GenerationTarget
AGenerationTarget
which exports DDL directly to the database.
-
-
Constructor Summary
Constructors Constructor Description GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator)
GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse)
GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse, boolean autocommit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String command)
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 Detail
-
GenerationTargetToDatabase
public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator)
-
GenerationTargetToDatabase
public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse)
-
GenerationTargetToDatabase
public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse, boolean autocommit)
-
-
Method Detail
-
prepare
public void prepare()
Description copied from interface:GenerationTarget
Prepare for accepting actions- Specified by:
prepare
in interfaceGenerationTarget
-
beforeScript
public void beforeScript(ScriptSourceInput scriptSource)
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
public void accept(String command)
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
-
-