Package com.webobjects.eoaccess

Examples of com.webobjects.eoaccess.EOAdaptorOperation.entity()


    public static EOEnterpriseObject refetchFailedObject(EOEditingContext ec, EOGeneralAdaptorException e) {
        EOAdaptorOperation adaptorOp = (EOAdaptorOperation) e.userInfo().objectForKey(EOAdaptorChannel.FailedAdaptorOperationKey);
        EODatabaseOperation databaseOp = (EODatabaseOperation) e.userInfo().objectForKey(EODatabaseContext.FailedDatabaseOperationKey);
        NSDictionary dbSnapshot = databaseOp.dbSnapshot();
        EOEntity entity = adaptorOp.entity();
        String entityName = entity.name();
        EOGlobalID gid = entity.globalIDForRow(dbSnapshot);
        EOEnterpriseObject eo = ec.faultForGlobalID(gid, ec);
        // EOUtilities.databaseContextForModelNamed(ec, eo.entityName()).forgetSnapshotForGlobalID(gid);
        ec.refaultObject(eo);
View Full Code Here


        for(Enumeration e = insertOps.objectEnumerator(); e.hasMoreElements();) {
          EOAdaptorOperation insertOp = (EOAdaptorOperation)e.nextElement();
          for(Enumeration e1 = deleteOps.objectEnumerator(); e1.hasMoreElements();) {
            EOAdaptorOperation deleteOp = (EOAdaptorOperation)e1.nextElement();
            if(!skippedOps.containsObject(deleteOp)) {
              if(insertOp.entity() == deleteOp.entity()) {
                if(deleteOp.qualifier().evaluateWithObject(insertOp.changedValues())) {
                  if(false) {
                    // 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
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.