• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMS Question

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a record store which comtains a series of jobs which include a pickup and a delivery. New jobs periodically are sent from the server and added to the record store. I need the ability to do the following:
1. Save any jobs that have been completed but not updated on the server.
2. Delete the existing record store.
3. Add the jobs from step 1 to a new record store.
4. Add the new work sent from the server.

My thought was to create an enumeration of the records to be retained. Dump these into a byte array, delete the existing record store, and then stuff these into the new record store. Is this the best way to do this? Is deleting all the unwanted records and adding the new ones considered a bad practice(I was told it was)?

Any thoughts greatly apreciated,

Todd
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic