• 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: DB-Connections in for-loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DB-Connections in for-loop?


  • Subject: Re: DB-Connections in for-loop?
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 18 Oct 2005 10:20:22 -0700


On Oct 17, 2005, at 1:23 AM, Ute Hoffmann wrote:

Hallo,
do you think it si possible to do this:

Have a for-loop which loops through a list of database connections.
Each loop sets the value of a given modelfile to those of a different DB, then makes a connection, updates some values, closes the connection....


You will need to create a different model group for each if the models have entities with the same name. That means then that they will have different snapshot stores and you can't "localInstanceOfObject" from one the other (hmmm, I think).

Closing the connection and discarding the EOF stack may also take you into buggy EOF territory.


Is that possible or will I get myself into trouble with that design.

My guess would be trouble.


Background: I have a number of identical DB's and want to update/ hand over some values from a different WOApp into those DB's.

I'd look at other alternatives.

Chuck


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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: DB-Connections in for-loop?
      • From: LD <email@hidden>
    • Re: DB-Connections in for-loop?
      • From: Ken Anderson <email@hidden>
References: 
 >DB-Connections in for-loop? (From: Ute Hoffmann <email@hidden>)

  • Prev by Date: Re: Trouble Deleting and Adding an EOModel
  • Next by Date: Re: DB-Connections in for-loop?
  • Previous by thread: DB-Connections in for-loop?
  • Next by thread: Re: DB-Connections in for-loop?
  • Index(es):
    • Date
    • Thread