• 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: Default values in EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default values in EOF


  • Subject: Re: Default values in EOF
  • From: email@hidden
  • Date: Thu, 28 Apr 2005 12:39:04 +0200

Hi Guido,
As much as i know the Validation, WO checks the NULL value before my code.
the code usually looks like this:
-------------------------------------------
    public void validateForSave( ) throws ValidationException
    {
        super.validateForSave(); // throw an exception if null.
        ...... my code.

    }
-------------------------------------------
i.e. first WO checks and throws an exception and THEN comes my code, which
is defiantly a bit late.
Maybe i don't know what you mean. if you focus me on the point, it would be
great.

Regards,
Sako.


----- Original Message -----
From: "Guido Neitzer" <email@hidden>
To: <email@hidden>; "WebObjects Dev (Apple)"
<email@hidden>
Sent: Wednesday, April 27, 2005 8:33 PM
Subject: Re: Default values in EOF


> "email@hidden" <email@hidden> wrote:
>
> > So EOF wants to write.
> > validateForSave() will checks weather isVaild is not NULL, is it null an
> > exception will thrown.
>
> You can add your own code in the validation chain. Check out the validate*
> methods in the documentation.
>
> There is also a validation chapter in every WO book I have seen so long.
>
> Also you can provide default values in awakeFromInsertion in your EO
custum
> object.
>
> > EOF unfortunately does NOT know anything about default values in the
> > database, and validateForSave() will throw definitely an exception.
>
> Yes, because YOU have to teach EOF how to validate YOUR objects.
>
> cug
>
>
>  _______________________________________________
> 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
>
>

 _______________________________________________
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

References: 
 >Re: Default values in EOF (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Download of text file, charset problem on Mac
  • Next by Date: Re: Default values in EOF
  • Previous by thread: Re: Default values in EOF
  • Next by thread: Re: Default values in EOF
  • Index(es):
    • Date
    • Thread