org.mule.transport.jdbc.util
Class MuleDerbyUtils

java.lang.Object
  extended by org.mule.transport.jdbc.util.MuleDerbyUtils

public class MuleDerbyUtils
extends Object


Method Summary
static void cleanupDerbyDb(String derbySystemHome, String databaseName)
           
static void createDataBase(String databaseName)
           
static void defaultDerbyCleanAndInit(String propertiesLocation, String propertyName)
           
static String loadDatabaseName(String propertiesLocation, String propertyName)
           
static String setDerbyHome()
           
static String setDerbyHome(String path)
           
static void stopDatabase()
          Properly shutdown an embedded Derby database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDerbyHome

public static String setDerbyHome()

setDerbyHome

public static String setDerbyHome(String path)

stopDatabase

public static void stopDatabase()
                         throws SQLException
Properly shutdown an embedded Derby database

Throws:
SQLException
See Also:
Derby docs

cleanupDerbyDb

public static void cleanupDerbyDb(String derbySystemHome,
                                  String databaseName)
                           throws IOException,
                                  SQLException
Throws:
IOException
SQLException

createDataBase

public static void createDataBase(String databaseName)
                           throws SQLException
Throws:
SQLException

loadDatabaseName

public static String loadDatabaseName(String propertiesLocation,
                                      String propertyName)
                               throws IOException
Throws:
IOException

defaultDerbyCleanAndInit

public static void defaultDerbyCleanAndInit(String propertiesLocation,
                                            String propertyName)
                                     throws IOException,
                                            SQLException
Throws:
IOException
SQLException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.