DB Backup Using Java

How to generate DB backup file using java?