Class UpdateQuery
- java.lang.Object
-
- com.opencloud.slee.resources.dbquery.UpdateQuery
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.opencloud.slee.resources.dbquery.QueryInfo
QueryInfo.ExecuteType, QueryInfo.RetryBehaviour, QueryInfo.StatementType
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 toConnection.prepareStatement(String)
.QueryInfo.StatementType
getStatementType()
Get the statement type for this query.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opencloud.slee.resources.dbquery.QueryInfo
setParameters
-
-
-
-
Constructor Detail
-
UpdateQuery
public UpdateQuery()
Creates a new empty UpdateQuery with a TRY_ALL RetryBehaviour and a PREPARED StatementType.
-
UpdateQuery
public UpdateQuery(String sql)
Creates a new UpdateQuery with the specified SQL String, a TRY_ALL RetryBehaviour and a PREPARED StatementType.- Parameters:
sql
- the SQL string for the query
-
UpdateQuery
public UpdateQuery(String sql, QueryInfo.RetryBehaviour retryBehaviour)
Creates a new UpdateQuery with the specified SQL String, the specified RetryBehaviour and a PREPARED StatementType.- Parameters:
sql
- the SQL string for the queryretryBehaviour
- the RetryBehaviour for the query
-
UpdateQuery
public UpdateQuery(String sql, QueryInfo.RetryBehaviour retryBehaviour, QueryInfo.StatementType statementType)
Creates a new UpdateQuery with the specified SQL String, RetryBehaviour and StatementType.- Parameters:
sql
- the SQL string for the queryretryBehaviour
- the RetryBehaviour for the querystatementType
- the StatementType for the query
-
-
Method Detail
-
getSql
public String getSql()
Description copied from interface:QueryInfo
Get the SQL to be passed toConnection.prepareStatement(String)
.
-
getRetryBehaviour
public QueryInfo.RetryBehaviour getRetryBehaviour()
Description copied from interface:QueryInfo
Get the retry behaviour to use for this query.- Specified by:
getRetryBehaviour
in interfaceQueryInfo
- Returns:
- the retry behaviour
-
getStatementType
public QueryInfo.StatementType getStatementType()
Description copied from interface:QueryInfo
Get the statement type for this query.- Specified by:
getStatementType
in interfaceQueryInfo
- Returns:
- the statement type
-
getExecuteType
public final QueryInfo.ExecuteType getExecuteType()
Description copied from interface:QueryInfo
Get the type of execute method to call on the prepared statement.- Specified by:
getExecuteType
in interfaceQueryInfo
- Returns:
- the execute type
-
-