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
FileNotFoundExceptionSQLExceptionpublic static void loadURI(URI url, Connection conn) throws IOException, SQLException
IOExceptionSQLExceptionpublic void execute()
throws SQLException
SQLException