Class ScriptRunner


  • public class ScriptRunner
    extends java.lang.Object
    Author:
    Clinton Begin
    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptRunner​(java.sql.Connection connection)  
    • Method Summary

      Modifier and Type Method Description
      void closeConnection()
      Deprecated.
      Since 3.5.4, this method is deprecated.
      void runScript​(java.io.Reader reader)  
      void setAutoCommit​(boolean autoCommit)  
      void setDelimiter​(java.lang.String delimiter)  
      void setErrorLogWriter​(java.io.PrintWriter errorLogWriter)  
      void setEscapeProcessing​(boolean escapeProcessing)  
      void setFullLineDelimiter​(boolean fullLineDelimiter)  
      void setLogWriter​(java.io.PrintWriter logWriter)  
      void setRemoveCRs​(boolean removeCRs)  
      void setSendFullScript​(boolean sendFullScript)  
      void setStopOnError​(boolean stopOnError)  
      void setThrowWarning​(boolean throwWarning)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScriptRunner

        public ScriptRunner​(java.sql.Connection connection)
    • Method Detail

      • setStopOnError

        public void setStopOnError​(boolean stopOnError)
      • setThrowWarning

        public void setThrowWarning​(boolean throwWarning)
      • setAutoCommit

        public void setAutoCommit​(boolean autoCommit)
      • setSendFullScript

        public void setSendFullScript​(boolean sendFullScript)
      • setRemoveCRs

        public void setRemoveCRs​(boolean removeCRs)
      • setEscapeProcessing

        public void setEscapeProcessing​(boolean escapeProcessing)
        Since:
        3.1.1
      • setLogWriter

        public void setLogWriter​(java.io.PrintWriter logWriter)
      • setErrorLogWriter

        public void setErrorLogWriter​(java.io.PrintWriter errorLogWriter)
      • setDelimiter

        public void setDelimiter​(java.lang.String delimiter)
      • setFullLineDelimiter

        public void setFullLineDelimiter​(boolean fullLineDelimiter)
      • runScript

        public void runScript​(java.io.Reader reader)
      • closeConnection

        @Deprecated
        public void closeConnection()
        Deprecated.
        Since 3.5.4, this method is deprecated. Please close the Connection outside of this class.