• 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: willDelete question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: willDelete question?


  • Subject: Re: willDelete question?
  • From: Ramsey Gurley <email@hidden>
  • Date: Wed, 21 Dec 2011 10:58:09 -0700

Looks legit, but what you are doing is done in ERCoreBusinessLogic with no modification to your EOs :-)

Ramsey

On Dec 21, 2011, at 10:48 AM, James Cicenia wrote:

Hello -

I am thinking about doing this in my EOObject:

public void willDelete(){
Deletes d = (Deletes) EOUtilities.createAndInsertInstance(this.editingContext(), "Deletes");
d.setNameOfEntity(this.entityName());
d.setExt_id(this.primaryKey());

}

1) Is this safe?
2)  do I need an explicit save here? Or will this be saved via the objects current editing context?

Thanks

James 


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: willDelete question?
      • From: Ramsey Gurley <email@hidden>
References: 
 >willDelete question? (From: James Cicenia <email@hidden>)

  • Prev by Date: willDelete question?
  • Next by Date: Re: willDelete question?
  • Previous by thread: willDelete question?
  • Next by thread: Re: willDelete question?
  • Index(es):
    • Date
    • Thread