I want to create a java class which will read the data from database and put into a notepad file.And read the notepad file and update the database.Data to retrieved from database is huge.SO how effectively write java class??
sanjey asok wrote:Data to retrieved from database is huge.SO how effectively write java class??
Well, I believe that you can use Hibernate or some ORM framework. This problem of huges databases... I guess that every developer has. We try to optimize it, but it's sometimes difficult. I suggest that you try to use Hibernate and see the performance. If that doesn't seems ok, you can try to write your connections and SQL.
About the text file to the database, maybe if you read the file once and store that into the database while reading it's ok. If it's not, you can create some objects (like Entities or POJOs) and store those in the database.