All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jooq.UpdateQuery Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com)
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Other licenses:
 * -----------------------------------------------------------------------------
 * Commercial licenses for this work are available. These replace the above
 * ASL 2.0 and offer limited warranties, support, maintenance, and commercial
 * database integrations.
 *
 * For more information, please visit: http://www.jooq.org/licenses
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package org.jooq;

// ...
import static org.jooq.SQLDialect.FIREBIRD;
import static org.jooq.SQLDialect.H2;
// ...
import static org.jooq.SQLDialect.HSQLDB;
// ...
// ...
import static org.jooq.SQLDialect.POSTGRES;
// ...
// ...

import java.util.Collection;

import javax.annotation.Generated;

/**
 * A query for data updating
 *
 * @param  The record type of the table being updated
 * @author Lukas Eder
 */
@SuppressWarnings("deprecation")
public interface UpdateQuery extends StoreQuery, ConditionProvider, Update {

// [jooq-tools] START [addValues]

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row1 row, Row1 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row2 row, Row2 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row3 row, Row3 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row4 row, Row4 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row5 row, Row5 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row6 row, Row6 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row7 row, Row7 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row8 row, Row8 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row9 row, Row9 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row10 row, Row10 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row11 row, Row11 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row12 row, Row12 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row13 row, Row13 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row14 row, Row14 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row15 row, Row15 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row16 row, Row16 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row17 row, Row17 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row18 row, Row18 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row19 row, Row19 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row20 row, Row20 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row21 row, Row21 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
     void addValues(Row22 row, Row22 value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB, POSTGRES })
    void addValues(RowN row, RowN value);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row1 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row2 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row3 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row4 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row5 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row6 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row7 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row8 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row9 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row10 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row11 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row12 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row13 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row14 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row15 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row16 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row17 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row18 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row19 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row20 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row21 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
     void addValues(Row22 row, Select> select);

    /**
     * Specify a multi-column set clause for the UPDATE statement.
     */
    @Generated("This method was generated using jOOQ-tools")
    @Support({ H2, HSQLDB })
    void addValues(RowN row, Select select);

// [jooq-tools] END [addValues]

    /**
     * Add tables to the table product.
     *
     * @param from The added tables
     */
    @Support({ POSTGRES })
    void addFrom(TableLike from);

    /**
     * Add tables to the table product.
     *
     * @param from The added tables
     */
    @Support({ POSTGRES })
    void addFrom(TableLike... from);

    /**
     * Add tables to the table product.
     *
     * @param from The added tables
     */
    @Support({ POSTGRES })
    void addFrom(Collection> from);

    // ------------------------------------------------------------------------
    // XXX: Methods from ConditionProvider
    // ------------------------------------------------------------------------

    /**
     * {@inheritDoc}
     */
    @Override
    @Support
    void addConditions(Condition... conditions);

    /**
     * {@inheritDoc}
     */
    @Override
    @Support
    void addConditions(Collection conditions);

    /**
     * {@inheritDoc}
     */
    @Override
    @Support
    void addConditions(Operator operator, Condition... conditions);

    /**
     * {@inheritDoc}
     */
    @Override
    @Support
    void addConditions(Operator operator, Collection conditions);

    // ------------------------------------------------------------------------
    // XXX: Methods for the UPDATE .. RETURNING syntax
    // ------------------------------------------------------------------------

    /**
     * {@inheritDoc}
     * 

* This feature works with UPDATE statements for a subset of * SQL dialects */ @Override @Support({ FIREBIRD, POSTGRES }) void setReturning(); /** * {@inheritDoc} *

* This feature works with UPDATE statements for a subset of * SQL dialects */ @Override @Support({ FIREBIRD, POSTGRES }) void setReturning(Identity identity); /** * {@inheritDoc} *

* This feature works with UPDATE statements for a subset of * SQL dialects */ @Override @Support({ FIREBIRD, POSTGRES }) void setReturning(Field... fields); /** * {@inheritDoc} *

* This feature works with UPDATE statements for a subset of * SQL dialects */ @Override @Support({ FIREBIRD, POSTGRES }) void setReturning(Collection> fields); /** * {@inheritDoc} *

* This feature works with UPDATE statements for a subset of * SQL dialects */ @Override @Support({ FIREBIRD, POSTGRES }) R getReturnedRecord(); /** * {@inheritDoc} *

* This feature works with UPDATE statements for a subset of * SQL dialects */ @Override @Support({ FIREBIRD, POSTGRES }) Result getReturnedRecords(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy