QueryInfo.ExecuteType, QueryInfo.RetryBehaviour, QueryInfo.StatementType
Constructor and Description |
---|
Query()
Creates a new empty Query with a TRY_ALL RetryBehaviour and a PREPARED StatementType.
|
Query(String sql)
Creates a new Query with the specified SQL String, a TRY_ALL RetryBehaviour and a PREPARED StatementType.
|
Query(String sql,
QueryInfo.RetryBehaviour retryBehaviour)
Creates a new Query with the specified SQL String, the specified RetryBehaviour and a PREPARED StatementType.
|
Query(String sql,
QueryInfo.RetryBehaviour retryBehaviour,
QueryInfo.StatementType statementType)
Creates a new Query with the specified SQL String, RetryBehaviour and StatementType.
|
Modifier and Type | Method and Description |
---|---|
QueryInfo.ExecuteType |
getExecuteType()
Get the type of execute method to call on the prepared statement.
|
QueryInfo.RetryBehaviour |
getRetryBehaviour()
Get the retry behaviour to use for this query.
|
String |
getSql()
Get the SQL to be passed to
Connection.prepareStatement(String) . |
QueryInfo.StatementType |
getStatementType()
Get the statement type for this query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setParameters
public Query()
public Query(String sql)
sql
- the SQL string for the querypublic Query(String sql, QueryInfo.RetryBehaviour retryBehaviour)
sql
- the SQL string for the queryretryBehaviour
- the RetryBehaviour for the querypublic Query(String sql, QueryInfo.RetryBehaviour retryBehaviour, QueryInfo.StatementType statementType)
sql
- the SQL string for the queryretryBehaviour
- the RetryBehaviour for the querystatementType
- the StatementType for the querypublic String getSql()
QueryInfo
Connection.prepareStatement(String)
.public QueryInfo.RetryBehaviour getRetryBehaviour()
QueryInfo
getRetryBehaviour
in interface QueryInfo
public QueryInfo.StatementType getStatementType()
QueryInfo
getStatementType
in interface QueryInfo
public final QueryInfo.ExecuteType getExecuteType()
QueryInfo
getExecuteType
in interface QueryInfo