public class MySQLDDLGenerator extends DBDDLGenerator<DBMSHandlerMySQL>
DBDDLGenerator.DDLActionType| Modifier and Type | Field and Description |
|---|---|
protected String |
DATATYPE_INT_MEDIUM |
protected String |
DATATYPE_INT_TINY |
alterColumnPhrase, databaseObjectName, DATATYPE_BLOB, DATATYPE_BOOLEAN, DATATYPE_CHAR, DATATYPE_CLOB, DATATYPE_DATE, DATATYPE_DECIMAL, DATATYPE_FLOAT, DATATYPE_INT_BIG, DATATYPE_INT_SMALL, DATATYPE_INTEGER, DATATYPE_TIME, DATATYPE_TIMESTAMP, DATATYPE_UNIQUEID, DATATYPE_VARCHAR, dbms, ddlColumnDefaults, namePrimaryKeyConstraint| Constructor and Description |
|---|
MySQLDDLGenerator(DBMSHandlerMySQL dbms) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
appendColumnDataType(DataType type,
double size,
DBTableColumn c,
DBSQLBuilder sql)
appends the data type of a column
|
protected void |
createDatabase(DBDatabase db,
DBSQLScript script)
Appends the DDL-Script for creating the given database to an SQL-Script
This includes the generation of all tables, views and relations. |
protected void |
createTable(DBTable t,
DBSQLScript script)
Appends the DDL-Script for creating the given table to an SQL-Script
|
protected void |
createView(DBView v,
DBSQLScript script)
Appends the DDL-Script for creating the given view to an SQL-Script
|
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDesc, appendElementName, createIndex, createRelation, createTableIndexes, dropDatabase, dropObject, getDDLScript, isDDLColumnDefaults, setDDLColumnDefaultsprotected String DATATYPE_INT_TINY
protected String DATATYPE_INT_MEDIUM
public MySQLDDLGenerator(DBMSHandlerMySQL dbms)
protected boolean appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql)
DBDDLGeneratorappendColumnDataType in class DBDDLGenerator<DBMSHandlerMySQL>type - the typesize - the sizec - the table columnsql - the builder that we will append toprotected void createDatabase(DBDatabase db, DBSQLScript script)
DBDDLGeneratorcreateDatabase in class DBDDLGenerator<DBMSHandlerMySQL>db - the database to createscript - the sql script to which to append the dll command(s)protected void createTable(DBTable t, DBSQLScript script)
createTable in class DBDDLGenerator<DBMSHandlerMySQL>t - the table to createscript - the sql script to which to append the dll command(s)protected void createView(DBView v, DBSQLScript script)
createView in class DBDDLGenerator<DBMSHandlerMySQL>v - the view to createscript - the sql script to which to append the dll command(s)Copyright © 2008–2023 Apache Software Foundation. All rights reserved.