Example usage for org.apache.commons.dbutils QueryLoader unload

List of usage examples for org.apache.commons.dbutils QueryLoader unload

Introduction

In this page you can find the example usage for org.apache.commons.dbutils QueryLoader unload.

Prototype

public synchronized void unload(String path) 

Source Link

Document

Removes the queries for the given path from the cache.

Usage

From source file:by.jdbc.dbutils.QueryLoaderTest.java

public void testLoad() throws IOException {
    try {/*from   w  w w.  jav a 2 s . co  m*/
        QueryLoader loader = QueryLoader.instance();
        Map<String, String> q = loader.load(QUERIES);
        Map<String, String> q2 = loader.load(QUERIES);

        loader.unload(QUERIES);
        Map<String, String> q3 = loader.load(QUERIES);

    } catch (IllegalArgumentException e) {
        // TODO Figure out why the Maven build can't find the properties
        // file.  The tests run fine in Eclipse so just catch this
        // exception for now.
    }
}