Class JDBCConnection.PreparedStatementQueryThread

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    JDBCConnection

    protected class JDBCConnection.PreparedStatementQueryThread
    extends java.lang.Thread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.manifoldcf.core.jdbcpool.WrappedConnection connection  
      protected java.lang.Throwable exception  
      protected java.util.ArrayList params  
      protected java.sql.PreparedStatement ps  
      protected java.lang.String query  
      protected java.lang.String[] resultCols  
      protected java.sql.ResultSet rs  
      protected java.sql.ResultSetMetaData rsmd  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      PreparedStatementQueryThread​(java.lang.String query, java.util.ArrayList params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finishUp()  
      java.lang.String[] getColumnNames()  
      org.apache.manifoldcf.core.jdbcpool.WrappedConnection getConnection()  
      java.sql.PreparedStatement getPreparedStatement()  
      java.sql.ResultSet getResultSet()  
      java.sql.ResultSetMetaData getResultSetMetaData()  
      void run()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • params

        protected java.util.ArrayList params
      • query

        protected java.lang.String query
      • connection

        protected org.apache.manifoldcf.core.jdbcpool.WrappedConnection connection
      • exception

        protected java.lang.Throwable exception
      • ps

        protected java.sql.PreparedStatement ps
      • rs

        protected java.sql.ResultSet rs
      • rsmd

        protected java.sql.ResultSetMetaData rsmd
      • resultCols

        protected java.lang.String[] resultCols
    • Constructor Detail

      • PreparedStatementQueryThread

        public PreparedStatementQueryThread​(java.lang.String query,
                                            java.util.ArrayList params)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • finishUp

        public void finishUp()
                      throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                             org.apache.manifoldcf.agents.interfaces.ServiceInterruption,
                             java.lang.InterruptedException
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        org.apache.manifoldcf.agents.interfaces.ServiceInterruption
        java.lang.InterruptedException
      • getConnection

        public org.apache.manifoldcf.core.jdbcpool.WrappedConnection getConnection()
      • getPreparedStatement

        public java.sql.PreparedStatement getPreparedStatement()
      • getResultSet

        public java.sql.ResultSet getResultSet()
      • getResultSetMetaData

        public java.sql.ResultSetMetaData getResultSetMetaData()
      • getColumnNames

        public java.lang.String[] getColumnNames()