Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableSet.addObject()


                    EORelationship currentRelationship = ((EORelationship) relationships.objectAtIndex(j));
                    if (_shouldGenerateForeignKeyConstraints(currentRelationship)) {
                        NSArray statements = foreignKeyConstraintStatementsForRelationship(currentRelationship);
                        if (!generatedStatements.containsObject(statements.valueForKey("statement"))) {
                            result.addObjectsFromArray(statements);
                            generatedStatements.addObject(statements.valueForKey("statement"));
                        }
                    }
                }
            }
        }
View Full Code Here


        int count = entityGroup.count();
        for (int i = 0; i < count; i++) {
            EOEntity entity = (EOEntity) entityGroup.objectAtIndex(i);
            String sequenceName = DB2PlugIn._sequenceNameForEntity(entity);
            if (!sequenceNames.containsObject(sequenceName)) {
                sequenceNames.addObject(sequenceName);
                String sql = "DROP SEQUENCE " + sequenceName ;
                results.addObject(createExpression(entity, sql));
            }
        }
        return results;
View Full Code Here

                }
                String sql;

                sequenceName = DB2PlugIn._sequenceNameForEntity(entity);
                if (!sequenceNames.containsObject(sequenceName)) {
                    sequenceNames.addObject(sequenceName);
                    // timc 2006-11-06 create result here so we can check for
                    // enableIdentifierQuoting while building the statement

                    sql = "CREATE SEQUENCE " + sequenceName;
                    results.addObject(createExpression(entity, sql));
View Full Code Here

        while (attributeIterator.hasNext()) {
          EOAttribute attribute = (EOAttribute) attributeIterator.next();
          String columnName = attribute.columnName();
          if (!attribute.isDerived() && !attribute.isFlattened() && columnName != null && columnName.length() > 0 && !columnNames.contains(columnName)) {
            sqlExpr.appendItemToListString(_columnCreationClauseForAttribute(attribute), aStatement);
            columnNames.addObject(columnName);
          }
        }
      }
      return new NSArray(_expressionForString(new StringBuilder().append("CREATE TABLE ").append(formatTableName(((EOEntity) entityGroup.objectAtIndex(0)).externalName())).append(" (").append(aStatement.toString()).append(')').toString()));
    }
View Full Code Here

                    // here we remove both the delete and the
                    // insert. this might fail if we didn't lock on all rows
                    // FIXME: check the current snapshot in the database and
                    // see if it is the same as the new insert

                    skippedOps.addObject(deleteOp);
                    skippedOps.addObject(insertOp);
                  } else {
                    // here we put the delete up front, this might fail if
                    // we have cascading delete rules in the database
                    result.addObject(deleteOp);
View Full Code Here

                    // insert. this might fail if we didn't lock on all rows
                    // FIXME: check the current snapshot in the database and
                    // see if it is the same as the new insert

                    skippedOps.addObject(deleteOp);
                    skippedOps.addObject(insertOp);
                  } else {
                    // here we put the delete up front, this might fail if
                    // we have cascading delete rules in the database
                    result.addObject(deleteOp);
                    skippedOps.addObject(deleteOp);
View Full Code Here

                    skippedOps.addObject(insertOp);
                  } else {
                    // here we put the delete up front, this might fail if
                    // we have cascading delete rules in the database
                    result.addObject(deleteOp);
                    skippedOps.addObject(deleteOp);
                  }
                  log.warn("Skipped: " + insertOp + "\n" + deleteOp);
                }
              }
            }
View Full Code Here

                if(currentEO.batchFaultingTimeStamp() == timestamp || fromThreadStorage) {
                  if(source.classDescription() == currentEO.classDescription()) {
                    if(!EOFaultHandler.isFault(currentEO)) {
                      Object fault = currentEO.storedValueForKey(key);
                      if(EOFaultHandler.isFault(fault)) {
                        faults.addObject(fault);
                        eos.addObject(currentEO);
                        if(eos.count() == autoBatchFetchSize()) {
                          break;
                        }
                      }
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.