Examples of foreignKeyConstraintStatementsForRelationship()


Examples of com.webobjects.eoaccess.EOSchemaGeneration.foreignKeyConstraintStatementsForRelationship()

   * @return an array of EOSQLExpressions for adding a foreign key constraint to this table
   */
  @SuppressWarnings("unchecked")
  public NSArray<EOSQLExpression> _addForeignKeyExpressions(ERXMigrationColumn sourceColumn, ERXMigrationColumn destinationColumn) {
    EOSchemaGeneration schemaGeneration = _database.synchronizationFactory();
    NSArray<EOSQLExpression> expressions = schemaGeneration.foreignKeyConstraintStatementsForRelationship(_newRelationship(new ERXMigrationColumn[] { sourceColumn }, new ERXMigrationColumn[] { destinationColumn }));
    ERXMigrationDatabase._ensureNotEmpty(expressions, "add foreign key", false);
    return expressions;
  }

  /**
 
View Full Code Here

Examples of com.webobjects.eoaccess.EOSchemaGeneration.foreignKeyConstraintStatementsForRelationship()

   * @return an array of EOSQLExpressions for adding a foreign key constraint to this table
   */
  @SuppressWarnings("unchecked")
  public NSArray<EOSQLExpression> _addForeignKeyExpressions(ERXMigrationColumn[] sourceColumns, ERXMigrationColumn[] destinationColumns) {
    EOSchemaGeneration schemaGeneration = _database.synchronizationFactory();
    NSArray<EOSQLExpression> expressions = schemaGeneration.foreignKeyConstraintStatementsForRelationship(_newRelationship(sourceColumns, destinationColumns));
    ERXMigrationDatabase._ensureNotEmpty(expressions, "add foreign key", false);
    return expressions;
  }

  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.