org.skife.jdbi.tweak
Interface ScriptLocator

All Known Implementing Classes:
ChainedScriptLocator, ClasspathScriptLocator, FileSystemScriptLocator, URLScriptLocator

public interface ScriptLocator

Mechanism for locating SQL scripts


Method Summary
 java.io.InputStream locate(java.lang.String name)
          The input stream should read the script.
 

Method Detail

locate

java.io.InputStream locate(java.lang.String name)
                           throws java.lang.Exception
The input stream should read the script. The input stream will be closed after it reaches the end of file.

Parameters:
name - Resource name to look for. This will be the raw value requested by the client.
Returns:
open input stream, or null if nothing could be found.
Throws:
java.lang.Exception - if anything goes wrong locating the statement, will be wrapped in a DBIException and rethrown