com.webobjects.jdbcadaptor
Class  SybasePlugIn.SybaseSynchronizationFactory
java.lang.Object
  |
  +--com.webobjects.eoaccess.EOSynchronizationFactory
        |
        +--com.webobjects.jdbcadaptor.SybasePlugIn.SybaseSynchronizationFactory
- All Implemented Interfaces: 
- EOSchemaGeneration, EOSchemaSynchronization
- Enclosing class: 
- SybasePlugIn
- public static class SybasePlugIn.SybaseSynchronizationFactory- extends EOSynchronizationFactory
 
 
 
| Fields inherited from interface com.webobjects.eoaccess.EOSchemaSynchronization | 
| AllowsNullKey, ColumnNameKey, ExternalNameKey, ExternalTypeKey, NameKey, PrecisionKey, RelationshipsKey, ScaleKey, SchemaSynchronizationForeignKeyConstraintsKey, SchemaSynchronizationPrimaryKeyConstraintsKey, SchemaSynchronizationPrimaryKeySupportKey, WidthKey | 
 
 
 
| Methods inherited from class com.webobjects.eoaccess.EOSynchronizationFactory | 
| adaptor, appendExpressionToScript, createDatabaseStatementsForConnectionDictionary, createTableStatementsForEntityGroup, createTableStatementsForEntityGroups, dropDatabaseStatementsForConnectionDictionary, dropPrimaryKeySupportStatementsForEntityGroup, dropTableStatementsForEntityGroups, foreignKeyConstraintStatementsForRelationship, isCaseSensitive, isColumnTypeEquivalentToColumnType, logicalErrorsInChangeDictionaryForModelOptions, objectStoreChangesFromAttributeToAttribute, phraseCastingColumnNamed, primaryKeyConstraintStatementsForEntityGroup, primaryKeyConstraintStatementsForEntityGroups, primaryKeyEntityGroupsForEntities, primaryKeySupportStatementsForEntityGroup, schemaCreationScriptForEntities, schemaCreationStatementsForEntities, schemaSynchronizationDelegate, setSchemaSynchronizationDelegate, statementsToConvertColumnType, statementsToCopyTableNamed, statementsToDeleteColumnNamed, statementsToDropForeignKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeySupportForEntityGroups, statementsToImplementForeignKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeySupportForEntityGroups, statementsToInsertColumnForAttribute, statementsToModifyColumnNullRule, statementsToRenameColumnNamed, statementsToUpdateObjectStoreForEntityGroups, statementsToUpdateObjectStoreForModel, supportsDirectColumnCoercion, supportsDirectColumnDeletion, supportsDirectColumnInsertion, supportsDirectColumnNullRuleModification, supportsDirectColumnRenaming, tableEntityGroupsForEntities | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SybasePlugIn.SybaseSynchronizationFactory
public SybasePlugIn.SybaseSynchronizationFactory(EOAdaptor adaptor)
dropPrimaryKeySupportStatementsForEntityGroups
public NSArray dropPrimaryKeySupportStatementsForEntityGroups(NSArray entityGroups)
- Description copied from class: EOSynchronizationFactory
- Returns an array of EOSQLExpression objects that define the SQL
 necessary to drop the primary key generation support for all the 
 entities in each of the the entity groups in 
 entityGroups. Returns an empty array ifentityGroupsisnullor empty. If primary
 key generation is not supported, returns an array that contains the 
 string "The 'Drop Primary Key Support' option is
 unavailable."This method invokes 
 dropPrimaryKeySupportStatementsForEntityGroupfor each
 entity group inentityGroupsand returns an array of
 all the resulting EOSQLExpressions. Since the default 
 implementation ofdropPrimaryKeySupportStatementsForEntityGroupreturnsnull, this method returns the "not supported"
 value (see above) by default, but a subclass need only overridedropPrimaryKeySupportStatementsForEntityGroupin order 
 to enable this method as well.
 
- 
- Overrides:
- dropPrimaryKeySupportStatementsForEntityGroupsin class- EOSynchronizationFactory
 
- Following copied from class: com.webobjects.eoaccess.EOSynchronizationFactory
- 
- Parameters:
- entityGroups- An NSArray of entity groups, which are arrays
                      of EOEntity objects that have the same 
                      external name.
- Returns:
- An array of EOSQLExpressions that define the
                      SQL necessary to drop primary key generation
                      support for entityGroups, or an 
                      empty array, or an array containing a string 
                      message that the option is not supported.
- See Also: 
- EOSynchronizationFactory.dropPrimaryKeySupportStatementsForEntityGroup(
                      NSArray entityGroup),- EOSynchronizationFactory.schemaCreationStatementsForEntities(
                      NSArray allEntities, NSDictionary options),- EOAdaptorChannel.primaryKeyForNewRowWithEntity(
                      EOEntity entity),- EOEntity.externalName()
 
