public class DuckTypeConnection extends Object
Constructor and Description |
---|
DuckTypeConnection() |
Modifier and Type | Method and Description |
---|---|
void |
assertAllExpectedStatementsWereRun() |
void |
commit() |
Iterable<ResultRow> |
getQueryResults(String sql) |
int |
getUpdateResults(String sql) |
void |
onSqlListener(String sql,
Runnable action) |
PreparedStatement |
prepareStatement(String sql) |
protected void |
runSqlQueryAction(String sql) |
void |
setAutoCommit(boolean autoCommit) |
void |
setDefaultQueryResult(Iterable<ResultRow> defaultQueryResult) |
void |
setDefaultUpdateResult(int defaultUpdateResult) |
void |
setQueryResults(String sql,
Iterable<ResultRow> expectedResults) |
void |
setUpdateResults(String sql,
int rowCount) |
public PreparedStatement prepareStatement(String sql)
public void setAutoCommit(boolean autoCommit)
public void commit()
public void setUpdateResults(String sql, int rowCount)
public int getUpdateResults(String sql)
public void setDefaultUpdateResult(int defaultUpdateResult)
public void assertAllExpectedStatementsWereRun()
protected void runSqlQueryAction(String sql)
Copyright © 2002-2016 Atlassian. All Rights Reserved.