Package org.fugerit.java.core.db.helpers
Class SQLScriptFacade
- java.lang.Object
-
- org.fugerit.java.core.db.helpers.SQLScriptFacade
-
public class SQLScriptFacade extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
executeAll(SQLScriptReader reader, Connection conn)
static String[]
parseScript(String script)
static String[]
parseSqlCommands(String script)
static String
removeSqlComments(String script)
-
-
-
Method Detail
-
parseScript
public static String[] parseScript(String script) throws IOException
- Throws:
IOException
-
removeSqlComments
public static String removeSqlComments(String script) throws IOException
- Throws:
IOException
-
parseSqlCommands
public static String[] parseSqlCommands(String script) throws IOException
- Throws:
IOException
-
executeAll
public static int executeAll(SQLScriptReader reader, Connection conn) throws SQLException, IOException
- Throws:
SQLException
IOException
-
-