Package net.sf.basedb.core.hibernate
Class SchemaGenerator.CollectSqlTarget
java.lang.Object
net.sf.basedb.core.hibernate.SchemaGenerator.CollectSqlTarget
- All Implemented Interfaces:
ExecutionOptions
,ScriptTargetOutput
,SourceDescriptor
,TargetDescriptor
- Enclosing class:
- SchemaGenerator
static class SchemaGenerator.CollectSqlTarget
extends Object
implements ScriptTargetOutput, SourceDescriptor, TargetDescriptor, ExecutionOptions
Helper class used for collecting SQL statements generated by Hibernate
schema creation/update tools.
- Since:
- 3.8
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<SchemaGenerator.SqlStatement>
private final DbEngine
private final Dialect
private final SchemaGenerator.Mode
private int
-
Constructor Summary
ConstructorDescriptionCollectSqlTarget
(DbEngine dbEngine, Dialect dialect, SchemaGenerator.Mode mode, Connection connection) -
Method Summary
-
Field Details
-
allSql
-
dialect
-
dbEngine
-
config
-
mode
-
numStatements
private int numStatements
-
-
Constructor Details
-
CollectSqlTarget
CollectSqlTarget() -
CollectSqlTarget
CollectSqlTarget(DbEngine dbEngine, Dialect dialect, SchemaGenerator.Mode mode, Connection connection)
-
-
Method Details
-
getSql
-
getNumStatements
public int getNumStatements() -
release
public void release()- Specified by:
release
in interfaceScriptTargetOutput
-
prepare
public void prepare()- Specified by:
prepare
in interfaceScriptTargetOutput
-
accept
- Specified by:
accept
in interfaceScriptTargetOutput
-
getScriptSourceInput
- Specified by:
getScriptSourceInput
in interfaceSourceDescriptor
-
getSourceType
- Specified by:
getSourceType
in interfaceSourceDescriptor
-
getTargetTypes
- Specified by:
getTargetTypes
in interfaceTargetDescriptor
-
getScriptTargetOutput
- Specified by:
getScriptTargetOutput
in interfaceTargetDescriptor
-
getConfigurationValues
- Specified by:
getConfigurationValues
in interfaceExecutionOptions
-
shouldManageNamespaces
public boolean shouldManageNamespaces()- Specified by:
shouldManageNamespaces
in interfaceExecutionOptions
-
getExceptionHandler
- Specified by:
getExceptionHandler
in interfaceExecutionOptions
-