Class AbstractJDBCTestElement

    • Constructor Detail

      • AbstractJDBCTestElement

        protected AbstractJDBCTestElement()
        Creates a JDBCSampler.
    • Method Detail

      • close

        public static void close​(Connection c)
      • close

        public static void close​(Statement s)
      • close

        public static void close​(ResultSet rs)
      • getIntegerQueryTimeout

        public int getIntegerQueryTimeout()
        Returns:
        the integer representation queryTimeout
      • getQueryTimeout

        public String getQueryTimeout()
        Returns:
        the queryTimeout
      • setQueryTimeout

        public void setQueryTimeout​(String queryTimeout)
        Parameters:
        queryTimeout - query timeout in seconds
      • getQuery

        public String getQuery()
      • setQuery

        public void setQuery​(String query)
        Parameters:
        query - The query to set.
      • getDataSource

        public String getDataSource()
        Returns:
        Returns the dataSource.
      • setDataSource

        public void setDataSource​(String dataSource)
        Parameters:
        dataSource - The dataSource to set.
      • getQueryType

        public String getQueryType()
        Returns:
        Returns the queryType.
      • setQueryType

        public void setQueryType​(String queryType)
        Parameters:
        queryType - The queryType to set.
      • getQueryArguments

        public String getQueryArguments()
      • setQueryArguments

        public void setQueryArguments​(String queryArguments)
      • getQueryArgumentsTypes

        public String getQueryArgumentsTypes()
      • setQueryArgumentsTypes

        public void setQueryArgumentsTypes​(String queryArgumentsType)
      • getVariableNames

        public String getVariableNames()
        Returns:
        the variableNames
      • setVariableNames

        public void setVariableNames​(String variableNames)
        Parameters:
        variableNames - the variableNames to set
      • getResultSetHandler

        public String getResultSetHandler()
        Returns:
        the resultSetHandler
      • setResultSetHandler

        public void setResultSetHandler​(String resultSetHandler)
        Parameters:
        resultSetHandler - the resultSetHandler to set
      • getResultVariable

        public String getResultVariable()
        Returns:
        the resultVariable
      • setResultVariable

        public void setResultVariable​(String resultVariable)
        Parameters:
        resultVariable - the variable name in which results will be stored
      • testStarted

        public void testStarted()

        Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.

        N.B. testStarted() and testEnded() are called from different threads.

        Specified by:
        testStarted in interface TestStateListener
        See Also:
        TestStateListener.testStarted()
      • testStarted

        public void testStarted​(String host)

        Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.

        N.B. testStarted() and testEnded() are called from different threads.

        Specified by:
        testStarted in interface TestStateListener
        Parameters:
        host - name of host
        See Also:
        TestStateListener.testStarted(java.lang.String)
      • testEnded

        public void testEnded()

        Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.

        N.B. testStarted() and testEnded() are called from different threads.

        Specified by:
        testEnded in interface TestStateListener
        See Also:
        TestStateListener.testEnded()
      • testEnded

        public void testEnded​(String host)

        Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.

        N.B. testStarted() and testEnded() are called from different threads.

        Specified by:
        testEnded in interface TestStateListener
        Parameters:
        host - name of host
        See Also:
        TestStateListener.testEnded(java.lang.String)