org.jooq.UpdateQuery Maven / Gradle / Ivy
/**
* Copyright (c) 2009-2015, 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 })
void addValues(Row1 row, Select extends Record1> 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 extends Record2> 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 extends Record3> 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 extends Record4> 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 extends Record5> 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 extends Record6> 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 extends Record7> 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 extends Record8> 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 extends Record9> 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 extends Record10> 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 extends Record11> 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 extends Record12> 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 extends Record13> 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 extends Record14> 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 extends Record15> 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 extends Record16> 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 extends Record17> 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 extends Record18> 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 extends Record19> 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 extends Record20> 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 extends Record21> 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 extends Record22> 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 extends TableLike>> from);
// ------------------------------------------------------------------------
// XXX: Methods from ConditionProvider
// ------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
@Support
void addConditions(Condition... conditions);
/**
* {@inheritDoc}
*/
@Override
@Support
void addConditions(Collection extends Condition> conditions);
/**
* {@inheritDoc}
*/
@Override
@Support
void addConditions(Operator operator, Condition... conditions);
/**
* {@inheritDoc}
*/
@Override
@Support
void addConditions(Operator operator, Collection extends Condition> 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 extends Field>> 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();
}