Webobjects without a Front end
Webobjects without a Front end
- Subject: Webobjects without a Front end
- From: Don Lindsay <email@hidden>
- Date: Sun, 01 Feb 2009 02:05:32 -0500
Hello;
I am writing a monitoring java app. This app does not have a front end or web interface. I just want to be able to use EO to perform some maintenance tasks on the data. (validity checks from user database access). yes my users are allowed to connect directly to the database, a very bad idea I know but they have to have it ( I cant stop them having it ).
I have looked at all the documentation for how to open a datamodel and interact with it programatically. I would appreciate any pointers you can provide. After reviewing the JavaDocs I am thinking that the following might work, it appears to be waaaay to simple? but I have also learned with Webobjects and EO that if you work too hard you are probably doing it wrong. Please help.
Thanks
Don
EOEditingContext oEO = null;
public EOEditingContext getEO() { if (oEO==null) { oEO = new EOEditingContext(); EOUtilities.connectWithModelNamed(oEO,"myspecialmodel",null); } return oEO; }
|
_______________________________________________
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