• 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: EO/Java class default Values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO/Java class default Values


  • Subject: Re: EO/Java class default Values
  • From: David LeBer <email@hidden>
  • Date: Wed, 27 Sep 2006 16:27:49 -0400


On 27-Sep-06, at 4:18 PM, Tarun Reddy wrote:

I assume that awakeFromInsertion (based on the name) does not execute
until the actual insertion of the object in the database, which means I
can't rely on the value until the object has been saved. I am currently
using the method to store creation date info, but I was hoping to get an
initial value in before being saved to the database.

No.

awakeFromInsertion is called when the EO is inserted into an EC.

From the docs:

"Overridden by subclasses to perform additional initialization on the receiver upon its being inserted into ec. This is commonly used to assign default values or record the time of insertion. EOCustomObject's implementation merely sends an awakeObjectFromInsertion to the receiver's EOClassDescription. Subclasses should invoke super's implementation before performing their own initialization."

<http://developer.apple.com/documentation/WebObjects/Reference/API/ com/webobjects/eocontrol/EOCustomObject.html#awakeFromInsertion (com.webobjects.eocontrol.EOEditingContext)>

--
;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://www.codeferous.com
blog: http://david.codeferous.com
--
Toronto Area Cocoa / WebObjects developers group:
http://www.tacow.org


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: EO/Java class default Values
      • From: Tarun Reddy <email@hidden>
References: 
 >EO/Java class default Values (From: Tarun Reddy <email@hidden>)
 >Re: EO/Java class default Values (From: Markus Ruggiero <email@hidden>)
 >Re: EO/Java class default Values (From: Ken Anderson <email@hidden>)
 >Re: EO/Java class default Values (From: David LeBer <email@hidden>)
 >Re: EO/Java class default Values (From: Tarun Reddy <email@hidden>)

  • Prev by Date: Re: EO/Java class default Values
  • Next by Date: Re: EO/Java class default Values
  • Previous by thread: Re: EO/Java class default Values
  • Next by thread: Re: EO/Java class default Values
  • Index(es):
    • Date
    • Thread