Project Wonder 5.0

com.webobjects.jdbcadaptor
Class _MySQLPlugIn.MySQLSynchronizationFactory

java.lang.Object
  extended by com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory
      extended by com.webobjects.jdbcadaptor._MySQLPlugIn.MySQLSynchronizationFactory
All Implemented Interfaces:
com.webobjects.eoaccess.synchronization.EOSchemaGeneration, com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Enclosing class:
_MySQLPlugIn

public static class _MySQLPlugIn.MySQLSynchronizationFactory
extends com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory


Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory.Delegate
 
Nested classes/interfaces inherited from interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes
 
Field Summary
 
Fields inherited from class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory
_adaptor
 
Constructor Summary
_MySQLPlugIn.MySQLSynchronizationFactory(EOAdaptor adaptor)
           
 
Method Summary
 String _alterPhraseInsertionClausePrefixAtIndex(int columnIndex)
           
 NSArray<EOSQLExpression> _statementsToDropPrimaryKeyConstraintsOnTableNamed(String tableName)
           
 String columnTypeStringForAttribute(EOAttribute attribute)
           
 NSArray<EOSQLExpression> dropPrimaryKeySupportStatementsForEntityGroups(NSArray<NSArray<EOEntity>> entityGroups)
           
 NSArray<EOSQLExpression> foreignKeyConstraintStatementsForRelationship(EORelationship relationship)
           
protected  String formatColumnName(String name)
           
