public class PostgresqlSynchronizationFactory extends EOSynchronizationFactory implements EOSchemaGeneration, EOSchemaSynchronization
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory.Delegatecom.webobjects.eoaccess.synchronization.EOSchemaGeneration.Delegatecom.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
USING_KEY |
_adaptorCreateDatabaseKey, CreateIndexesKey, CreatePrimaryKeySupportKey, CreateTablesKey, DropDatabaseKey, DropIndexesKey, DropPrimaryKeySupportKey, DropTablesKey, ForeignKeyConstraintsKey, PrimaryKeyConstraintsKeyAllowsNullKey, ColumnNameKey, ExternalNameKey, ExternalTypeKey, NameKey, PrecisionKey, RelationshipsKey, ScaleKey, SchemaSynchronizationForeignKeyConstraintsKey, SchemaSynchronizationPrimaryKeyConstraintsKey, SchemaSynchronizationPrimaryKeySupportKey, WidthKey_commentsEnabled| Constructor and Description |
|---|
PostgresqlSynchronizationFactory(EOAdaptor adaptor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
_columnCreationClauseForAttribute(EOAttribute attribute) |
NSArray<EOSQLExpression> |
_foreignKeyConstraintStatementsForEntityGroup(NSArray<EOEntity> entityGroup) |
protected boolean |
_shouldGenerateForeignKeyConstraints(EORelationship rel) |
java.lang.StringBuffer |
addCreateClauseForAttribute(EOAttribute eoattribute) |
java.lang.String |
columnTypeStringForAttribute(EOAttribute attribute) |
NSArray<EOSQLExpression> |
createTableStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
Quote table name if necessary
|
NSArray<EOSQLExpression> |
dropPrimaryKeySupportStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to drop the primary key
support.
|
NSArray<EOSQLExpression> |
dropTableStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to drop tables.
|
static boolean |
entityUsesSeparateTable(EOEntity entity) |
protected java.lang.String |
externalNameForEntityWithoutSchema(EOEntity entity) |
NSArray<EOSQLExpression> |
foreignKeyConstraintStatementsForRelationship(EORelationship relationship)
Generates the PostgreSQL-specific SQL statements to enforce the foreign
key constraints for
relationship. |
protected java.lang.String |
formatColumnName(java.lang.String name) |
protected java.lang.String |
formatTableName(java.lang.String name) |
protected boolean |
isInEntityModeler(EOModel model)
Returns true if Entity Modeler is running the operation on this model.
|
NSArray<EOSQLExpression> |
primaryKeyConstraintStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to enforce primary key
constraints.
|
NSArray<EOSQLExpression> |
primaryKeySupportStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
Generates the PostgreSQL-specific SQL statements to create the primary
key support.
|
static java.lang.String |
replaceStringByStringInString(java.lang.String old,
java.lang.String newString,
java.lang.String buffer)
Replaces a given string by another string in a string.
|
java.lang.String |
schemaCreationScriptForEntities(NSArray allEntities,
NSDictionary options) |
NSArray |
schemaCreationStatementsForEntities(NSArray allEntities,
NSDictionary options) |
NSArray<EOSQLExpression> |
statementsToConvertColumnType(java.lang.String columnName,
java.lang.String tableName,
com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes oldType,
com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes newType,
NSDictionary options) |
NSArray<EOSQLExpression> |
statementsToDeleteColumnNamed(java.lang.String columnName,
java.lang.String tableName,
NSDictionary options) |
NSArray<EOSQLExpression> |
statementsToInsertColumnForAttribute(EOAttribute attribute,
NSDictionary options) |
NSArray<EOSQLExpression> |
statementsToModifyColumnNullRule(java.lang.String columnName,
java.lang.String tableName,
boolean allowsNull,
NSDictionary nsdictionary) |
NSArray<EOSQLExpression> |
statementsToRenameColumnNamed(java.lang.String columnName,
java.lang.String tableName,
java.lang.String newName,
NSDictionary nsdictionary) |
NSArray<EOSQLExpression> |
statementsToRenameTableNamed(java.lang.String tableName,
java.lang.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 java.lang.String USING_KEY
public PostgresqlSynchronizationFactory(EOAdaptor adaptor)
public java.lang.String _columnCreationClauseForAttribute(EOAttribute attribute)
public java.lang.StringBuffer addCreateClauseForAttribute(EOAttribute eoattribute)
protected java.lang.String formatTableName(java.lang.String name)
protected java.lang.String formatColumnName(java.lang.String name)
public NSArray<EOSQLExpression> _foreignKeyConstraintStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
protected boolean _shouldGenerateForeignKeyConstraints(EORelationship rel)
public NSArray<EOSQLExpression> dropPrimaryKeySupportStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
dropPrimaryKeySupportStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationdropPrimaryKeySupportStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryentityGroup - an array of EOEntity objectspublic NSArray<EOSQLExpression> dropTableStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
dropTableStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationdropTableStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryentityGroup - an array of EOEntity objectspublic NSArray<EOSQLExpression> foreignKeyConstraintStatementsForRelationship(EORelationship relationship)
relationship.foreignKeyConstraintStatementsForRelationship in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationforeignKeyConstraintStatementsForRelationship in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryrelationship - the relationship, as represented by EOFprotected java.lang.String externalNameForEntityWithoutSchema(EOEntity entity)
public NSArray<EOSQLExpression> primaryKeyConstraintStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
primaryKeyConstraintStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationprimaryKeyConstraintStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactoryentityGroup - an array of EOEntity objectsprotected boolean isInEntityModeler(EOModel model)
model - the model to checkpublic NSArray<EOSQLExpression> primaryKeySupportStatementsForEntityGroup(NSArray<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(EOEntity entity)
public NSArray<EOSQLExpression> createTableStatementsForEntityGroup(NSArray<EOEntity> entityGroup)
createTableStatementsForEntityGroup in interface com.webobjects.eoaccess.synchronization.EOSchemaGenerationcreateTableStatementsForEntityGroup in class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactorypublic static java.lang.String replaceStringByStringInString(java.lang.String old,
java.lang.String newString,
java.lang.String buffer)
old - string to be replacednewString - to be insertedbuffer - string to have the replacement done on itpublic java.lang.String columnTypeStringForAttribute(EOAttribute attribute)
public NSArray<EOSQLExpression> statementsToModifyColumnNullRule(java.lang.String columnName, java.lang.String tableName, boolean allowsNull, NSDictionary nsdictionary)
statementsToModifyColumnNullRule in class EOSynchronizationFactorypublic NSArray<EOSQLExpression> statementsToConvertColumnType(java.lang.String columnName, java.lang.String tableName, com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes oldType, com.webobjects.eoaccess.synchronization.EOSchemaSynchronization.ColumnTypes newType, NSDictionary options)
statementsToConvertColumnType in class EOSynchronizationFactorypublic NSArray<EOSQLExpression> statementsToRenameColumnNamed(java.lang.String columnName, java.lang.String tableName, java.lang.String newName, NSDictionary nsdictionary)
statementsToRenameColumnNamed in class EOSynchronizationFactorypublic NSArray<EOSQLExpression> statementsToInsertColumnForAttribute(EOAttribute attribute, NSDictionary options)
statementsToInsertColumnForAttribute in class EOSynchronizationFactorypublic NSArray<EOSQLExpression> statementsToRenameTableNamed(java.lang.String tableName, java.lang.String newName, NSDictionary options)
statementsToRenameTableNamed in class EOSynchronizationFactorypublic NSArray<EOSQLExpression> statementsToDeleteColumnNamed(java.lang.String columnName, java.lang.String tableName, NSDictionary options)
statementsToDeleteColumnNamed in class EOSynchronizationFactorypublic java.lang.String schemaCreationScriptForEntities(NSArray allEntities, NSDictionary options)
schemaCreationScriptForEntities in class EOSynchronizationFactorypublic NSArray schemaCreationStatementsForEntities(NSArray allEntities, NSDictionary options)
schemaCreationStatementsForEntities in class EOSynchronizationFactoryCopyright © 2002 – 2022 Project Wonder.