public class MySQLDDLGenerator extends DBDDLGenerator<DBDatabaseDriverMySQL>
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_TIMESTAMP, DATATYPE_UNIQUEID, DATATYPE_VARCHAR, driver, namePrimaryKeyConstraint
Constructor and Description |
---|
MySQLDDLGenerator(DBDatabaseDriverMySQL driver) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder 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
|
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDesc, appendElementName, createIndex, createRelation, createTableIndexes, createView, detectQuoteName, dropDatabase, dropObject, getDDLScript
public MySQLDDLGenerator(DBDatabaseDriverMySQL driver)
protected boolean appendColumnDataType(DataType type, double size, DBTableColumn c, StringBuilder sql)
DBDDLGenerator
appendColumnDataType
in class DBDDLGenerator<DBDatabaseDriverMySQL>
type
- the typesize
- the sizesql
- the builder that we will append toprotected void createDatabase(DBDatabase db, DBSQLScript script)
DBDDLGenerator
createDatabase
in class DBDDLGenerator<DBDatabaseDriverMySQL>
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<DBDatabaseDriverMySQL>
t
- the table to createscript
- the sql script to which to append the dll command(s)Copyright © 2008–2015 Apache Software Foundation. All rights reserved.