Package org.apache.empire.dbms.derby
Class DerbyDDLGenerator
java.lang.Object
org.apache.empire.db.DBDDLGenerator<DBMSHandlerDerby>
org.apache.empire.dbms.derby.DerbyDDLGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.db.DBDDLGenerator
DBDDLGenerator.DDLActionType -
Field Summary
Fields inherited from class org.apache.empire.db.DBDDLGenerator
alterColumnPhrase, databaseObjectName, DATATYPE_BLOB, DATATYPE_BOOLEAN, DATATYPE_CHAR, DATATYPE_CLOB, DATATYPE_DATE, DATATYPE_DATETIME, DATATYPE_DECIMAL, DATATYPE_FLOAT, DATATYPE_INT_BIG, DATATYPE_INT_SMALL, DATATYPE_INTEGER, DATATYPE_TIME, DATATYPE_TIMESTAMP, DATATYPE_UNIQUEID, DATATYPE_VARCHAR, dbms, ddlColumnDefaults, log, namePrimaryKeyConstraint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanappendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) appends the data type of a columnprotected voidappendColumnDesc(DBTableColumn c, boolean alter, DBSQLBuilder sql) Appends a table column definition to a ddl statementMethods inherited from class org.apache.empire.db.DBDDLGenerator
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendElementName, appendIndexColumn, appendIndexType, createDatabase, createIndex, createRelation, createTable, createTableIndexes, createView, dropDatabase, dropObject, getDDLScript, isDDLColumnDefaults, setDDLColumnDefaults
-
Constructor Details
-
DerbyDDLGenerator
-
-
Method Details
-
appendColumnDataType
protected boolean appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) Description copied from class:DBDDLGeneratorappends the data type of a column- Overrides:
appendColumnDataTypein classDBDDLGenerator<DBMSHandlerDerby>- Parameters:
type- the typesize- the sizec- the table columnsql- the builder that we will append to- Returns:
- true if further column attributes may be added or false otherwise
-
appendColumnDesc
Description copied from class:DBDDLGeneratorAppends a table column definition to a ddl statement- Overrides:
appendColumnDescin classDBDDLGenerator<DBMSHandlerDerby>- Parameters:
c- the column which description to appendalter- true if altering an existing column or false otherwisesql- the sql builder object
-