Class SchemaScriptCreatorTool
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.tools.schema.SchemaScriptCreatorTool
-
public class SchemaScriptCreatorTool extends Object
Create Custom DDL script from given database meta data.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Constructor Summary
Constructors Constructor Description SchemaScriptCreatorTool(ConnectorRepository connectorRepository, String sourceConnectorId, String targetConnectorId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createColumn(ColumnMetaData columnMetaData)
String
createConstraintName(String prefix, String preferredName, Object uniqueId)
String
createForeignKey(ForeignKeyMetaData foreignKeyMetaData)
List<String>
createForeignKeyStatements()
List<String>
createForeignKeyStatements(List<TableMetaData> tables)
String
createIndex(IndexMetaData indexMetaData)
List<String>
createIndexStatements()
List<String>
createIndexStatements(List<TableMetaData> tables)
List<String>
createPrimaryKeyStatements()
List<String>
createPrimaryKeyStatements(List<TableMetaData> tables)
String
createTable(TableMetaData tableMetaData)
String
createTableColumn(ColumnMetaData columnMetaData)
List<String>
createTableStatements()
List<String>
createTableStatements(List<TableMetaData> tables)
String
getSourceConnectorId()
String
getTargetConnectorId()
int
getTargetMaxNameLength()
-
-
-
Constructor Detail
-
SchemaScriptCreatorTool
public SchemaScriptCreatorTool(ConnectorRepository connectorRepository, String sourceConnectorId, String targetConnectorId)
-
-
Method Detail
-
createTableStatements
public List<String> createTableStatements(List<TableMetaData> tables)
-
createPrimaryKeyStatements
public List<String> createPrimaryKeyStatements(List<TableMetaData> tables)
-
createIndexStatements
public List<String> createIndexStatements(List<TableMetaData> tables)
-
createForeignKeyStatements
public List<String> createForeignKeyStatements(List<TableMetaData> tables)
-
createTable
public String createTable(TableMetaData tableMetaData)
-
createIndex
public String createIndex(IndexMetaData indexMetaData)
-
createForeignKey
public String createForeignKey(ForeignKeyMetaData foreignKeyMetaData)
-
createColumn
public String createColumn(ColumnMetaData columnMetaData)
-
createConstraintName
public String createConstraintName(String prefix, String preferredName, Object uniqueId)
-
getTargetMaxNameLength
public int getTargetMaxNameLength()
-
createTableColumn
public String createTableColumn(ColumnMetaData columnMetaData)
-
getTargetConnectorId
public String getTargetConnectorId()
-
getSourceConnectorId
public String getSourceConnectorId()
-
-