tableName +"( "+ columNames.componentsJoinedByString( ", " ) +" )" ) );
tableName +"( "+ sbColumnNames.toString() +" )" ) );
    public NSArray foreignKeyConstraintStatementsForRelationship(EORelationship relationship) {        NSArray superResults;        NSMutableArray results;        int count;        int i;        EOSQLExpression expression;        results = new NSMutableArray();        superResults = super.foreignKeyConstraintStatementsForRelationship(relationship);                count = superResults.count();        for ( i = 0 ; i < count ; i++ ) {            expression = (EOSQLExpression) superResults.objectAtIndex(i);            String s = expression.statement();            s = replaceStringByStringInString(") INITIALLY DEFERRED", ") DEFERRABLE INITIALLY DEFERRED", s);            expression.setStatement(s);            results.addObject( expression );            String tableName = expression.entity().externalName();            NSArray columNames = ( (NSArray) relationship.sourceAttributes().valueForKey( "columnName" ) );            String indexName = relationship.entity().externalName() + "_" +                ( (NSArray) relationship.sourceAttributes().valueForKey( "columnName" ) ).componentsJoinedByString( "_" ) +"_IDX";            results.addObject( createExpression( expression.entity(), "CREATE INDEX "+ indexName +" ON "+                                                 tableName +"( "+ columNames.componentsJoinedByString( ", " ) +" )" ) );        }        return results;    }