• 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: examining the SQL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: examining the SQL?


  • Subject: Re: examining the SQL?
  • From: Thomas Ganter <email@hidden>
  • Date: Mon, 1 Jan 2007 20:56:26 +0100

Hi Ted,

to only enable SQL logging on a per-statement basis, I created and use these two utility methods:

    /**
     * Activate Database Creation Logging.
     */
    public static final void activateLog(  ) {

        NSLog.allowDebugLoggingForGroups(
                NSLog.DebugGroupDatabaseAccess     |
                NSLog.DebugGroupSQLGeneration      |
                NSLog.DebugGroupEnterpriseObjects  |
                NSLog.DebugGroupModel           |
                NSLog.DebugGroupResources       |
                NSLog.DebugGroupAssociations    );
    }

    /**
     * Deactivate Database Creation Logging.
     */
    public static final void deactivateLog(  ) {

        NSLog.setAllowedDebugGroups( 0 );
    }

Greetings,

- Thomas

Am 01.01.2007 um 19:21 schrieb Jerry W. Walker:

Hi, Ted,

Actually, you can set the run time parameter in either of two ways:

Java Properties style:  -DEOAdaptorDebugEnabled=true

Legacy WO style:  -EOAdaptorDebugEnabled YES

Regards,
Jerry


Begin forwarded message:
From: "Markus Lux" <email@hidden>
Date: January 1, 2007 12:46:08 PM EST
To: email@hidden
Subject: Re: examining the SQL?

you can trace all generated SQL-Statements by starting your app with "EOAdaptorDebugEnabled=true"

On Jan 1, 2007, at 12:29 PM, Theodore Petrosky wrote:

I am a newbie to webobjects and I have a few
questions.....

the first on my list is.. how can I create a comment
that would allow me to see the SQL that is being
produced? I am used to writing my own SQL and talking
directly to the backend. I would like to see what is
going on.

Ted


--- email@hidden wrote:

Send Webobjects-dev mailing list submissions to
	email@hidden

To subscribe or unsubscribe via the World Wide Web,
visit


http://lists.apple.com/mailman/listinfo/webobjects-dev
or, via email, send a message with subject or body
'help' to
	email@hidden

You can reach the person managing the list at
	email@hidden

When replying, please edit your Subject line so it
is more specific
than "Re: Contents of Webobjects-dev digest..."


Today's Topics:

   1. WOLips Webservices (Jeff Schmitz)
   2. WebService Error WOXMLprovider
(email@hidden)
   3. Help... NSKeyValueCoding Error (Chip Myers)
   4. Re: Help... NSKeyValueCoding Error (Art
Isbell)
   5. Re: Help... NSKeyValueCoding Error (Chuck
Hill)
   6. Re: WebService Error WOXMLprovider (Chuck
Hill)



--------------------------------------------------------------------- -

Message: 1 Date: Thu, 28 Dec 2006 19:39:37 -0600 From: Jeff Schmitz <email@hidden> Subject: WOLips Webservices To: Denis Frolov <email@hidden> Cc: email@hidden Message-ID: <email@hidden> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Thanks!  That worked.  Don't know how I would have
ever figured that
out myself.

Jeff
http://www.netbrackets.com - nothin' but net


On Dec 28, 2006, at 6:26 AM, Denis Frolov wrote:

Try importing JavaEOProject.framework.

on 12/27/06 10:47 PM, Jeff Schmitz at
email@hidden wrote:

Hello,

I'm trying to get the Calculator webservice (from
the WebObjects
Web Services
Programming Guide) to work using eclipse.  As I
don't have the
actual sample
code which it says is in projects/Calculator, and
can't find it
anywhere on
the web, I'm trying to create it from the code
shown in the document.

When I try to build and run the example, I'm
getting the below run-
time
error.  I'm guessing I need a framework that I
don't currently
have imported
in my project, but have no idea which one or
where I might find
it.  I do have
all the JavaWebService... and javadirecttoweb and

javadtwgeneration frameworks
imported.  Any ideas?

Thanks
Jeff

443 [main] WARN NSLog - A fatal exception
occurred:
com/webobjects/_eoproject/_WBInterfaceDescriptor
[2006-12-27 13:45:23 CST] <main>
java.lang.NoClassDefFoundError:
com/webobjects/_eoproject/_WBInterfaceDescriptor
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at


com.webobjects.foundation._NSUtilities._classWithPartialName

(_NSUtilities.java
:307)
at
com.webobjects.foundation._NSUtilities.classWithName

(_NSUtilities.java:291)
at

com.webobjects.foundation.NSBundle.initPrincipalClass

(NSBundle.java:2553)
at

com.webobjects.foundation.NSBundle.InitPrincipalClasses

(NSBundle.java:710)
at

com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:368)
at


com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys

(WOProperti
es.java:187)
at
com.webobjects.appserver.WOApplication._initWOApp
(WOApplication.java:5081)
at com.webobjects.appserver.WOApplication.<init>
(WOApplication.java:551)
at

er.extensions.ERXAjaxApplication.<init>(ERXAjaxApplication.java:

23)
at

er.extensions.ERXApplication.<init>(ERXApplication.java:172)
at Application.<init>(Application.java:13)
at

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native

Method)
at


sun.reflect.NativeConstructorAccessorImpl.newInstance

(NativeConstructorAccesso
rImpl.java:39)
at


sun.reflect.DelegatingConstructorAccessorImpl.newInstance

(DelegatingConstructo
rAccessorImpl.java:27)
at

java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at

com.webobjects.appserver.WOApplication.main(WOApplication.java:

323)
at

er.extensions.ERXApplication.main(ERXApplication.java:120)
at Application.main(Application.java:10)




_______________________________________________ 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


---
Denis Frolov
Design Maximum MA

Tel: +7 863 2648211
Fax: +7 863 2645229
Web: http://www.designmaximum.com






------------------------------

Message: 2
Date: Fri, 29 Dec 2006 01:27:10 -0500
From: email@hidden
Subject: WebService Error WOXMLprovider
To: email@hidden

=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


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: 
 >examining the SQL? (From: Theodore Petrosky <email@hidden>)
 >Re: examining the SQL? (From: "Jerry W. Walker" <email@hidden>)

  • Prev by Date: Re: examining the SQL?
  • Next by Date: Re: Best way to generate unique IDs that are not PKs
  • Previous by thread: Re: examining the SQL?
  • Next by thread: Re: examining the SQL?
  • Index(es):
    • Date
    • Thread