• 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
Re: next step on the EOEditingContext after succesfull save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: next step on the EOEditingContext after succesfull save


  • Subject: Re: next step on the EOEditingContext after succesfull save
  • From: David Avendasora <email@hidden>
  • Date: Tue, 24 Feb 2009 13:16:17 -0500


On Feb 24, 2009, at 12:53 PM, Gustavo Pizano wrote:

Hello all.

Well, I was able to save the data I wanted to save,

Woo hoo! Success! Yipee thar be data in the database!

now I know there is an object in the session()editingContext, I used that one so far, but what to do next, should I dispose that object?

Why? Do you not need it anymore? Is it taking up too much memory?

keep it, why yes why no?, if I should delete it, how to, using the dispose() method?

Yes, if you dispose of the editingContext it will make any EOs in the EC available for Garbage Collection, but once your session times out, the EC will get disposed of automatically.


Gustavo, you are over thinking WO. WO (and Java) deal with most of these kind of housekeeping things for you. Need an object? Create it or Fetch it. Use it every which way you want. When you're done, save it to the DB if needed. Once that's done there's really no need to actually dispose of the EO unless it is getting in the way.

Dave
_______________________________________________
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: next step on the EOEditingContext after succesfull save
      • From: Gustavo Pizano <email@hidden>
References: 
 >next step on the EOEditingContext after succesfull save (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: EOF, MySQL and DELETE CASCADE
  • Next by Date: Re: Help with Thread - Long requests
  • Previous by thread: next step on the EOEditingContext after succesfull save
  • Next by thread: Re: next step on the EOEditingContext after succesfull save
  • Index(es):
    • Date
    • Thread