protected  String formatTableName(String name)
           
 NSArray<EOSQLExpression> primaryKeySupportStatementsForEntityGroups(NSArray<NSArray<EOEntity>> entityGroups)
           
 NSArray<EOSQLExpression> statementsToConvertColumnType(String columnName, String tableName, com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes oldType, com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes newType, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
           
 NSArray<EOSQLExpression> statementsToDeleteColumnNamed(String columnName, String tableName, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
           
 NSArray<EOSQLExpression> statementsToInsertColumnForAttribute(EOAttribute attribute, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
           
 NSArray<EOSQLExpression> statementsToModifyColumnNullRule(String columnName, String tableName, boolean allowsNull, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
           
 NSArray<EOSQLExpression> statementsToRenameColumnNamed(String columnName, String tableName, String newName, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
           
 NSArray<EOSQLExpression> statementsToRenameTableNamed(String tableName, String newName, com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
           
 boolean supportsDirectColumnNullRuleModification()
           
 boolean supportsDirectColumnRenaming()
           
 boolean supportsSchemaSynchronization()
           
 
Methods inherited from class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory
_allowsNullForColumnNamed, _alterPhraseCoercingColumnsWithNames, _alterPhraseDeletingColumnsWithNames, _alterPhraseInsertingColumnsWithNames, _alterPhraseJoinString, _arePurelyForeignKeyConstraintRelatedChanges, _canConvertColumnOfTypeToTypeOptions, _columnAttributesInEntityGroup, _columnCreationClauseForAttribute, _columnTypeForAttribute, _columnTypeForChangeDictionaryAndAttribute, _columnTypeNamedWithPrecisionScaleAndWidth, _directCoercionsForEntityGroupInTable, _entityGroupInModelForTableNamed, _entityGroupsInModelReferringToTableNamed, _expressionForEntity, _expressionForString, _firstAttributeInEntityGroupWithColumnName, _foreignKeyConstraintStatementsForEntityGroup, _intForExpressionStringAdaptorChannel, _isPoorlyFormedColumnType, _isSignificantExceptionAtIndexOfSynchronizationStatements, _isTableCopyingRequiredByColumnChangesToEntityGroup, _isTableNamed, _nameInObjectStoreForEntityGroupWithChangeDictionary, _namesOfColumnsCoercedInChangeDictionaryForEntityGroup, _nullCountForColumnNamedInTableNamedBeneathModel, _parameterizedTypes, _prettyDictionary, _primaryKeyEntityGroupsForEntityGroups, _rowCountForTableNamedBeneathModel, _schemaCreationStatementsForEntityGroup, _schemaSynchronizationAdaptor, _schemaSynchronizationAdaptorChannelForModel, _schemaSynchronizationCommentsEnabled, _setSchemaSynchronizationCommentsEnabled, _sqlReplacements, _statementsCommentedWithString, _statementsToCreateTableForEntityGroupOptions, _statementsToDeleteTableNamedOptions, _statementsToDirectlyUpdateObjectStoreForEntityGroup, _statementsToIndirectlyUpdateObjectStoreForEntityGroupWithChangeDictionaryOptions, _statementsToUpdateObjectStoreForEntityGroup, _tableNameMapInChangeDictionary, _temporaryNameForTableName, adaptor, appendExpressionToScript, attributeInEntityWithColumnName, columnDescriptionForTableAndModel, createDatabaseStatementsForConnectionDictionary, createIndexExpressionsForEntity, createIndexStatementForEntity, createIndexStatementsForEntityGroup, createIndexStatementsForEntityGroups, createTableStatementsForEntityGroup, createTableStatementsForEntityGroups, dropDatabaseStatementsForConnectionDictionary, dropIndexExpressionsForEntity, dropIndexStatementForEntity, dropIndexStatementsForEntityGroup, dropIndexStatementsForEntityGroups, dropPrimaryKeySupportStatementsForEntityGroup, dropTableStatementsForEntityGroup, dropTableStatementsForEntityGroups, indexDefinitionForEntity, indexDescriptionForTableAndModel, isCaseSensitive, isColumnTypeEquivalentToColumnType, logicalErrorsInChangeDictionaryForModelOptions, newChanges, newOptions, objectStoreChangesFromAttributeToAttribute, phraseCastingColumnNamed, primaryKeyConstraintStatementsForEntityGroup, primaryKeyConstraintStatementsForEntityGroups, primaryKeyEntityGroupsForEntities, primaryKeySupportStatementsForEntityGroup, schemaCreationScriptForEntities, schemaCreationStatementsForEntities, schemaGenerationDelegate, schemaSynchronizationDelegate, setSchemaGenerationDelegate, setSchemaSynchronizationDelegate, statementsToCopyTableNamed, statementsToDropForeignKeyConstraintsOnEntityGroup, statementsToDropForeignKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeySupportForEntityGroups, statementsToImplementForeignKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeySupportForEntityGroups, statementsToUpdateObjectStoreForEntityGroups, statementsToUpdateObjectStoreForModel, supportsDirectColumnCoercion, supportsDirectColumnDeletion, supportsDirectColumnInsertion, supportsTableDescriptionIntrospection, tableDescriptionForModel, tableEntityGroupsForEntities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

_MySQLPlugIn.MySQLSynchronizationFactory

public _MySQLPlugIn.MySQLSynchronizationFactory(EOAdaptor adaptor)
Method Detail

_alterPhraseInsertionClausePrefixAtIndex

public String _alterPhraseInsertionClausePrefixAtIndex(int columnIndex)
Overrides:
_alterPhraseInsertionClausePrefixAtIndex in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

formatTableName

protected String formatTableName(String name)
Overrides:
formatTableName in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

formatColumnName

protected String formatColumnName(String name)
Overrides:
formatColumnName in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

statementsToConvertColumnType

public NSArray<EOSQLExpression> statementsToConvertColumnType(String columnName,
                                                              String tableName,
                                                              com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes oldType,
                                                              com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes newType,
                                                              com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
Specified by:
statementsToConvertColumnType in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
statementsToConvertColumnType in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

primaryKeySupportStatementsForEntityGroups

public NSArray<EOSQLExpression> primaryKeySupportStatementsForEntityGroups(NSArray<NSArray<EOEntity>> entityGroups)
Specified by:
primaryKeySupportStatementsForEntityGroups in interface com.webobjects.eoaccess.synchronization.EOSchemaGeneration
Overrides:
primaryKeySupportStatementsForEntityGroups in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

statementsToDeleteColumnNamed

public NSArray<EOSQLExpression> statementsToDeleteColumnNamed(String columnName,
                                                              String tableName,
                                                              com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
Specified by:
statementsToDeleteColumnNamed in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
statementsToDeleteColumnNamed in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

statementsToInsertColumnForAttribute

public NSArray<EOSQLExpression> statementsToInsertColumnForAttribute(EOAttribute attribute,
                                                                     com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
Specified by:
statementsToInsertColumnForAttribute in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
statementsToInsertColumnForAttribute in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

statementsToModifyColumnNullRule

public NSArray<EOSQLExpression> statementsToModifyColumnNullRule(String columnName,
                                                                 String tableName,
                                                                 boolean allowsNull,
                                                                 com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
Specified by:
statementsToModifyColumnNullRule in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
statementsToModifyColumnNullRule in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

supportsDirectColumnNullRuleModification

public boolean supportsDirectColumnNullRuleModification()
Specified by:
supportsDirectColumnNullRuleModification in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
supportsDirectColumnNullRuleModification in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

statementsToRenameColumnNamed

public NSArray<EOSQLExpression> statementsToRenameColumnNamed(String columnName,
                                                              String tableName,
                                                              String newName,
                                                              com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
Specified by:
statementsToRenameColumnNamed in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
statementsToRenameColumnNamed in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

supportsDirectColumnRenaming

public boolean supportsDirectColumnRenaming()
Specified by:
supportsDirectColumnRenaming in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
supportsDirectColumnRenaming in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

dropPrimaryKeySupportStatementsForEntityGroups

public NSArray<EOSQLExpression> dropPrimaryKeySupportStatementsForEntityGroups(NSArray<NSArray<EOEntity>> entityGroups)
Specified by:
dropPrimaryKeySupportStatementsForEntityGroups in interface com.webobjects.eoaccess.synchronization.EOSchemaGeneration
Overrides:
dropPrimaryKeySupportStatementsForEntityGroups in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

_statementsToDropPrimaryKeyConstraintsOnTableNamed

public NSArray<EOSQLExpression> _statementsToDropPrimaryKeyConstraintsOnTableNamed(String tableName)
Overrides:
_statementsToDropPrimaryKeyConstraintsOnTableNamed in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

foreignKeyConstraintStatementsForRelationship

public NSArray<EOSQLExpression> foreignKeyConstraintStatementsForRelationship(EORelationship relationship)
Specified by:
foreignKeyConstraintStatementsForRelationship in interface com.webobjects.eoaccess.synchronization.EOSchemaGeneration
Overrides:
foreignKeyConstraintStatementsForRelationship in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

statementsToRenameTableNamed

public NSArray<EOSQLExpression> statementsToRenameTableNamed(String tableName,
                                                             String newName,
                                                             com.webobjects.eoaccess.synchronization.EOSchemaGenerationOptions options)
Specified by:
statementsToRenameTableNamed in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
statementsToRenameTableNamed in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

supportsSchemaSynchronization

public boolean supportsSchemaSynchronization()
Specified by:
supportsSchemaSynchronization in interface com.webobjects.eoaccess.synchronization.EOSchemaSynchronization
Overrides:
supportsSchemaSynchronization in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory

columnTypeStringForAttribute

public String columnTypeStringForAttribute(EOAttribute attribute)

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.