dropTableStatementsForEntityGroup
public NSArray dropTableStatementsForEntityGroup(NSArray entityGroup)
- Description copied from class: EOSynchronizationFactory
- Returns an array of EOSQLExpression objects that define the SQL
 necessary to drop the table identified by entityGroup.
 Returns an empty array ifentityGroupisnull. The drop statement generated by this method 
 should be sufficient to remove the table created bycreateTableStatementsForEntityGroup's statements.This method creates a statement of the form:
  
             DROP TABLE TABLE_NAME
 where TABLE_NAMEis the external name of the first 
 entity inentityGroup.
 If the database server's drop semantics are different,
 a subclass should override this method. 
- 
- Overrides:
- dropTableStatementsForEntityGroupin class- EOSynchronizationFactory
 
- Following copied from class: com.webobjects.eoaccess.EOSynchronizationFactory
- 
- Parameters:
- entityGroup- An array of EOEntity objects that have the
                      same external name.
- Returns:
- An array of EOSQLExpressions that define
                      the SQL necessary to drop tables for the
                      entities in entityGroup, or
                      an empty array.
- See Also: 
- EOSynchronizationFactory.createTableStatementsForEntityGroup(
                      NSArray entityGroup),- EOEntity.externalName()
 
primaryKeySupportStatementsForEntityGroups
public NSArray primaryKeySupportStatementsForEntityGroups(NSArray entityGroups)
- Description copied from class: EOSynchronizationFactory
- Returns an array of EOSQLExpression objects that define the SQL
 necessary to create the primary key generation support for all the 
 entities in each of the the entity groups in 
 entityGroups. Returns an empty array ifentityGroupsisnullor empty. If primary
 key generation is not supported, returns an array that contains the 
 string "The 'Create Primary Key Support' option is
 unavailable."This method invokes 
 primaryKeySupportStatementsForEntityGroupfor each
 entity group inentityGroupsand returns an array of
 all the resulting EOSQLExpressions. Since the default 
 implementation ofprimaryKeySupportStatementsForEntityGroupreturnsnull, this method returns the "not supported"
 value (see above) by default, but a subclass need only overrideprimaryKeySupportStatementsForEntityGroupin order to 
 enable this method as well.
 
- 
- Overrides:
- primaryKeySupportStatementsForEntityGroupsin class- EOSynchronizationFactory
 
- Following copied from class: com.webobjects.eoaccess.EOSynchronizationFactory
- 
- Parameters:
- entityGroups- An NSArray of entity groups, which are arrays
                      of EOEntity objects that have the same 
                      external name.
- Returns:
- An array of EOSQLExpressions that define the
                      SQL necessary to create primary key generation
                      support for entityGroups, or an 
                      empty array, or an array containing a string 
                      message that the option is not supported.
- See Also: 
- EOSynchronizationFactory.primaryKeySupportStatementsForEntityGroup(
                      NSArray entityGroup),- EOAdaptorChannel.primaryKeyForNewRowWithEntity(
                      EOEntity entity),- EOEntity.externalName()
 
statementsToRenameTableNamed
public NSArray statementsToRenameTableNamed(String tableName,
                                            String newName,
                                            NSDictionary options)
- Description copied from interface: EOSchemaSynchronization
- Returns an array of EOSQLExpressions to rename in place the
 the table indentifed by tableNametonewName.optionsis a dictionary 
 describing the aspects of the schema for which to create SQL 
 statements.
- 
- Overrides:
- statementsToRenameTableNamedin class- EOSynchronizationFactory
 
- Following copied from interface: com.webobjects.eoaccess.EOSchemaSynchronization
- 
- Parameters:
- tableName- The name of a table to be renamed.
- newName- The new name for the specified table.
- options- A dictionary describing the aspects of the schema
                   for which to create SQL statements.
- Returns:
- An array of the EOSQLExpressions to rename in 
                   place the specified table.
 
supportsSchemaSynchronization
public boolean supportsSchemaSynchronization()
- Description copied from class: EOSynchronizationFactory
- The default implementation returns false. Can be
 overridden by subclasses to returntrueif the adaptor
 can update the database schema to reflect changes in an EOModel.
- 
- Overrides:
- supportsSchemaSynchronizationin class- EOSynchronizationFactory
 
- Following copied from class: com.webobjects.eoaccess.EOSynchronizationFactory
- 
- Returns:
- trueif the adaptor can update the 
         database schema.
 
Copyright © 2003 Apple Computer, Inc.