org.jooq.UpdateQuery Maven / Gradle / Ivy
/**
* Copyright (c) 2009-2014, Data Geekery GmbH (http://www.datageekery.com)
* All rights reserved.
*
* This work is dual-licensed
* - under the Apache Software License 2.0 (the "ASL")
* - under the jOOQ License and Maintenance Agreement (the "jOOQ License")
* =============================================================================
* You may choose which license applies to you:
*
* - If you're using this work with Open Source databases, you may choose
* either ASL or jOOQ License.
* - If you're using this work with at least one commercial database, you must
* choose jOOQ License
*
* For more information, please visit http://www.jooq.org/licenses
*
* Apache Software License 2.0:
* -----------------------------------------------------------------------------
* 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.
*
* jOOQ License and Maintenance Agreement:
* -----------------------------------------------------------------------------
* Data Geekery grants the Customer the non-exclusive, timely limited and
* non-transferable license to install and use the Software under the terms of
* the jOOQ License and Maintenance Agreement.
*
* This library is distributed with a LIMITED WARRANTY. See the jOOQ License
* and Maintenance Agreement for more details: http://www.jooq.org/licensing
*/
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();
}