Class UpdateQuery

  • All Implemented Interfaces:
    QueryInfo

    public abstract class UpdateQuery
    extends Object
    implements QueryInfo
    This is a convenience abstract class for creating a QueryInfo with an UPDATE ExecuteType
    Author:
    OpenCloud
    • 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 query
        retryBehaviour - 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 query
        retryBehaviour - the RetryBehaviour for the query
        statementType - the StatementType for the query