• 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: What class generates the sql?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What class generates the sql?


  • Subject: Re: What class generates the sql?
  • From: Ray Kiddy <email@hidden>
  • Date: Mon, 12 Apr 2004 13:05:58 -0700

You probably want to look at the EOAdaptorChannel.Delegate class.

If you implement the adaptorChannelDidEvaluateExpression method, you can log out the EOSQLExpression instance, which will be as close to the raw SQL as you are likely to get.

Note that there may be other delegates that get called on different types of operations. Try implementing some of the other methods and see what you get.

In order to get to the EOAdaptorChannel, see the online book: http://developer.apple.com/documentation/WebObjects/Enterprise_Objects

Go to: Core Framework Stack > Accessing Lower-Level Objects.

That should get you started.

You can get a lot from delegates. Look for other delegate classes and log out what they see. Be careful about changing what you see. Only change what you understand. Delegates are very powerful, but they are also a lot of rope.

- ray

On Apr 10, 2004, at 5:28 PM, Greg Hulands wrote:

Hi,
I cannot seem to find which class in EOF generates the sql. I have a fetchSpec that I would like to display to the user the sql that it will create.


Does anyone know how to achieve this?

Thanks,
Greg
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: How can I stream blobs to/from entities?
  • Next by Date: Editing a record
  • Previous by thread: What class generates the sql?
  • Next by thread: Re: What class generates the sql?
  • Index(es):
    • Date
    • Thread