se.unlogic.standardutils.dao.script
Class MySQLScriptDAO

java.lang.Object
  extended by se.unlogic.standardutils.dao.script.MySQLScriptDAO
All Implemented Interfaces:
ScriptDAO

public class MySQLScriptDAO
extends Object
implements ScriptDAO


Field Summary
protected  DataSource dataSource
           
 
Constructor Summary
MySQLScriptDAO(DataSource dataSource)
           
 
Method Summary
 void executeScript(InputStream inputStream)
           
 void executeScript(String script)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

protected final DataSource dataSource
Constructor Detail

MySQLScriptDAO

public MySQLScriptDAO(DataSource dataSource)
Method Detail

executeScript

public void executeScript(InputStream inputStream)
                   throws SQLException,
                          IOException
Specified by:
executeScript in interface ScriptDAO
Throws:
SQLException
IOException

executeScript

public void executeScript(String script)
                   throws SQLException
Specified by:
executeScript in interface ScriptDAO
Throws:
SQLException


Copyright © 2011. All Rights Reserved.