public class PostgresqlSynchronizationFactory
extends com.webobjects.eoaccess.EOSynchronizationFactory
implements com.webobjects.eoaccess.EOSchemaGeneration, com.webobjects.eoaccess.EOSchemaSynchronization
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory.Delegate| Modifier and Type | Field and Description |
|---|---|
static String |
USING_KEY |
_adaptorCreateDatabaseKey, CreateIndexesKey, CreatePrimaryKeySupportKey, CreateTablesKey, DropDatabaseKey, DropIndexesKey, DropPrimaryKeySupportKey, DropTablesKey, ForeignKeyConstraintsKey, PrimaryKeyConstraintsKeyAllowsNullKey, ColumnNameKey, ExternalNameKey, ExternalTypeKey, NameKey, PrecisionKey, RelationshipsKey, ScaleKey, SchemaSynchronizationForeignKeyConstraintsKey, SchemaSynchronizationPrimaryKeyConstraintsKey, SchemaSynchronizationPrimaryKeySupportKey, WidthKey| Constructor and Description |
|---|
PostgresqlSynchronizationFactory(com.webobjects.eoaccess.EOAdaptor adaptor) |
| Modifier and Type | Method and Description |
|---|---|
String |
_columnCreationClauseForAttribute(EOAttribute attribute) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
_foreignKeyConstraintStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup) |
protected boolean |
_shouldGenerateForeignKeyConstraints(com.webobjects.eoaccess.EORelationship rel) |
StringBuffer |
addCreateClauseForAttribute(EOAttribute eoattribute) |
String |
columnTypeStringForAttribute(EOAttribute attribute) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
createTableStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
Quote table name if necessary
|
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
dropPrimaryKeySupportStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to drop the primary key
support.
|
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
dropTableStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to drop tables.
|
static boolean |
entityUsesSeparateTable(com.webobjects.eoaccess.EOEntity entity) |
protected String |
externalNameForEntityWithoutSchema(com.webobjects.eoaccess.EOEntity entity) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
foreignKeyConstraintStatementsForRelationship(com.webobjects.eoaccess.EORelationship relationship)
Generates the PostgreSQL-specific SQL statements to enforce the foreign
key constraints for
relationship. |
protected String |
formatColumnName(String name) |
protected String |
formatTableName(String name) |
protected boolean |
isInEntityModeler(com.webobjects.eoaccess.EOModel model)
Returns true if Entity Modeler is running the operation on this model.
|
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
primaryKeyConstraintStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to enforce primary key
constraints.
|
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
primaryKeySupportStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to create the primary
key support.
|
static String |
replaceStringByStringInString(String old,
String newString,
String buffer)
Deprecated.
use
StringUtils.replace(String, String, String) instead |
String |
schemaCreationScriptForEntities(NSArray allEntities,
NSDictionary options) |
NSArray |
schemaCreationStatementsForEntities(NSArray allEntities,
NSDictionary options) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
statementsToConvertColumnType(String columnName,
String tableName,
com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes oldType,
com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes newType,
NSDictionary options) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
statementsToDeleteColumnNamed(String columnName,
String tableName,
NSDictionary options) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
statementsToInsertColumnForAttribute(EOAttribute attribute,
NSDictionary options) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
statementsToModifyColumnNullRule(String columnName,
String tableName,
boolean allowsNull,
NSDictionary nsdictionary) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
statementsToRenameColumnNamed(String columnName,
String tableName,
String newName,
NSDictionary nsdictionary) |
NSArray<com.webobjects.eoaccess.EOSQLExpression> |
statementsToRenameTableNamed(String tableName,
String newName,
NSDictionary options) |
isColumnTypeEquivalentToColumnType, phraseCastingColumnNamed, statementsToCopyTableNamed, statementsToDropForeignKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeySupportForEntityGroups, statementsToImplementForeignKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeySupportForEntityGroups, statementsToUpdateObjectStoreForEntityGroups, statementsToUpdateObjectStoreForModel_allowsNullForColumnNamed, _alterPhraseCoercingColumnsWithNames, _alterPhraseDeletingColumnsWithNames, _alterPhraseInsertingColumnsWithNames, _alterPhraseInsertionClausePrefixAtIndex, _alterPhraseJoinString, _arePurelyForeignKeyConstraintRelatedChanges, _canConvertColumnOfTypeToTypeOptions, _columnAttributesInEntityGroup, _columnTypeForAttribute, _columnTypeForChangeDictionaryAndAttribute, _columnTypeNamedWithPrecisionScaleAndWidth, _directCoercionsForEntityGroupInTable, _entityGroupInModelForTableNamed, _entityGroupsInModelReferringToTableNamed, _expressionForEntity, _expressionForString, _firstAttributeInEntityGroupWithColumnName, _intForExpressionStringAdaptorChannel, _isPoorlyFormedColumnType, _isSignificantExceptionAtIndexOfSynchronizationStatements, _isTableCopyingRequiredByColumnChangesToEntityGroup, _isTableNamed, _nameInObjectStoreForEntityGroupWithChangeDictionary, _namesOfColumnsCoercedInChangeDictionaryForEntityGroup, _nullCountForColumnNamedInTableNamedBeneathModel, _parameterizedTypes, _prettyDictionary, _primaryKeyEntityGroupsForEntityGroups, _rowCountForTableNamedBeneathModel, _schemaCreationStatementsForEntityGroup, _schemaSynchronizationAdaptor, _schemaSynchronizationAdaptorChannelForModel, _schemaSynchronizationCommentsEnabled, _setSchemaSynchronizationCommentsEnabled, _sqlReplacements, _statementsCommentedWithString, _statementsToCreateTableForEntityGroupOptions, _statementsToDeleteTableNamedOptions, _statementsToDirectlyUpdateObjectStoreForEntityGroup, _statementsToDropPrimaryKeyConstraintsOnTableNamed, _statementsToIndirectlyUpdateObjectStoreForEntityGroupWithChangeDictionaryOptions, _statementsToUpdateObjectStoreForEntityGroup, _tableNameMapInChangeDictionary, _temporaryNameForTableName, adaptor, appendExpressionToScript, attributeInEntityWithColumnName, columnDescriptionForTableAndModel, createDatabaseStatementsForConnectionDictionary, createIndexExpressionsForEntity, createIndexStatementForEntity, createIndexStatementsForEntityGroup, createIndexStatementsForEntityGroups, createTableStatementsForEntityGroups, dropDatabaseStatementsForConnectionDictionary, dropIndexExpressionsForEntity, dropIndexStatementForEntity, dropIndexStatementsForEntityGroup, dropIndexStatementsForEntityGroups, dropPrimaryKeySupportStatementsForEntityGroups, dropTableStatementsForEntityGroups, indexDefinitionForEntity, indexDescriptionForTableAndModel, isCaseSensitive, isColumnTypeEquivalentToColumnType, logicalErrorsInChangeDictionaryForModelOptions, newChanges, newOptions, objectStoreChangesFromAttributeToAttribute, phraseCastingColumnNamed, primaryKeyConstraintStatementsForEntityGroups, primaryKeyEntityGroupsForEntities, primaryKeySupportStatementsForEntityGroups, schemaCreationScriptForEntities, schemaCreationStatementsForEntities, schemaGenerationDelegate, schemaSynchronizationDelegate, setSchemaGenerationDelegate, setSchemaSynchronizationDelegate, statementsToConvertColumnType, statementsToCopyTableNamed, statementsToDeleteColumnNamed, statementsToDropForeignKeyConstraintsOnEntityGroup, statementsToDropForeignKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeySupportForEntityGroups, statementsToImplementForeignKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeySupportForEntityGroups, statementsToInsertColumnForAttribute, statementsToModifyColumnNullRule, statementsToRenameColumnNamed, statementsToRenameTableNamed, statementsToUpdateObjectStoreForEntityGroups, statementsToUpdateObjectStoreForModel, supportsDirectColumnCoercion, supportsDirectColumnDeletion, supportsDirectColumnInsertion, supportsDirectColumnNullRuleModification, supportsDirectColumnRenaming, supportsSchemaSynchronization, supportsTableDescriptionIntrospection, tableDescriptionForModel, tableEntityGroupsForEntitiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendExpressionToScript, createDatabaseStatementsForConnectionDictionary, createIndexStatementsForEntityGroup, createIndexStatementsForEntityGroups, createTableStatementsForEntityGroups, dropDatabaseStatementsForConnectionDictionary, dropIndexStatementsForEntityGroup, dropIndexStatementsForEntityGroups, dropPrimaryKeySupportStatementsForEntityGroups, dropTableStatementsForEntityGroups, newOptions, primaryKeyConstraintStatementsForEntityGroups, primaryKeySupportStatementsForEntityGroups, schemaCreationScriptForEntities, schemaCreationStatementsForEntities, schemaGenerationDelegate, setSchemaGenerationDelegateisColumnTypeEquivalentToColumnType, phraseCastingColumnNamed, statementsToCopyTableNamed, statementsToDropForeignKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeySupportForEntityGroups, statementsToImplementForeignKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeySupportForEntityGroups, statementsToUpdateObjectStoreForEntityGroups, statementsToUpdateObjectStoreForModelcolumnDescriptionForTableAndModel, indexDescriptionForTableAndModel, isColumnTypeEquivalentToColumnType, newChanges, newOptions, objectStoreChangesFromAttributeToAttribute, phraseCastingColumnNamed, statementsToConvertColumnType, statementsToCopyTableNamed, statementsToDeleteColumnNamed, statementsToDropForeignKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeySupportForEntityGroups, statementsToImplementForeignKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeySupportForEntityGroups, statementsToInsertColumnForAttribute, statementsToModifyColumnNullRule, statementsToRenameColumnNamed, statementsToRenameTableNamed, statementsToUpdateObjectStoreForEntityGroups, statementsToUpdateObjectStoreForModel, supportsDirectColumnCoercion, supportsDirectColumnDeletion, supportsDirectColumnInsertion, supportsDirectColumnNullRuleModification, supportsDirectColumnRenaming, supportsSchemaSynchronization, supportsTableDescriptionIntrospection, tableDescriptionForModelpublic static final String USING_KEY
public PostgresqlSynchronizationFactory(com.webobjects.eoaccess.EOAdaptor adaptor)
public String _columnCreationClauseForAttribute(EOAttribute attribute)
_columnCreationClauseForAttribute in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactorypublic StringBuffer addCreateClauseForAttribute(EOAttribute eoattribute)
protected String formatTableName(String name)
formatTableName in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryprotected String formatColumnName(String name)
formatColumnName in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactorypublic NSArray<com.webobjects.eoaccess.EOSQLExpression> _foreignKeyConstraintStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
_foreignKeyConstraintStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryprotected boolean _shouldGenerateForeignKeyConstraints(com.webobjects.eoaccess.EORelationship rel)
public NSArray<com.webobjects.eoaccess.EOSQLExpression> dropPrimaryKeySupportStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
dropPrimaryKeySupportStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationdropPrimaryKeySupportStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryentityGroup - an array of EOEntity objectspublic NSArray<com.webobjects.eoaccess.EOSQLExpression> dropTableStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
dropTableStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationdropTableStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryentityGroup - an array of EOEntity objectspublic NSArray<com.webobjects.eoaccess.EOSQLExpression> foreignKeyConstraintStatementsForRelationship(com.webobjects.eoaccess.EORelationship relationship)
relationship.foreignKeyConstraintStatementsForRelationship in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationforeignKeyConstraintStatementsForRelationship in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryrelationship - the relationship, as represented by EOFprotected String externalNameForEntityWithoutSchema(com.webobjects.eoaccess.EOEntity entity)
public NSArray<com.webobjects.eoaccess.EOSQLExpression> primaryKeyConstraintStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
primaryKeyConstraintStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationprimaryKeyConstraintStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryentityGroup - an array of EOEntity objectsprotected boolean isInEntityModeler(com.webobjects.eoaccess.EOModel model)
model - the model to checkpublic NSArray<com.webobjects.eoaccess.EOSQLExpression> primaryKeySupportStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
primaryKeySupportStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationprimaryKeySupportStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryentityGroup - an array of EOEntity objectspublic static boolean entityUsesSeparateTable(com.webobjects.eoaccess.EOEntity entity)
public NSArray<com.webobjects.eoaccess.EOSQLExpression> createTableStatementsForEntityGroup(NSArray<com.webobjects.eoaccess.EOEntity> entityGroup)
createTableStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationcreateTableStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactorypublic static String replaceStringByStringInString(String old, String newString, String buffer)
StringUtils.replace(String, String, String) insteadold - string to be replacednewString - to be insertedbuffer - string to have the replacement done on itpublic String columnTypeStringForAttribute(EOAttribute attribute)
public NSArray<com.webobjects.eoaccess.EOSQLExpression> statementsToModifyColumnNullRule(String columnName, String tableName, boolean allowsNull, NSDictionary nsdictionary)
statementsToModifyColumnNullRule in class com.webobjects.eoaccess.EOSynchronizationFactorypublic NSArray<com.webobjects.eoaccess.EOSQLExpression> statementsToConvertColumnType(String columnName, String tableName, com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes oldType, com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes newType, NSDictionary options)
statementsToConvertColumnType in class com.webobjects.eoaccess.EOSynchronizationFactorypublic NSArray<com.webobjects.eoaccess.EOSQLExpression> statementsToRenameColumnNamed(String columnName, String tableName, String newName, NSDictionary nsdictionary)
statementsToRenameColumnNamed in class com.webobjects.eoaccess.EOSynchronizationFactorypublic NSArray<com.webobjects.eoaccess.EOSQLExpression> statementsToInsertColumnForAttribute(EOAttribute attribute, NSDictionary options)
statementsToInsertColumnForAttribute in class com.webobjects.eoaccess.EOSynchronizationFactorypublic NSArray<com.webobjects.eoaccess.EOSQLExpression> statementsToRenameTableNamed(String tableName, String newName, NSDictionary options)
statementsToRenameTableNamed in class com.webobjects.eoaccess.EOSynchronizationFactorypublic NSArray<com.webobjects.eoaccess.EOSQLExpression> statementsToDeleteColumnNamed(String columnName, String tableName, NSDictionary options)
statementsToDeleteColumnNamed in class com.webobjects.eoaccess.EOSynchronizationFactorypublic String schemaCreationScriptForEntities(NSArray allEntities, NSDictionary options)
schemaCreationScriptForEntities in class com.webobjects.eoaccess.EOSynchronizationFactorypublic NSArray schemaCreationStatementsForEntities(NSArray allEntities, NSDictionary options)
schemaCreationStatementsForEntities in class com.webobjects.eoaccess.EOSynchronizationFactoryCopyright © 2002 – 2020 Project Wonder.