|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibatis.common.jdbc.ScriptRunner
Tool to run database scripts
Constructor Summary | |
ScriptRunner()
Deprecated. Default constructor |
|
ScriptRunner(java.util.Map props)
Deprecated. Constructor to allow passing in a Map with configuration data |
Method Summary | |
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 |
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 |
Constructor Detail |
public ScriptRunner()
public ScriptRunner(java.util.Map props)
props
- - the configuration propertiesMethod Detail |
public boolean isStopOnError()
public void setStopOnError(boolean stopOnError)
stopOnError
- - the new value of the stopOnError propertypublic boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
autoCommit
- - the new value of the autoCommit propertypublic java.io.PrintWriter getLogWriter()
public void setLogWriter(java.io.PrintWriter logWriter)
logWriter
- - the new value of the logWriter propertypublic java.io.PrintWriter getErrorLogWriter()
public void setErrorLogWriter(java.io.PrintWriter errorLogWriter)
errorLogWriter
- - the new value of the errorLogWriter propertypublic java.lang.String getDriver()
public void setDriver(java.lang.String driver)
driver
- - the new value of the driver propertypublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- - the new value of the url propertypublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- - the new value of the username propertypublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- - the new value of the password propertypublic void runScript(java.io.Reader reader) throws java.lang.ClassNotFoundException, java.sql.SQLException, java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
reader
- - the source of the script
java.lang.ClassNotFoundException
- if the driver class cannot be found
java.sql.SQLException
- if any SQL errors occur
java.io.IOException
- if there is an error reading from the Reader
java.lang.IllegalAccessException
- if there are problems creating the driver class
java.lang.InstantiationException
- if there are problems creating the driver classpublic void runScript(java.sql.Connection conn, java.io.Reader reader) throws java.io.IOException, java.sql.SQLException
conn
- - the connection to use for the scriptreader
- - the source of the script
java.sql.SQLException
- if any SQL errors occur
java.io.IOException
- if there is an error reading from the Reader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |