This section lists the SQL statements supported in the Cameo Data Modeler plugin. They are parsed and mapped into model constructs.

The following table provides SQL2 SQL schema statements and their support status in the Cameo Data Modeler plugin. Yes indicates that a statement can be generated into a DLL script from model constructs and reverse engineered from a script into model constructs.

SQL schema statementSupported(Yes/No)
SQL schema definition statement








Schema definitionYes
Table definitionYes
View definitionYes
Alter table statementYes
Grant statementNo
Domain definitionNo
Assertion definitionNo
Character set definitionNo
Collation definitionNo
Translation definitionNo
SQL schema manipulation statement








Drop table statementYes
Drop view statementYes
Revoke statementNo
Alter domain statementNo
Drop assertion statementNo
Drop domain statementNo
Drop character set statementNo
Drop collation statementNo
Drop translation statementNo

Some SQL schema statements (e.g. schema definition, table definition) allow implicit catalog names and unqualified schema names. In addition to SQL schema statements, the following SQL session statements must be supported:

  • Set catalog statement - sets the current default catalog name.
  • Set schema statement - sets the current default unqualified schema name.

Cameo Data Modeler supports the following widely used dialect statements that are not part of SQL2:

  • Database definition statement (CREATE DATABASE) that creates a database
  • Index statements (CREATE INDEX, DROP INDEX) that create or remove an index on a table
  • Trigger statements (CREATE TRIGGER, DROP TRIGGER) that create or remove trigger(s) on a table

The following table provides details on mapping on the supported SQL schema manipulation statements into SQL constructs.

DDL Statement or Concept

Action, model Item


Description

Visible

Alter table statementModify classElements: table name and alter table action. Alter table action – one of: add column, add table constraint, alter column, drop table constraint, drop column.Yes
Add column definitionDefine attributeElements: column definition.Yes

Add table constraint definition

Define methodElements: table constraint definition.Yes
Alter column definitionModify attributeElements: mandatory column name, default clause (for add default statement only).Yes

Drop table constraint definition

Delete methodElements: constraint name, drop behaviorYes
Drop column definition Delete attributeElements: column name, drop behaviorYes
Drop schema statementDelete packageElements: schema name, drop behaviorYes
Drop table statementDelete classElements: table name, drop behaviorYes
Drop view statementDelete classElements: table name, drop behaviorYes
Drop behaviorAction propertyModifiers: CASCADE, RESTRICTNo