I am working on database migration tool in java. The tool is copying database tables with their data\'s to the destination database. But I want it to work on different databases
Try SchemaCrawler, which is also open source, and written in Java. It provides programmatic access to database metadata, and also allows scripting in JavaScript.
http://schemacrawler.sourceforge.net/