db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SandipGaikwad <sandipgaikwad3...@rediffmail.com>
Subject Re: backup, restore using ClientDriver
Date Wed, 28 Nov 2007 04:27:51 GMT

Thanks Bryan,
here is my program code:-
     public boolean restore(File dir){
        if(dir.exists() && dir.isDirectory()){
            try {
                Properties databaseProperties = new Properties();
                databaseProperties.setProperty("user", "ids");
                databaseProperties.setProperty("password", "ids");
                String backupDirectory = dir.getPath();
                return true;
            } catch (SQLException ex) {
        return false;
The program works properly. I am using Netbeans6 Beta. But when i view data
it doesn't shows empty table as it was previously. Please tell me where i i
did mistake in above restore() function. Also tell me how i can use
hibernate to do restore() operation on javadb.

View this message in context: http://www.nabble.com/backup%2C-restore-using-ClientDriver-tf4880501.html#a13985752
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message