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