• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
I don't get it.(was delete statement)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I don't get it.(was delete statement)


  • Subject: I don't get it.(was delete statement)
  • From: Frank Stock <email@hidden>
  • Date: Thu, 5 Apr 2007 16:27:26 +0200

Hi All,

I have been working for 2 days on this. Readed 'Managing the Object Grapth' again. But I don't understand this.
I have 3 instances running with this application. I have a second application that randomly fetch, insert/update and delete one row choosing one of the instances. (I use SOAP-calls)

This is my routine with the locking:

public void deleteWebtextValue (String webtext, String language) {
//NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupSQLGeneration);
//NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupDatabaseAccess);
//NSLog.setAllowedDebugLevel(NSLog.DebugLevelInformational);
EOEditingContext ec = new EOEditingContext();
try {
ec.lock();
EOQualifier aQual;
NSMutableArray qbind;
EOFetchSpecification fs;


LanguageWebtext lwObject;
// Bepaal het user_userparameter-object voor de gegeven waarden
qbind=new NSMutableArray();
qbind.addObject(webtext);
qbind.addObject(language);
aQual = EOQualifier.qualifierWithQualifierFormat("(webtext.webtext=%@) and (language.language=%@)",qbind);
fs = new EOFetchSpecification("LanguageWebtext",aQual,null);
NSArray arLanguageWebtext = ec.objectsWithFetchSpecification(fs);
int iLW = arLanguageWebtext.count();
for (int i=0;i<iLW;i++) {
lwObject = (LanguageWebtext)arLanguageWebtext.objectAtIndex(i);
ec.deleteObject(lwObject);
}
ec.saveChanges();
}
finally {
ec.unlock();
ec.dispose();
}
}



How can I controle why WO uses sometimes an Update where there should be Delete. Is there some locking to see on the side of the database? Is there a way I can contole this?

Thanks for tips because I don't get it. Also sometimes one of the instances freezes, but that only happens rare. (Perhaps deadlocking?)

Frank Stock
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: I don't get it.(was delete statement)
      • From: Ken Anderson <email@hidden>
  • Prev by Date: Re: How to Retrieve Session User?
  • Next by Date: Re: I don't get it.(was delete statement)
  • Previous by thread: Error when webobjects servlet is being invoked using requestdispatcher
  • Next by thread: Re: I don't get it.(was delete statement)
  • Index(es):
    • Date
    • Thread