• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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.
reply
    Bookmark Topic Watch Topic
  • New Topic