Examples of editingContext()


Examples of com.webobjects.eoaccess.EOAccessArrayFaultHandler.editingContext()

        }
        EOFaulting fault = (EOFaulting)obj;
        if (fault.faultHandler() instanceof EOAccessArrayFaultHandler) {
            EOAccessArrayFaultHandler handler = (EOAccessArrayFaultHandler) fault.faultHandler();
            EOKeyGlobalID sourceGid = handler.sourceGlobalID();
            EOEditingContext ec = handler.editingContext();
            synchronized (cache) {
                NSDictionary entries = relationshipCacheEntriesForEntity(sourceGid.entityName(), handler.relationshipName());
                if(entries != null) {
                    NSArray gids = (NSArray) entries.objectForKey(sourceGid);
                    if(gids != null) {
View Full Code Here

Examples of com.webobjects.eoaccess.EOAccessArrayFaultHandler.editingContext()

   */
  private boolean batchFetchToManyFault(EODatabaseContext dbc, Object obj) {
    if (fetchingToMany.canEnter(dbc)) {
      try {
        EOAccessArrayFaultHandler handler = (EOAccessArrayFaultHandler) EOFaultHandler.handlerForFault(obj);
        EOEditingContext ec = handler.editingContext();
        EOEnterpriseObject source = ec.faultForGlobalID(handler.sourceGlobalID(), ec);
        if (source instanceof AutoBatchFaultingEnterpriseObject) {
          String key = handler.relationshipName();
          EOEntityClassDescription cd = (EOEntityClassDescription) source.classDescription();
          EORelationship relationship = cd.entity().relationshipNamed(key);
View Full Code Here

Examples of com.webobjects.eoaccess.EODatabaseDataSource.editingContext()

    // every time a fetch occurs as it affects mainly sort ordering
    // from the display group
    if (dataSource() instanceof EODatabaseDataSource) {
      EODatabaseDataSource ds = (EODatabaseDataSource) dataSource();
      EOFetchSpecification old = ds.fetchSpecification();
      EOFetchSpecification fs = ERXEOAccessUtilities.localizeFetchSpecification(ds.editingContext(), old);
      ds.setFetchSpecification(fs);
      try {
        result = super.fetch();
      } finally {
        ds.setFetchSpecification(old);
View Full Code Here

Examples of com.webobjects.eocontrol.EODataSource.editingContext()

                    _list = ERXEOControlUtilities.localInstancesOfObjects(editingContext(), _list);
                }
            }
            if(_list == null) {
              EODataSource ds = dataSource();
              if(ds.editingContext()!=null) {
                _list = ds.fetchObjects();
                if(ds.editingContext() != editingContext()) {
                  _list = ERXEOControlUtilities.localInstancesOfObjects(editingContext(), _list);
                }
              } else {
View Full Code Here

Examples of com.webobjects.eocontrol.EODataSource.editingContext()

            }
            if(_list == null) {
              EODataSource ds = dataSource();
              if(ds.editingContext()!=null) {
                _list = ds.fetchObjects();
                if(ds.editingContext() != editingContext()) {
                  _list = ERXEOControlUtilities.localInstancesOfObjects(editingContext(), _list);
                }
              } else {
                log.error("EC of datasource is null, possible resubmit: " + ERXApplication.erxApplication().extraInformationForExceptionInContext(null, context()));
                _list = NSArray.EmptyArray;
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.editingContext()

    out.writeObject(task());
    out.writeObject(entity() == null?null:entity().name());
    out.writeObject(propertyKey());
    out.writeObject(dynamicPage());
    EOEnterpriseObject obj = (EOEnterpriseObject) valueForKey("object");
    EOEditingContext ec = (obj == null || obj.editingContext() == null)?null:obj.editingContext();
    /*
     * The ec must be deserialized before the EO. Otherwise, when the EO is
     * deserialized, it attempts to deserialize the EC, which turns around
     * and tries to deserialize the EO again. The EO is returned in its partially
     * deserialized state, which results in a NullPointerException when the EC
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.editingContext()

    out.writeObject(task());
    out.writeObject(entity() == null?null:entity().name());
    out.writeObject(propertyKey());
    out.writeObject(dynamicPage());
    EOEnterpriseObject obj = (EOEnterpriseObject) valueForKey("object");
    EOEditingContext ec = (obj == null || obj.editingContext() == null)?null:obj.editingContext();
    /*
     * The ec must be deserialized before the EO. Otherwise, when the EO is
     * deserialized, it attempts to deserialize the EC, which turns around
     * and tries to deserialize the EO again. The EO is returned in its partially
     * deserialized state, which results in a NullPointerException when the EC
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.editingContext()

    public static Object valueForKey(EOEditingContext ec, String key) {
        Object result = valueForKey(key);
        if(result != null) {
            if (result instanceof EOEnterpriseObject) {
                EOEnterpriseObject eo = (EOEnterpriseObject) result;
                if(eo.editingContext() != null && eo.editingContext() != ec) {
                  eo.editingContext().lock();
                  try {
                    result = ERXEOControlUtilities.localInstanceOfObject(ec, eo);
                  } finally {
                    eo.editingContext().unlock();
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.editingContext()

    public static Object valueForKey(EOEditingContext ec, String key) {
        Object result = valueForKey(key);
        if(result != null) {
            if (result instanceof EOEnterpriseObject) {
                EOEnterpriseObject eo = (EOEnterpriseObject) result;
                if(eo.editingContext() != null && eo.editingContext() != ec) {
                  eo.editingContext().lock();
                  try {
                    result = ERXEOControlUtilities.localInstanceOfObject(ec, eo);
                  } finally {
                    eo.editingContext().unlock();
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.editingContext()

        Object result = valueForKey(key);
        if(result != null) {
            if (result instanceof EOEnterpriseObject) {
                EOEnterpriseObject eo = (EOEnterpriseObject) result;
                if(eo.editingContext() != null && eo.editingContext() != ec) {
                  eo.editingContext().lock();
                  try {
                    result = ERXEOControlUtilities.localInstanceOfObject(ec, eo);
                  } finally {
                    eo.editingContext().unlock();
                  }
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.