public class JDBCSampler extends AbstractSampler implements TestBean
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
JDBCSampler()
Creates a JDBCSampler.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Connection c) |
static void |
close(ResultSet rs) |
static void |
close(Statement s) |
String |
getDataSource() |
String |
getQuery() |
String |
getQueryArguments() |
String |
getQueryArgumentsTypes() |
String |
getQueryType() |
String |
getResultVariable() |
String |
getVariableNames() |
SampleResult |
sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
|
void |
setDataSource(String dataSource) |
void |
setQuery(String query) |
void |
setQueryArguments(String queryArguments) |
void |
setQueryArgumentsTypes(String queryArgumentsType) |
void |
setQueryType(String queryType) |
void |
setResultVariable(String resultVariable) |
void |
setVariableNames(String variableNames) |
String |
toString() |
addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, 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, traversePropertyfinalize, getClass, notify, notifyAll, wait, wait, waitaddTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traversepublic SampleResult sample(Entry e)
Samplerpublic static void close(Connection c)
public static void close(Statement s)
public static void close(ResultSet rs)
public 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 getResultVariable()
public void setResultVariable(String resultVariable)
resultVariable - the variable name in which results will be storedCopyright © 1998-2012 Apache Software Foundation. All Rights Reserved.