• 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
DataBase Connection and EOUtilities.rawRowsForSQL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DataBase Connection and EOUtilities.rawRowsForSQL


  • Subject: DataBase Connection and EOUtilities.rawRowsForSQL
  • From: Miguel Torres <email@hidden>
  • Date: Wed, 19 Dec 2012 13:52:42 -0600

Hi List,

I am using Wonder in my project.

I define the database connection in the Properties.user file using the following vars:

MyEOModel.URL="">
MyEOModel.DBUser=someuser
MyEOModel.DBPassword=sompass
MyEOModel.DBDriver= org.postgresql.Driver


In MyEOModel I have a Default connection that is set to: jdbc:postgresql:myDB

The application works great, it uses the connection specified in the Properties.user file. The problem is when I use EOUtilities.rawRowsForSQL(EOEditingContext ec, String modelName, String sqlString, NSArray keys) 

The function gets the database connection parameters from de model. 

Obviously the problem is solved changing the model database connection info but I want the flexibility that Wonder gives me.

Is there any similar approach similar to RawRows but using the connection that wonder creates from Properties file's parameters?

Thanks in advance.

 


 _______________________________________________
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: DataBase Connection and EOUtilities.rawRowsForSQL
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Great argument for the continued use of WO/WOnder
  • Next by Date: Re: Great argument for the continued use of WO/WOnder
  • Previous by thread: Re: Great argument for the continued use of WO/WOnder
  • Next by thread: Re: DataBase Connection and EOUtilities.rawRowsForSQL
  • Index(es):
    • Date
    • Thread