org.apache.jmeter.protocol.jdbc.sampler
Class JDBCSampler
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Sampler, TestBean, TestElement
public class JDBCSampler
- extends AbstractSampler
- implements TestBean
A sampler which understands JDBC database requests.
- See Also:
- Serialized Form
Constructor Summary |
JDBCSampler()
Creates a JDBCSampler. |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
addTestElement, canRemove, clear, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
JDBCSampler
public JDBCSampler()
- Creates a JDBCSampler.
sample
public SampleResult sample(Entry e)
- Description copied from interface:
Sampler
- Obtains statistics about the given Entry, and packages the information
into a SampleResult.
- Specified by:
sample
in interface Sampler
close
public static void close(java.sql.Connection c)
close
public static void close(java.sql.Statement s)
close
public static void close(java.sql.ResultSet rs)
getQuery
public java.lang.String getQuery()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setQuery
public void setQuery(java.lang.String query)
- Parameters:
query
- The query to set.
getDataSource
public java.lang.String getDataSource()
- Returns:
- Returns the dataSource.
setDataSource
public void setDataSource(java.lang.String dataSource)
- Parameters:
dataSource
- The dataSource to set.
getQueryType
public java.lang.String getQueryType()
- Returns:
- Returns the queryType.
setQueryType
public void setQueryType(java.lang.String queryType)
- Parameters:
queryType
- The queryType to set.
getQueryArguments
public java.lang.String getQueryArguments()
setQueryArguments
public void setQueryArguments(java.lang.String queryArguments)
getQueryArgumentsTypes
public java.lang.String getQueryArgumentsTypes()
setQueryArgumentsTypes
public void setQueryArgumentsTypes(java.lang.String queryArgumentsType)
getVariableNames
public java.lang.String getVariableNames()
- Returns:
- the variableNames
setVariableNames
public void setVariableNames(java.lang.String variableNames)
- Parameters:
variableNames
- the variableNames to set
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.