|
WebObjects 5.4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory
com.webobjects.jdbcadaptor.OraclePlugIn.OracleSynchronizationFactory
public static class OraclePlugIn.OracleSynchronizationFactory
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory |
|---|
EOSchemaSynchronizationFactory.Delegate |
| Nested classes/interfaces inherited from interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization |
|---|
EOSchemaSynchronization.ColumnTypes |
| Constructor Summary | |
|---|---|
OraclePlugIn.OracleSynchronizationFactory(EOAdaptor adaptor)
|
|
| Method Summary | |
|---|---|
void |
appendExpressionToScript(EOSQLExpression expression,
StringBuffer script)
Appends expression's statement to script along with any necessary delimiter. |
NSArray |
createDatabaseStatementsForConnectionDictionary(NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
The default implementation returns null. |
NSArray |
dropDatabaseStatementsForConnectionDictionary(NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
The default implementation returns null. |
NSArray |
dropPrimaryKeySupportStatementsForEntityGroup(NSArray entityGroup)
The default implementation returns null. |
NSArray |
dropTableStatementsForEntityGroup(NSArray entityGroup)
Returns an array of EOSQLExpression objects that define the SQL necessary to drop the table identified by entityGroup. |
NSArray |
foreignKeyConstraintStatementsForRelationship(EORelationship relationship)
Returns an array of EOSQLExpression objects that define the SQL statements necessary to create foreign key constraints for relationship. |
NSArray |
primaryKeySupportStatementsForEntityGroup(NSArray entityGroup)
The default implementation returns null. |
boolean |
supportsSchemaSynchronization()
The default implementation returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OraclePlugIn.OracleSynchronizationFactory(EOAdaptor adaptor)
| Method Detail |
|---|
public NSArray dropTableStatementsForEntityGroup(NSArray entityGroup)
EOSchemaSynchronizationFactoryentityGroup. Returns an empty array if entityGroup is null. The drop statement generated by this method should be sufficient to remove the
table created by createTableStatementsForEntityGroup's statements.
This method creates a statement of the form:
DROP TABLE TABLE_NAME
where TABLE_NAME is the external name of the first entity in entityGroup.
If the database server's drop semantics are different, a subclass should override this method.
dropTableStatementsForEntityGroup in interface EOSchemaGenerationdropTableStatementsForEntityGroup in class EOSchemaSynchronizationFactoryentityGroup - An array of EOEntity objects that have the same external name.
entityGroup, or an empty array.EOSchemaSynchronizationFactory.createTableStatementsForEntityGroup( NSArray entityGroup),
EOEntity.externalName()public NSArray primaryKeySupportStatementsForEntityGroup(NSArray entityGroup)
EOSchemaSynchronizationFactorynull. Can be overridden by subclasses to return an array of EOSQLExpression objects that define the SQL necessary to create the primary key generation support for entityGroup.
primaryKeySupportStatementsForEntityGroup in interface EOSchemaGenerationprimaryKeySupportStatementsForEntityGroup in class EOSchemaSynchronizationFactoryentityGroup - An array of EOEntity objects that have the same external name.
null by default.EOSchemaSynchronizationFactory.dropPrimaryKeySupportStatementsForEntityGroup( NSArray entityGroup),
EOAdaptorChannel.primaryKeyForNewRowWithEntity( EOEntity entity),
EOEntity.externalName()public NSArray dropPrimaryKeySupportStatementsForEntityGroup(NSArray entityGroup)
EOSchemaSynchronizationFactorynull. Can be overridden by subclasses to return an array of EOSQLExpression objects that define the SQL necessary to drop the primary key generation support for entityGroup.
dropPrimaryKeySupportStatementsForEntityGroup in interface EOSchemaGenerationdropPrimaryKeySupportStatementsForEntityGroup in class EOSchemaSynchronizationFactoryentityGroup - An array of EOEntity objects that have the same external name.
null by default.EOSchemaSynchronizationFactory.primaryKeySupportStatementsForEntityGroup( NSArray entityGroup),
EOEntity.externalName()
public void appendExpressionToScript(EOSQLExpression expression,
StringBuffer script)
EOSchemaSynchronizationFactoryexpression's statement to script along with any necessary delimiter. script is the StringBuffer in which the SQL script is built. Used in conjunction with schemaCreationStatementsForEntities and
schemaCreationScriptForEntities to build up the SQL script to generate the specified schema for a set of EOEntities.
This method appends the SQL statement for expression to script followed by a semicolon and a newline. A subclass of EOSQLExpression only need to override this method if the delimiter for its database server is different.
appendExpressionToScript in interface EOSchemaGenerationappendExpressionToScript in class EOSchemaSynchronizationFactoryexpression - An EOSQLExpression.script - A StringBuffer used to build the SQL script.EOSchemaSynchronizationFactory.createTableStatementsForEntityGroup( NSArray entityGroup)
public NSArray createDatabaseStatementsForConnectionDictionary(NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
EOSchemaSynchronizationFactorynull. Can be overridden by subclasses to generate and return an array of EOSQLExpressions defining the SQL statements to create a database or user that can be accessed by the provided connectionDictionary and
administrativeConnectionDictionary.
createDatabaseStatementsForConnectionDictionary in interface EOSchemaGenerationcreateDatabaseStatementsForConnectionDictionary in class EOSchemaSynchronizationFactoryconnectionDictionary - A dictionary of information needed by the adaptor to connect to the database server.administrativeConnectionDictionary - A dictionary of administrative login information for the database server.
null by default.EOSchemaSynchronizationFactory.dropDatabaseStatementsForConnectionDictionary( NSDictionary connectionDictionary, NSDictionary administrativeConnectionDictionary)
public NSArray dropDatabaseStatementsForConnectionDictionary(NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
EOSchemaSynchronizationFactorynull. Can be overridden by subclasses to generate and return an array of EOSQLExpressions defining the SQL statements to drop a database or user that is accessed by the provided connectionDictionary and
administrativeConnectionDictionary.
dropDatabaseStatementsForConnectionDictionary in interface EOSchemaGenerationdropDatabaseStatementsForConnectionDictionary in class EOSchemaSynchronizationFactoryconnectionDictionary - A dictionary of information needed by the adaptor to connect to the database server.administrativeConnectionDictionary - A dictionary of administrative login information for the database server.
null by default.EOSchemaSynchronizationFactory.createDatabaseStatementsForConnectionDictionary( NSDictionary connectionDictionary, NSDictionary administrativeConnectionDictionary)public boolean supportsSchemaSynchronization()
EOSchemaSynchronizationFactoryfalse. Can be overridden by subclasses to return true if the adaptor can update the database schema to reflect changes in an EOModel.
supportsSchemaSynchronization in interface EOSchemaSynchronizationsupportsSchemaSynchronization in class EOSchemaSynchronizationFactorytrue if the adaptor can update the database schema.public NSArray foreignKeyConstraintStatementsForRelationship(EORelationship relationship)
EOSchemaGenerationrelationship. Returns an empty array if unable to generate foreign key constraints for relationship
foreignKeyConstraintStatementsForRelationship in interface EOSchemaGenerationforeignKeyConstraintStatementsForRelationship in class EOSchemaSynchronizationFactoryrelationship - An EORelationship.
relationship, or an empty array.EOSQLExpression,
EOSchemaSynchronizationFactory.foreignKeyConstraintStatementsForRelationship(EORelationship relationship),
#schemaCreationStatementsForEntities( NSArray allEntities, NSDictionary options)
|
Last updated June 2008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||