示例#1
0
 private void Shutdown()
 {
     try
     {
         connection.Commit();
         connection.Close();
         connection = null;
     }
     catch (Exception ex)
     {
         Log.Warn("Exception occurred while closing connection :" + StringUtils.StringifyException
                      (ex));
     }
     finally
     {
         try
         {
             if (server != null)
             {
                 server.Shutdown();
             }
         }
         catch (Exception ex)
         {
             Log.Warn("Exception occurred while shutting down HSQLDB :" + StringUtils.StringifyException
                          (ex));
         }
         server = null;
     }
 }
示例#2
0
 private void StartHsqldbServer()
 {
     server = new Org.Hsqldb.Server.Server();
     server.SetDatabasePath(0, Runtime.GetProperty("test.build.data", "/tmp") + "/URLAccess"
                            );
     server.SetDatabaseName(0, "URLAccess");
     server.Start();
 }
示例#3
0
 private void StartHsqldbServer()
 {
     if (null == server)
     {
         server = new Org.Hsqldb.Server.Server();
         server.SetDatabasePath(0, Runtime.GetProperty("test.build.data", "/tmp") + "/" +
                                DbName);
         server.SetDatabaseName(0, DbName);
         server.Start();
     }
 }