public class SQLScriptLoader extends Object
Constructor and Description |
---|
SQLScriptLoader(Reader in,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
static void |
loadFile(File file,
Connection conn)
Loads a SQL script from a file and executes it.
|
static void |
loadURI(URI url,
Connection conn)
Loads a SQL script from a URL and executes it.
|
public SQLScriptLoader(Reader in, Connection conn)
public static void loadFile(File file, Connection conn) throws FileNotFoundException, SQLException
FileNotFoundException
SQLException
public static void loadURI(URI url, Connection conn) throws IOException, SQLException
IOException
SQLException
public void execute() throws SQLException
SQLException