Home | Trees | Index | Help |
|
---|
Package Modeling :: Package DatabaseAdaptors :: Package OracleAdaptorLayer :: Module OracleSchemaGeneration :: Class OracleSchemaGeneration |
|
SchemaGeneration
--+
|
OracleSchemaGeneration
Concrete SchemaGeneration for Oracle
See Modeling.interfaces.SchemaGeneration for further details
Method Summary | |
---|---|
Not supported | |
Not supported | |
Return a SQLExpression object designed to remove the foreign key constraints built by foreignKeyConstraintStatementsForRelationship(). | |
Returns the SQL statement used to drop the primary key constraint. | |
Returns a list containing a single SQLExpression statement, which takes the following form: 'DROP SEQUENCE <SEQUENCE_NAME>', where '<SEQUENCE_NAME>' is: | |
Overrides the default implementation to return ALTER TABLE <TABLE> ADD CONSTRAINT <TABLE>_PRIMARY_KEY PRIMARY KEY(<PKs>) | |
Returns a list containing a single SQLExpression statement, which takes the following form: 'CREATE SEQUENCE <SEQUENCE_NAME> START WITH 1 ORDER', where '<SEQUENCE_NAME>' is: | |
Inherited from SchemaGeneration | |
See interfaces.SchemaGeneration for details | |
Appends the expression to the StringIO script, prepended with a semi-colon (';') and a newline if the StringIO is not empty. | |
Returns a list of SQLExpressions needed to create the tables defined by the supplied 'entityGroup', or an empty list if 'entityGroup' is empty. | |
Invokes createTableStatementsForEntityGroup() for each entityGroup in 'entityGroups', and returns the list of SQLExpressions needed to create the necessary table. | |
Used in method SchemaGeneration.schemaCreationScriptForEntities() to order the schema creation statements produced (Static method) | |
Iterates on each entityGroup in 'entityGroups', sends the message 'dropPrimaryKeyConstraintStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
Iterates on each entityGroup in 'entityGroups', sends the message 'dropPrimaryKeySupportStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
Parameter: | |
Iterates on each entityGroup in 'entityGroups', sends the message 'dropPrimaryKeySupportStatementsForEntityGroup()' to each of them, collects the results and returns them in a sequence. | |
Returns a list of SQLExpressions needed to add a constraint statement for the given relationship. | |
Iterates on each entityGroup in 'entityGroups', sends the message 'primaryKeyConstraintStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
Iterates on each entityGroup in 'entityGroups', sends the message 'primaryKeySupportStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
__TBD | |
__TBD doc. | |
__TBD doc. | |
Sets the default ordering. (Static method) | |
Returns a list of entityGroups ; each entityGroup consists of the entities in parameter 'entities' which share the same externalName(), and wich answered positively to the definesTableColumns() message. |
Class Variable Summary | |
---|---|
Inherited from SchemaGeneration | |
tuple |
__implements__ = (<class Modeling.interfaces.SchemaGener...
|
Instance Method Details |
---|
createDatabaseStatementsForConnectionDictionary(self, connectionDictionary, administrativeConnectionDictionary, createUserFlag=1)Not supported See also: interfaces.SchemaGeneration for details |
dropDatabaseStatementsForConnectionDictionary(self, connectionDictionary, administrativeConnectionDictionary, dropUserFlag=1)Not supported |
dropForeignKeyConstraintStatementsForRelationship(self, relationship)Return a SQLExpression object designed to remove the foreign key constraints built by foreignKeyConstraintStatementsForRelationship(). See also: foreignKeyConstraintStatementsForRelationship() |
dropPrimaryKeyConstraintStatementsForEntityGroup(self, entityGroup)Returns the SQL statement used to drop the primary key constraint. That statement is: ALTER TABLE <TABLE> DROP CONSTRAINT <TABLE>_PRIMARY_KEY where <TABLE> is entityGroup[0].externalName(). See Modeling.interfaces.SchemaGeneration for further details See also: primaryKeyConstraintStatementsForEntityGroup() |
dropPrimaryKeySupportStatementsForEntityGroup(self, entityGroup)Returns a list containing a single SQLExpression statement, which takes the following form: 'DROP SEQUENCE <SEQUENCE_NAME>', where '<SEQUENCE_NAME>' is: 'PK_SEQ_%s'%entityGroup[0].primaryKeyRootName() See Modeling.interfaces.SchemaGeneration for further details See also: OracleAdaptorChannel.primaryKeysForNewRowsWithEntity() |
primaryKeyConstraintStatementsForEntityGroup(self, entityGroup)Overrides the default implementation to return ALTER TABLE <TABLE> ADD CONSTRAINT <TABLE>_PRIMARY_KEY PRIMARY KEY(<PKs>) <TABLE> is entityGroup[0].externalName() and <PKs> is a comma-separated list made of entityGroup[0].primaryKeyAttributes(). Parameter: 'entityGroup' -- a list of entities whose externalNames are identical.
|
primaryKeySupportStatementsForEntityGroup(self, entityGroup)Returns a list containing a single SQLExpression statement, which takes the following form: 'CREATE SEQUENCE <SEQUENCE_NAME> START WITH 1 ORDER', where '<SEQUENCE_NAME>' is: 'PK_SEQ_%s'%entityGroup[0].primaryKeyRootName() See Modeling.interfaces.SchemaGeneration for further details
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:23 2006 | http://epydoc.sf.net |