com.jpattern.orm.script
Class ScriptExecutorImpl

java.lang.Object
  extended by com.jpattern.orm.script.ScriptExecutorImpl
All Implemented Interfaces:
ScriptExecutor

public class ScriptExecutorImpl
extends Object
implements ScriptExecutor

Author:
Francesco Cina 02/lug/2011

Constructor Summary
ScriptExecutorImpl(SessionSqlPerformer session)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptExecutorImpl

public ScriptExecutorImpl(SessionSqlPerformer session)
Method Detail

execute

public void execute(String script)
             throws OrmException
Description copied from interface: ScriptExecutor
Executes the script.

Specified by:
execute in interface ScriptExecutor
Throws:
OrmException

execute

public void execute(InputStream scriptStream)
             throws IOException,
                    OrmException
Description copied from interface: ScriptExecutor
Executes the script.

Specified by:
execute in interface ScriptExecutor
Throws:
IOException
OrmException

execute

public void execute(InputStream scriptStream,
                    Charset charset)
             throws IOException,
                    OrmException
Description copied from interface: ScriptExecutor
Executes the script. The passed Charset will be used to read the stream.

Specified by:
execute in interface ScriptExecutor
Throws:
IOException
OrmException


Copyright © 2013. All Rights Reserved.