This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Importing of documents

 
Jacob Thomas
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic