Package com.webobjects.eocontrol

Examples of com.webobjects.eocontrol.EOEditingContext.unlock()


            ec.saveChanges();
        } catch (Exception e) {
            log.error("Caught exception: " + e.getMessage() + " stack: " + ERXUtilities.stackTrace(e));
            System.exit(1);
        } finally {
            ec.unlock();
        }
        log.info("Done.");
    }   
}
View Full Code Here


            ec.lock();
            try {
                return EOUtilities.objectsWithFetchSpecificationAndBindings(ec,
                        relationship.destinationEntity().name(), fetchSpecName, null);
            } finally {
                ec.unlock();
            }
        }
        return null;
    }
}
View Full Code Here

            } finally {
                adaptorOperationsLock.unlock();
                context.unlock();
            }
        } finally {
            ec.unlock();
        }
    }

    public static void adaptorOperationsDidPerform(NSArray ops) {
        if (postAdaptorOperationNotifications() && ops.count() > 0) {
View Full Code Here

                        ec.setSharedEditingContext(null);
                        EOEnterpriseObject object = EOUtilities.localInstanceOfObject(ec, object());
                        ec.deleteObject(object);
                        ec.saveChanges();
                    } finally {
                        ec.unlock();
                        ec.dispose();
                    }
                } else {
                    editingContext.deleteObject(object());
                    if (ERXEOControlUtilities.isNewObject(object())) {
View Full Code Here

    try {
      fs = schemaBasedFetchSpecification(fetchSpecification);
    } catch (Exception e) {
      throw new RuntimeException("Failed to convert fetchSpecification to schema-based", e);
    } finally {
      ec.unlock();
    }
    this.fetchSpecification = fs;
   
   
    this.jasperCompiledReportFileName = jasperCompiledReportFileName;
View Full Code Here

     
     
    } catch (Exception e) {
      throw new NestableRuntimeException(e);
    } finally {
      ec.unlock();
    }

    return reportFile;
  }
View Full Code Here

        EOEntity entity = ERXEOAccessUtilities.entityMatchingString(ec, fetchSpecification.entityName());
        // Convert the qualifier to a schema-based qualifier
        q = entity.schemaBasedQualifier(q);
        fetchSpecification.setQualifier(q);
      } finally {
        ec.unlock();
      }

    } //~ if (q != null)
    return fetchSpecification;
   
View Full Code Here

                  newEc.setSharedEditingContext(null);
                }
                localObject = (T) EOUtilities.localInstanceOfObject(newEc, eo);
             localObject.willRead();
           } finally {
             newEc.unlock();
           }
         } finally {
           ec.unlock();
         }
       }
View Full Code Here

      }
      catch (IllegalStateException e) {
        numberOfAttempts ++;
      }
      finally {
        nestedEditingContext.unlock();
        nestedEditingContext.dispose();
      }
    }
    log.info("done in " + (System.currentTimeMillis() - a) + "ms");
    if (!doneWithSecretPals) {
View Full Code Here

      }

    } catch (Exception e) {
      throw new NestableRuntimeException(e);
    } finally {
      ec.unlock();
    }

    return reportFile;
  }
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.