protected void executeScript ( final String filename , final Statement statement ) throws SQLException { LOG . info ( "Executing sql script: " + filename ) ; InputStream fileInputStream ; try { fileInputStream = ConfigurationLoader . loadResource ( filename ) ; } catch ( FileNotFoundException e ) { LOG . error ( "could not execute script" , e ) ; return ; } final BufferedReader reader = new BufferedReader ( new InputStreamReader ( fileInputStream ) ) ; executeScript ( reader , statement ) ; }
Execute the given sql script .