Package Modeling :: Package interfaces :: Module SchemaGeneration
[show private | hide private]
[frames | no frames]

Module Modeling.interfaces.SchemaGeneration

SchemaGeneration API

This class provides specialized methods producing statements to create or drop database's elements, such as databases, tables, columns, constraints and specific support for the generation of primary keys.

Specific AdaptorLayers may provide their own SchemaGeneration class ; in that case, that class should be derived from SchemaGeneration and it overrides inherited methods as needed. Specific instructions for overriding are given along with each method's documentation.

Constants

The following constants are defined, for use by the 'options' dictionary in methods 'schemaCreationStatementsForEntities()' and 'schemaCreationScriptForEntities()'

  • DropDatabaseKey
  • CreateDatabaseKey
  • DropTablesKey
  • CreateTablesKey
  • DropPrimaryKeySupportKey
  • CreatePrimaryKeySupportKey
  • PrimaryKeyConstraintsKey
  • ForeignKeyConstraintsKey
  • DropForeignKeyConstraintsKey
  • DropPrimaryKeyConstraintsKey

CVS information

$Id: SchemaGeneration.py,v 1.7 2004/07/20 06:21:41 sbigaret Exp $

Classes
Base  
ISchemaGeneration ...

Function Summary
  defaultOrderingsForSchemaCreation()
Used in method SchemaGeneration.schemaCreationScriptForEntities() to order the schema creation statements produced
  setDefaultOrderingsForSchemaCreation()
Sets the default ordering.

Function Details

defaultOrderingsForSchemaCreation()

Used in method SchemaGeneration.schemaCreationScriptForEntities() to order the schema creation statements produced

This method is also available as a static method in class SchemaGeneration.

setDefaultOrderingsForSchemaCreation()

Sets the default ordering. See defaultOrderingsForSchemaCreation() for details.

This method is also available as a static method in class SchemaGeneration.


Generated by Epydoc 2.1 on Sat Mar 4 13:36:27 2006 http://epydoc.sf.net