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
Fields Modifier and Type Field Description private List<SchemaGenerator.SqlStatement>
allSql
private Map<Object,Object>
config
private DbEngine
dbEngine
private Dialect
dialect
private SchemaGenerator.Mode
mode
private int
numStatements
-
Constructor Summary
Constructors Constructor Description CollectSqlTarget()
CollectSqlTarget(DbEngine dbEngine, Dialect dialect, SchemaGenerator.Mode mode, Connection connection)
-
Method Summary
Modifier and Type Method Description void
accept(String sql)
Map<?,?>
getConfigurationValues()
ExceptionHandler
getExceptionHandler()
int
getNumStatements()
ScriptSourceInput
getScriptSourceInput()
ScriptTargetOutput
getScriptTargetOutput()
SourceType
getSourceType()
List<SchemaGenerator.SqlStatement>
getSql()
EnumSet<TargetType>
getTargetTypes()
void
prepare()
void
release()
boolean
shouldManageNamespaces()
-
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
-