Class GenerationTargetToDatabase
- java.lang.Object
-
- org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase
-
- All Implemented Interfaces:
GenerationTarget
public class GenerationTargetToDatabase extends Object implements GenerationTarget
AGenerationTargetwhich 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 voidaccept(String command)Accept a commandvoidbeforeScript(ScriptSourceInput scriptSource)Called just before a script is executed using one or more calls toGenerationTarget.accept(String).voidprepare()Prepare for accepting actionsvoidrelease()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:GenerationTargetPrepare for accepting actions- Specified by:
preparein interfaceGenerationTarget
-
beforeScript
public void beforeScript(ScriptSourceInput scriptSource)
Description copied from interface:GenerationTargetCalled just before a script is executed using one or more calls toGenerationTarget.accept(String).May be used for logging in particular.
- Specified by:
beforeScriptin interfaceGenerationTarget- Parameters:
scriptSource- The source for the script that is about to be executed.
-
accept
public void accept(String command)
Description copied from interface:GenerationTargetAccept a command- Specified by:
acceptin interfaceGenerationTarget- Parameters:
command- The command
-
release
public void release()
Description copied from interface:GenerationTargetRelease this target, giving it a change to release its resources.- Specified by:
releasein interfaceGenerationTarget
-
-