• 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

Importing of documents

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am develpoing an application whereby we have a class called SharedFolder which represents a storage for documents shared by employees in a company. I have another class called UserFolder which represents all the documents of a particular user. For both the classes, I am using a common table in the database named Document_Storage to store the documents.

Now I need an import functionality which allows an user to import documents from the SharedFolder to UserFolder. What is achieved underneath is that a copy of the same document is made in the Document_Storage and associated to the respective user.

What are the various ways by which you can do this in Java. Is clone() method a good way to achieve this functionality? Please give your suggestions. Thank you.
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic