QueryInfo.ExecuteType, QueryInfo.RetryBehaviour, QueryInfo.StatementType
Constructor and Description |
---|
UpdateQuery()
Creates a new empty UpdateQuery with a TRY_ALL RetryBehaviour and a PREPARED StatementType.
|
UpdateQuery(String sql)
Creates a new UpdateQuery with the specified SQL String, a TRY_ALL RetryBehaviour and a PREPARED StatementType.
|
UpdateQuery(String sql,
QueryInfo.RetryBehaviour retryBehaviour)
Creates a new UpdateQuery with the specified SQL String, the specified RetryBehaviour and a PREPARED StatementType.
|
UpdateQuery(String sql,
QueryInfo.RetryBehaviour retryBehaviour,
QueryInfo.StatementType statementType)
Creates a new UpdateQuery 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 UpdateQuery()
public UpdateQuery(String sql)
sql
- the SQL string for the querypublic UpdateQuery(String sql, QueryInfo.RetryBehaviour retryBehaviour)
sql
- the SQL string for the queryretryBehaviour
- the RetryBehaviour for the querypublic UpdateQuery(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