Package marauroa.server.db
Class JDBCSQLHelper
java.lang.Object
marauroa.server.db.JDBCSQLHelper
A helper class that runs SQL scripts.
- Author:
- miguel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
runDBScript(String file)
This method runs a SQL file using the given transaction.
-
Constructor Details
-
JDBCSQLHelper
creates a new JDBCSQLHelper- Parameters:
transaction
- DBTransaction
-
-
Method Details
-
runDBScript
This method runs a SQL file using the given transaction. You are responsible of beginning the transaction and commiting the changes or rollback on error.- Parameters:
file
- The file name that contains the SQL commands.- Returns:
- true if the whole file was executed or false in any other error.
-