Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.common.jdbc
Class ScriptRunner  view ScriptRunner download ScriptRunner.java

java.lang.Object
  extended bycom.ibatis.common.jdbc.ScriptRunner

Deprecated. There are better tools available for running scripts. This class has become out of scope for iBATIS.

public class ScriptRunner
extends java.lang.Object

Tool to run database scripts


Field Summary
private  boolean autoCommit
          Deprecated.  
private  java.lang.String driver
          Deprecated.  
private  java.io.PrintWriter errorLogWriter
          Deprecated.  
private  java.io.PrintWriter logWriter
          Deprecated.  
private  java.lang.String password
          Deprecated.  
private  boolean stopOnError
          Deprecated.  
private  java.lang.String url
          Deprecated.  
private  java.lang.String username
          Deprecated.  
 
Constructor Summary
ScriptRunner()
          Deprecated. Default constructor
ScriptRunner(java.util.Map props)
          Deprecated. Constructor to allow passing in a Map with configuration data
 
Method Summary
private  void flush()
          Deprecated.  
 java.lang.String getDriver()
          Deprecated. Getter for driver property
 java.io.PrintWriter getErrorLogWriter()
          Deprecated. Getter for errorLogWriter property
 java.io.PrintWriter getLogWriter()
          Deprecated. Getter for logWriter property
 java.lang.String getPassword()
          Deprecated. Getter for password property
 java.lang.String getUrl()
          Deprecated. Getter for url property
 java.lang.String getUsername()
          Deprecated. Getter for username property
 boolean isAutoCommit()
          Deprecated. Getter for autoCommit property
 boolean isStopOnError()
          Deprecated. Getter for stopOnError property
private  void print(java.lang.Object o)
          Deprecated.  
private  void println(java.lang.Object o)
          Deprecated.  
private  void printlnError(java.lang.Object o)
          Deprecated.  
 void runScript(java.sql.Connection conn, java.io.Reader reader)
          Deprecated. Runs an SQL script (read in using the Reader parameter) using the connection passed in
 void runScript(java.io.Reader reader)
          Deprecated. Runs an SQL script (read in using the Reader parameter)
 void setAutoCommit(boolean autoCommit)
          Deprecated. Setter for autoCommit property
 void setDriver(java.lang.String driver)
          Deprecated. Setter for driver property
 void setErrorLogWriter(java.io.PrintWriter errorLogWriter)
          Deprecated. Setter for errorLogWriter property
 void setLogWriter(java.io.PrintWriter logWriter)
          Deprecated. Setter for logWriter property
 void setPassword(java.lang.String password)
          Deprecated. Setter for password property
 void setStopOnError(boolean stopOnError)
          Deprecated. Setter for stopOnError property
 void setUrl(java.lang.String url)
          Deprecated. Setter for url property
 void setUsername(java.lang.String username)
          Deprecated. Setter for username property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

private java.lang.String driver
Deprecated. 

url

private java.lang.String url
Deprecated. 

username

private java.lang.String username
Deprecated. 

password

private java.lang.String password
Deprecated. 

stopOnError

private boolean stopOnError
Deprecated. 

autoCommit

private boolean autoCommit
Deprecated. 

logWriter

private java.io.PrintWriter logWriter
Deprecated. 

errorLogWriter

private java.io.PrintWriter errorLogWriter
Deprecated. 
Constructor Detail

ScriptRunner

public ScriptRunner()
Deprecated. 
Default constructor


ScriptRunner

public ScriptRunner(java.util.Map props)
Deprecated. 
Constructor to allow passing in a Map with configuration data

Method Detail

isStopOnError

public boolean isStopOnError()
Deprecated. 
Getter for stopOnError property


setStopOnError

public void setStopOnError(boolean stopOnError)
Deprecated. 
Setter for stopOnError property


isAutoCommit

public boolean isAutoCommit()
Deprecated. 
Getter for autoCommit property


setAutoCommit

public void setAutoCommit(boolean autoCommit)
Deprecated. 
Setter for autoCommit property


getLogWriter

public java.io.PrintWriter getLogWriter()
Deprecated. 
Getter for logWriter property


setLogWriter

public void setLogWriter(java.io.PrintWriter logWriter)
Deprecated. 
Setter for logWriter property


getErrorLogWriter

public java.io.PrintWriter getErrorLogWriter()
Deprecated. 
Getter for errorLogWriter property


setErrorLogWriter

public void setErrorLogWriter(java.io.PrintWriter errorLogWriter)
Deprecated. 
Setter for errorLogWriter property


getDriver

public java.lang.String getDriver()
Deprecated. 
Getter for driver property


setDriver

public void setDriver(java.lang.String driver)
Deprecated. 
Setter for driver property


getUrl

public java.lang.String getUrl()
Deprecated. 
Getter for url property


setUrl

public void setUrl(java.lang.String url)
Deprecated. 
Setter for url property


getUsername

public java.lang.String getUsername()
Deprecated. 
Getter for username property


setUsername

public void setUsername(java.lang.String username)
Deprecated. 
Setter for username property


getPassword

public java.lang.String getPassword()
Deprecated. 
Getter for password property


setPassword

public void setPassword(java.lang.String password)
Deprecated. 
Setter for password property


runScript

public void runScript(java.io.Reader reader)
               throws java.lang.ClassNotFoundException,
                      java.sql.SQLException,
                      java.io.IOException,
                      java.lang.IllegalAccessException,
                      java.lang.InstantiationException
Deprecated. 
Runs an SQL script (read in using the Reader parameter)


runScript

public void runScript(java.sql.Connection conn,
                      java.io.Reader reader)
               throws java.io.IOException,
                      java.sql.SQLException
Deprecated. 
Runs an SQL script (read in using the Reader parameter) using the connection passed in


print

private void print(java.lang.Object o)
Deprecated. 

println

private void println(java.lang.Object o)
Deprecated. 

printlnError

private void printlnError(java.lang.Object o)
Deprecated. 

flush

private void flush()
Deprecated.