public class MSSqlDDLGenerator extends DBDDLGenerator<DBDatabaseDriverMSSQL>
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 |
---|
MSSqlDDLGenerator(DBDatabaseDriverMSSQL driver) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCreateIndexStmt(DBIndex index,
StringBuilder sql,
DBSQLScript script) |
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 |
initDataTypes(DBDatabaseDriverMSSQL driver)
sets Oracle specific data types
|
addAlterTableStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDesc, appendElementName, createIndex, createRelation, createTable, createTableIndexes, createView, detectQuoteName, dropDatabase, dropObject, getDDLScript
public MSSqlDDLGenerator(DBDatabaseDriverMSSQL driver)
protected void initDataTypes(DBDatabaseDriverMSSQL driver)
driver
- protected boolean appendColumnDataType(DataType type, double size, DBTableColumn c, StringBuilder sql)
DBDDLGenerator
appendColumnDataType
in class DBDDLGenerator<DBDatabaseDriverMSSQL>
type
- the typesize
- the sizesql
- the builder that we will append toprotected void createDatabase(DBDatabase db, DBSQLScript script)
DBDDLGenerator
createDatabase
in class DBDDLGenerator<DBDatabaseDriverMSSQL>
db
- the database to createscript
- the sql script to which to append the dll command(s)protected void addCreateIndexStmt(DBIndex index, StringBuilder sql, DBSQLScript script)
addCreateIndexStmt
in class DBDDLGenerator<DBDatabaseDriverMSSQL>
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.