• 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
Executing simple one-time tasks using EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Executing simple one-time tasks using EOF


  • Subject: Executing simple one-time tasks using EOF
  • From: Hugi Thordarson <email@hidden>
  • Date: Sat, 28 Jun 2014 21:48:23 +0000

Am I the only one who writes a direct action class every time I need to do EOF-related one-time tasks in my apps, such as DB cleanup, imports, exports etc?

After writing my one-millionth task like this tonight I just realized how deeply, horribly wrong it is, and before I start finding better ways on my own I thought I'd hear from the community. Can anyone recommend a different way? Are people using ERXExtensions.initEOF() or ERXExtensions.initApp() for stuff like this? Or something else?

Paraphrased: You have an EOModel and you need to execute a single, one-time task using the model (probably throwing the code out afterwards). What do you do?

Cheers,
- hugi
 _______________________________________________
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: Executing simple one-time tasks using EOF
      • From: Miguel Arroz <email@hidden>
  • Prev by Date: Re: Amazon EC
  • Next by Date: Re: Executing simple one-time tasks using EOF
  • Previous by thread: Wolips Ant Tools not generating shell script correctly
  • Next by thread: Re: Executing simple one-time tasks using EOF
  • Index(es):
    • Date
    • Thread