public abstract class AbstractJDBCTestElement
extends org.apache.jmeter.testelement.AbstractTestElement
implements org.apache.jmeter.testelement.TestStateListener
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJDBCTestElement()
Creates a JDBCSampler.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyprotected static final String ENCODING
protected AbstractJDBCTestElement()
protected byte[] execute(Connection conn) throws SQLException, IOException, UnsupportedOperationException
conn - a ConnectionSQLException - if a database error occursIOException - when I/O error occursUnsupportedOperationException - if the user provided incorrect query typeprotected byte[] execute(Connection conn, org.apache.jmeter.samplers.SampleResult sample) throws SQLException, IOException, UnsupportedOperationException
conn - a Connectionsample - a SampleResult to save the latencySQLException - if a database error occursIOException - when I/O error occursUnsupportedOperationException - if the user provided incorrect query typepublic static void close(Connection c)
public static void close(Statement s)
public static void close(ResultSet rs)
public int getIntegerQueryTimeout()
public String getQueryTimeout()
public void setQueryTimeout(String queryTimeout)
queryTimeout - query timeout in secondspublic int getIntegerResultSetMaxRows()
public String getResultSetMaxRows()
public void setResultSetMaxRows(String resultSetMaxRows)
resultSetMaxRows - max number of rows to iterate through the ResultSetpublic String getQuery()
public void setQuery(String query)
query - The query to set.public String getDataSource()
public void setDataSource(String dataSource)
dataSource - The dataSource to set.public String getQueryType()
public void setQueryType(String queryType)
queryType - The queryType to set.public String getQueryArguments()
public void setQueryArguments(String queryArguments)
public String getQueryArgumentsTypes()
public void setQueryArgumentsTypes(String queryArgumentsType)
public String getVariableNames()
public void setVariableNames(String variableNames)
variableNames - the variableNames to setpublic String getResultSetHandler()
public void setResultSetHandler(String resultSetHandler)
resultSetHandler - the resultSetHandler to setpublic String getResultVariable()
public void setResultVariable(String resultVariable)
resultVariable - the variable name in which results will be storedpublic void testStarted()
testStarted in interface org.apache.jmeter.testelement.TestStateListenerTestStateListener.testStarted()public void testStarted(String host)
testStarted in interface org.apache.jmeter.testelement.TestStateListenerTestStateListener.testStarted(java.lang.String)public void testEnded()
testEnded in interface org.apache.jmeter.testelement.TestStateListenerTestStateListener.testEnded()public void testEnded(String host)
testEnded in interface org.apache.jmeter.testelement.TestStateListenerTestStateListener.testEnded(java.lang.String)Copyright © 1998-2022 Apache Software Foundation. All Rights Reserved.