com.jpattern.orm.script
Interface ScriptExecutor

All Known Implementing Classes:
NullScriptExecutor, ScriptExecutorImpl

public interface ScriptExecutor

Author:
Francesco Cina 02/lug/2011 Executes statements from a standard sql script; The script can contain comments using the double hyphen symbol -- only if the comment is the only thing in a row, e.g.: this is valid: insert into TABLE_NAME -- valid comment values (1,2,3); this isn't valid: insert into TABLE_NAME -- NOT valid comment, this can break the parser!! values (1,2,3);

Method Summary
 void execute(InputStream scriptStream)
          Executes the script.
 void execute(InputStream scriptStream, Charset charset)
          Executes the script.
 void execute(String script)
          Executes the script.
 

Method Detail

execute

void execute(String script)
             throws OrmException
Executes the script.

Parameters:
script -
Throws:
OrmException

execute

void execute(InputStream scriptStream)
             throws IOException,
                    OrmException
Executes the script.

Parameters:
script -
Throws:
IOException
OrmException

execute

void execute(InputStream scriptStream,
             Charset charset)
             throws IOException,
                    OrmException
Executes the script. The passed Charset will be used to read the stream.

Parameters:
script -
charset -
Throws:
IOException
OrmException


Copyright © 2013. All Rights Reserved.