• 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
Doesn't see all prototypes model?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Doesn't see all prototypes model?!


  • Subject: Doesn't see all prototypes model?!
  • From: James Cicenia <email@hidden>
  • Date: Thu, 16 Dec 2004 18:11:39 -0600

This only sees the main model.. not the one in the framework... it only loops once.

public void appendJdbcUrl(String additionalUrl) {
String newDatabaseTag = databaseTagFromUrl(additionalUrl);
if (newDatabaseTag != null) {
EOPrototypeSwitcher switcher = new EOPrototypeSwitcher(newDatabaseTag.toUpperCase());
System.out.println("Database Tag: "+newDatabaseTag);
jdbcUrls.setObjectForKey(additionalUrl, newDatabaseTag);


for (Enumeration en = EOModelGroup.defaultGroup().models().objectEnumerator(); en.hasMoreElements();) {
EOModel theModel = (EOModel) en.nextElement();
NSMutableDictionary dict = new NSMutableDictionary(theModel.connectionDictionary());
String oldUrl = (String) dict.objectForKey("URL");
String replacementUrl = (String) jdbcUrls.objectForKey(databaseTagFromUrl(oldUrl));
if (replacementUrl != null) {
dict.setObjectForKey(replacementUrl, "URL");
theModel.setConnectionDictionary(dict);

System.out.println("Override EOModel URL. New url is: "
+ theModel.connectionDictionary().objectForKey(
"URL"));
}
switcher.updatePrototypes(theModel);
EOFJDBCConnectionAnalyzer analyzer = new EOFJDBCConnectionAnalyzer(theModel.connectionDictionary());
}
}
}


any thoughts?

_______________________________________________
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: Doesn't see all prototypes model?!
      • From: Chuck Hill <email@hidden>
References: 
 >EOModeler and Prototype Problem in Deployment (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Frameworks on Windows
  • Next by Date: Re: Doesn't see all prototypes model?!
  • Previous by thread: EOModeler and Prototype Problem in Deployment
  • Next by thread: Re: Doesn't see all prototypes model?!
  • Index(es):
    • Date
    • Thread