org.apache.derbyTesting.functionTests.tests.lang
Class dbjarUtil

java.lang.Object
  extended by org.apache.derbyTesting.functionTests.tests.lang.dbjarUtil

public class dbjarUtil
extends java.lang.Object

Simple program to archive a database up in a jar file within the test harness.


Constructor Summary
dbjarUtil()
           
 
Method Summary
(package private) static void addEntries(java.util.zip.ZipOutputStream zos, java.io.File dir, java.lang.String dbName, int old)
           
(package private) static void addFile(java.util.zip.ZipOutputStream zos, java.io.File f, java.lang.String dbName, int old)
           
static void createArchive(java.lang.String jarName, java.lang.String path, java.lang.String dbName)
          jarname - jarname to use path - path to database dbname - database name in archive
static void setDBContextClassLoader(java.lang.String jarName)
           
static void setNullContextClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

dbjarUtil

public dbjarUtil()
Method Detail

createArchive

public static void createArchive(java.lang.String jarName,
                                 java.lang.String path,
                                 java.lang.String dbName)
                          throws java.lang.Exception
jarname - jarname to use path - path to database dbname - database name in archive

Throws:
java.lang.Exception

addEntries

static void addEntries(java.util.zip.ZipOutputStream zos,
                       java.io.File dir,
                       java.lang.String dbName,
                       int old)
                throws java.lang.Exception
Throws:
java.lang.Exception

addFile

static void addFile(java.util.zip.ZipOutputStream zos,
                    java.io.File f,
                    java.lang.String dbName,
                    int old)
             throws java.io.IOException
Throws:
java.io.IOException

setDBContextClassLoader

public static void setDBContextClassLoader(java.lang.String jarName)
                                    throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

setNullContextClassLoader

public static void setNullContextClassLoader()

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.