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

org.jooq.DSLContext Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
/**
 * 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.CUBRID;
// ...
import static org.jooq.SQLDialect.DERBY;
import static org.jooq.SQLDialect.FIREBIRD;
import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.HSQLDB;
// ...
// ...
import static org.jooq.SQLDialect.MARIADB;
import static org.jooq.SQLDialect.MYSQL;
// ...
import static org.jooq.SQLDialect.POSTGRES;
import static org.jooq.SQLDialect.SQLITE;
// ...
// ...
// ...

import java.math.BigInteger;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import javax.annotation.Generated;

import org.jooq.conf.ParamType;
import org.jooq.conf.Settings;
import org.jooq.conf.StatementType;
import org.jooq.exception.DataAccessException;
import org.jooq.exception.InvalidResultException;
import org.jooq.exception.MappingException;
import org.jooq.impl.DSL;

/**
 * A contextual DSL providing "attached" implementations to the
 * org.jooq interfaces.
 * 

* Apart from the {@link DSL}, this contextual DSL is the main entry point * for client code, to access jOOQ classes and functionality that are related to * {@link Query} execution. Unlike objects created through the * DSL type, objects created from a DSLContext will be * "attached" to the DSLContext's {@link #configuration()}, such * that they can be executed immediately in a fluent style. An example is given * here: *

*

 * DSLContext create = DSL.using(connection, dialect);
 *
 * // Immediately fetch results after constructing a query
 * create.selectFrom(MY_TABLE).where(MY_TABLE.ID.eq(1)).fetch();
 *
 * // The above is equivalent to this "non-fluent" style
 * create.fetch(DSL.selectFrom(MY_TABLE).where(MY_TABLE.ID.eq(1)));
 * 
*

* The DSL provides convenient constructors to create a * {@link Configuration}, which will be shared among all Query * objects thus created. Optionally, you can pass a reusable * Configuration to the {@link DSL#using(Configuration)} * constructor. Please consider thread-safety concerns documented in * {@link Configuration}, should you want to reuse the same * Configuration instance in various threads and / or transactions. * * @see DSL * @see Configuration * @author Lukas Eder */ public interface DSLContext extends Scope { // ------------------------------------------------------------------------- // XXX Configuration API // ------------------------------------------------------------------------- /** * Map a schema to another one. *

* This will map a schema onto another one, depending on configured schema * mapping in this DSLContext. If no applicable schema mapping * can be found, the schema itself is returned. * * @param schema A schema * @return The mapped schema */ Schema map(Schema schema); /** * Map a table to another one. *

* This will map a table onto another one, depending on configured table * mapping in this DSLContext. If no applicable table mapping can * be found, the table itself is returned. * * @param table A table * @return The mapped table */ Table map(Table table); // ------------------------------------------------------------------------- // XXX Convenience methods accessing the underlying Connection // ------------------------------------------------------------------------- /** * Access the database meta data. *

* This method returns a wrapper type that gives access to your JDBC * connection's database meta data. */ Meta meta(); // ------------------------------------------------------------------------- // XXX Transaction API // ------------------------------------------------------------------------- /** * Run a {@link TransactionalCallable} in the context of this * DSLContext's underlying {@link #configuration()}'s * {@link Configuration#transactionProvider()}, and return the * transactional's outcome. *

* Both javac and Eclipse compilers contain bugs when overloading methods * that take both "void-compatible" and "value-compatible" functional * interfaces: *

* This is why this method was renamed to transactionResult(). * Future versions of jOOQ may create a better synonym for this, called * transaction(), which doesn't conflict with * {@link #transaction(TransactionalRunnable)} * * @param transactional The transactional code * @return The transactional outcome */ T transactionResult(TransactionalCallable transactional); /** * Run a {@link TransactionalRunnable} in the context of this * DSLContext's underlying {@link #configuration()}'s * {@link Configuration#transactionProvider()}, and return the * transactional's outcome. * * @param transactional The transactional code */ void transaction(TransactionalRunnable transactional); // ------------------------------------------------------------------------- // XXX RenderContext and BindContext accessors // ------------------------------------------------------------------------- /** * Get a new {@link RenderContext} for the context of this DSLContext. *

* This will return an initialised render context as such: *

    *
  • * {@link RenderContext#castMode()} == {@link org.jooq.RenderContext.CastMode#DEFAULT DEFAULT} *
  • *
  • {@link RenderContext#declareFields()} == false
  • *
  • {@link RenderContext#declareTables()} == false
  • *
  • {@link RenderContext#format()} == false
  • *
  • {@link RenderContext#paramType()} == {@link ParamType#INDEXED}
  • *
  • {@link RenderContext#qualify()} == true
  • *
  • {@link RenderContext#subquery()} == false
  • *
*/ RenderContext renderContext(); /** * Render a QueryPart in the context of this DSLContext. *

* This is the same as calling renderContext().render(part) * * @param part The {@link QueryPart} to be rendered * @return The rendered SQL */ String render(QueryPart part); /** * Render a QueryPart in the context of this DSLContext, rendering bind * variables as named parameters. *

* This is the same as calling * renderContext().paramType(NAMED).render(part) * * @param part The {@link QueryPart} to be rendered * @return The rendered SQL */ String renderNamedParams(QueryPart part); /** * Render a QueryPart in the context of this DSLContext, rendering bind * variables as named parameters, or inlined parameters if they have no name. *

* This is the same as calling * renderContext().paramType(NAMED_OR_INLINED).render(part) * * @param part The {@link QueryPart} to be rendered * @return The rendered SQL */ String renderNamedOrInlinedParams(QueryPart part); /** * Render a QueryPart in the context of this DSLContext, inlining all bind * variables. *

* This is the same as calling * renderContext().inline(true).render(part) * * @param part The {@link QueryPart} to be rendered * @return The rendered SQL */ String renderInlined(QueryPart part); /** * Retrieve the bind values that will be bound by a given * QueryPart. *

* The returned List is immutable. To modify bind values, use * {@link #extractParams(QueryPart)} instead. *

* Unlike {@link #extractParams(QueryPart)}, which returns also inlined * parameters, this returns only actual bind values that will render an * actual bind value as a question mark "?" */ List extractBindValues(QueryPart part); /** * Get a Map of named parameters. *

* The Map itself is immutable, but the {@link Param} elements * allow for modifying bind values on an existing {@link Query} (or any * other {@link QueryPart}). *

* Bind values created with {@link DSL#val(Object)} will have their bind * index as name. * * @see Param * @see DSL#param(String, Object) */ Map> extractParams(QueryPart part); /** * Get a named parameter from a {@link QueryPart}, provided its name. *

* Bind values created with {@link DSL#val(Object)} will have their bind * index as name. * * @see Param * @see DSL#param(String, Object) */ Param extractParam(QueryPart part, String name); /** * Get a new {@link BindContext} for the context of this DSLContext. *

* This will return an initialised bind context as such: *

    *
  • {@link RenderContext#declareFields()} == false
  • *
  • {@link RenderContext#declareTables()} == false
  • *
*

* BindContext for JOOQ INTERNAL USE only. Avoid referencing it directly */ BindContext bindContext(PreparedStatement stmt); /** * @deprecated - [#2662] - 3.2.0 - Do not reuse this method. It will be * removed with jOOQ 4.0 */ @Deprecated int bind(QueryPart part, PreparedStatement stmt); // ------------------------------------------------------------------------- // XXX Attachable and Serializable API // ------------------------------------------------------------------------- /** * Attach this DSLContext's underlying {@link #configuration()} * to some attachables. */ void attach(Attachable... attachables); /** * Attach this DSLContext's underlying {@link #configuration()} * to some attachables. */ void attach(Collection attachables); // ------------------------------------------------------------------------- // XXX Access to the loader API // ------------------------------------------------------------------------- /** * Create a new Loader object to load data from a CSV or XML * source. */ @Support > LoaderOptionsStep loadInto(Table table); // ------------------------------------------------------------------------- // XXX Plain SQL API // ------------------------------------------------------------------------- /** * Create a new query holding plain SQL. There must not be any binding * variables contained in the SQL. *

* Example: *

*

     * String sql = "SET SCHEMA 'abc'";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return A query wrapping the plain SQL */ @Support Query query(String sql); /** * Create a new query holding plain SQL. There must be as many bind * variables contained in the SQL, as passed in the bindings parameter. *

* Example: *

*

     * String sql = "SET SCHEMA 'abc'";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return A query wrapping the plain SQL */ @Support Query query(String sql, Object... bindings); /** * Create a new query holding plain SQL. *

* Unlike {@link #query(String, Object...)}, the SQL passed to this method * should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * query("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will render this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return A query wrapping the plain SQL */ @Support Query query(String sql, QueryPart... parts); /** * Execute a new query holding plain SQL. *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return The results from the executed query. This is never * null, even if the database returns no * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(String sql) throws DataAccessException; /** * Execute a new query holding plain SQL. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return The results from the executed query. This is never * null, even if the database returns no * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(String sql, Object... bindings) throws DataAccessException; /** * Execute a new query holding plain SQL. *

* Unlike {@link #fetch(String, Object...)}, the SQL passed to this method * should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * fetch("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will execute this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return The results from the executed query * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(String sql, QueryPart... parts) throws DataAccessException; /** * Execute a new query holding plain SQL and "lazily" return the generated * result. *

* The returned {@link Cursor} holds a reference to the executed * {@link PreparedStatement} and the associated {@link ResultSet}. Data can * be fetched (or iterated over) lazily, fetching records from the * {@link ResultSet} one by one. *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return The results from the executed query. This is never * null, even if the database returns no * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(String sql) throws DataAccessException; /** * Execute a new query holding plain SQL and "lazily" return the generated * result. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* The returned {@link Cursor} holds a reference to the executed * {@link PreparedStatement} and the associated {@link ResultSet}. Data can * be fetched (or iterated over) lazily, fetching records from the * {@link ResultSet} one by one. *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return The results from the executed query. This is never * null, even if the database returns no * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(String sql, Object... bindings) throws DataAccessException; /** * Execute a new query holding plain SQL and "lazily" return the generated * result. *

* The returned {@link Cursor} holds a reference to the executed * {@link PreparedStatement} and the associated {@link ResultSet}. Data can * be fetched (or iterated over) lazily, fetching records from the * {@link ResultSet} one by one. *

* Unlike {@link #fetchLazy(String, Object...)}, the SQL passed to this * method should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * fetchLazy("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will execute this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return The results from the executed query * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(String sql, QueryPart... parts) throws DataAccessException; /** * Execute a new query holding plain SQL, possibly returning several result * sets. *

* Example (Sybase ASE): *

*

     * String sql = "sp_help 'my_table'";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return The results from the executed query. This is never * null, even if the database returns no * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support List> fetchMany(String sql) throws DataAccessException; /** * Execute a new query holding plain SQL, possibly returning several result * sets. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* Example (Sybase ASE): *

*

     * String sql = "sp_help 'my_table'";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return The results from the executed query. This is never * null, even if the database returns no * {@link ResultSet} * @throws DataAccessException if something went wrong executing the query */ @Support List> fetchMany(String sql, Object... bindings) throws DataAccessException; /** * Execute a new query holding plain SQL, possibly returning several result * sets. *

* Unlike {@link #fetchMany(String, Object...)}, the SQL passed to this * method should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * fetchMany("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will execute this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return The results from the executed query * @throws DataAccessException if something went wrong executing the query */ @Support List> fetchMany(String sql, QueryPart... parts) throws DataAccessException; /** * Execute a new query holding plain SQL. *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return The results from the executed query. * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support Record fetchOne(String sql) throws DataAccessException, InvalidResultException; /** * Execute a new query holding plain SQL. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return The results from the executed query. This may be * null if the database returned no records * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support Record fetchOne(String sql, Object... bindings) throws DataAccessException, InvalidResultException; /** * Execute a new query holding plain SQL. *

* Unlike {@link #fetchOne(String, Object...)}, the SQL passed to this * method should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * fetchOne("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will execute this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return The results from the executed query. This may be * null if the database returned no records * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support Record fetchOne(String sql, QueryPart... parts) throws DataAccessException, InvalidResultException; /** * Execute a new query holding plain SQL. *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return The result value from the executed query. This may be * null if the database returned no records * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ @Support Object fetchValue(String sql) throws DataAccessException, InvalidResultException; /** * Execute a new query holding plain SQL. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return The results from the executed query. This may be * null if the database returned no records * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ @Support Object fetchValue(String sql, Object... bindings) throws DataAccessException, InvalidResultException; /** * Execute a new query holding plain SQL. *

* Unlike {@link #fetchValue(String, Object...)}, the SQL passed to this * method should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * fetchOne("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will execute this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return The results from the executed query. This may be * null if the database returned no records * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ @Support Object fetchValue(String sql, QueryPart... parts) throws DataAccessException, InvalidResultException; /** * Execute a new query holding plain SQL. *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return The result values from the executed query. This is never * null. * @throws DataAccessException if something went wrong executing the query */ @Support List fetchValues(String sql) throws DataAccessException; /** * Execute a new query holding plain SQL. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return The results from the executed query. This is never * null. * @throws DataAccessException if something went wrong executing the query */ @Support List fetchValues(String sql, Object... bindings) throws DataAccessException; /** * Execute a new query holding plain SQL. *

* Unlike {@link #fetchValue(String, Object...)}, the SQL passed to this * method should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * fetchOne("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will execute this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return The results from the executed query. This is never * null. * @throws DataAccessException if something went wrong executing the query */ @Support List fetchValues(String sql, QueryPart... parts) throws DataAccessException; /** * Execute a query holding plain SQL. *

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return The results from the executed query * @throws DataAccessException if something went wrong executing the query */ @Support int execute(String sql) throws DataAccessException; /** * Execute a new query holding plain SQL. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return The results from the executed query * @throws DataAccessException if something went wrong executing the query */ @Support int execute(String sql, Object... bindings) throws DataAccessException; /** * Execute a new query holding plain SQL. *

* Unlike {@link #execute(String, Object...)}, the SQL passed to this method * should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * execute("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will execute this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return The results from the executed query * @throws DataAccessException if something went wrong executing the query */ @Support int execute(String sql, QueryPart... parts) throws DataAccessException; /** * Create a new query holding plain SQL. *

* There must not be any binding variables contained in the SQL *

* Use this method, when you want to take advantage of the many ways to * fetch results in jOOQ, using {@link ResultQuery}. Some examples: *

*

* * * * * * * * * * * * *
{@link ResultQuery#fetchLazy()}Open a cursor and fetch records one by one
{@link ResultQuery#fetchInto(Class)}Fetch records into a custom POJO (optionally annotated with JPA * annotations)
{@link ResultQuery#fetchInto(RecordHandler)}Fetch records into a custom callback (similar to Spring's RowMapper)
*

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @return An executable query */ @Support ResultQuery resultQuery(String sql); /** * Create a new query holding plain SQL. *

* There must be as many bind variables contained in the SQL, as passed in * the bindings parameter *

* Use this method, when you want to take advantage of the many ways to * fetch results in jOOQ, using {@link ResultQuery}. Some examples: *

*

* * * * * * * * * * * * *
{@link ResultQuery#fetchLazy()}Open a cursor and fetch records one by one
{@link ResultQuery#fetchInto(Class)}Fetch records into a custom POJO (optionally annotated with JPA * annotations)
{@link ResultQuery#fetchInto(RecordHandler)}Fetch records into a custom callback (similar to Spring's RowMapper)
*

* Example (Postgres): *

*

     * String sql = "FETCH ALL IN \"\"";
Example * (SQLite): *

*

     * String sql = "pragma table_info('my_table')";
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! * * @param sql The SQL * @param bindings The bindings * @return A query wrapping the plain SQL */ @Support ResultQuery resultQuery(String sql, Object... bindings); /** * Create a new query holding plain SQL. *

* Unlike {@link #resultQuery(String, Object...)}, the SQL passed to this * method should not contain any bind variables. Instead, you can pass * {@link QueryPart} objects to the method which will be rendered at indexed * locations of your SQL string as such:

     * // The following query
     * resultQuery("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
     *
     * // Will render this SQL on an Oracle database with RenderNameStyle.QUOTED:
     * select ?, 'test' from "DUAL"
     * 
*

* NOTE: When inserting plain SQL into jOOQ objects, you must * guarantee syntax integrity. You may also create the possibility of * malicious SQL injection. Be sure to properly use bind variables and/or * escape literals when concatenated into SQL clauses! One way to escape * literals is to use {@link DSL#name(String...)} and similar methods * * @param sql The SQL clause, containing {numbered placeholders} where query * parts can be injected * @param parts The {@link QueryPart} objects that are rendered at the * {numbered placeholder} locations * @return A query wrapping the plain SQL */ @Support ResultQuery resultQuery(String sql, QueryPart... parts); // ------------------------------------------------------------------------- // XXX JDBC convenience methods // ------------------------------------------------------------------------- /** * Fetch all data from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Result}. *

* After fetching all data, the JDBC ResultSet will be closed. *

* Use {@link #fetchLazy(ResultSet)}, to fetch one Record at a * time, instead of load the entire ResultSet into a jOOQ * Result at once. * * @param rs The JDBC ResultSet to fetch data from * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(ResultSet rs) throws DataAccessException; /** * Fetch all data from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Result}. *

* After fetching all data, the JDBC ResultSet will be closed. *

* Use {@link #fetchLazy(ResultSet)}, to fetch one Record at a * time, instead of load the entire ResultSet into a jOOQ * Result at once. *

* The additional fields argument is used by jOOQ to coerce * field names and data types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param fields The fields to use in the desired output * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(ResultSet rs, Field... fields) throws DataAccessException; /** * Fetch all data from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Result}. *

* After fetching all data, the JDBC ResultSet will be closed. *

* Use {@link #fetchLazy(ResultSet)}, to fetch one Record at a * time, instead of load the entire ResultSet into a jOOQ * Result at once. *

* The additional types argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param types The data types to use in the desired output * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(ResultSet rs, DataType... types) throws DataAccessException; /** * Fetch all data from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Result}. *

* After fetching all data, the JDBC ResultSet will be closed. *

* Use {@link #fetchLazy(ResultSet)}, to fetch one Record at a * time, instead of load the entire ResultSet into a jOOQ * Result at once. *

* The additional types argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param types The data types to use in the desired output * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(ResultSet rs, Class... types) throws DataAccessException; /** * Fetch a record from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Record}. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. * * @param rs The JDBC ResultSet to fetch data from * @return The resulting jOOQ record * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support Record fetchOne(ResultSet rs) throws DataAccessException, InvalidResultException; /** * Fetch a record from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Record}. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. *

* The additional fields argument is used by jOOQ to coerce * field names and data types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param fields The fields to use in the desired output * @return The resulting jOOQ record * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support Record fetchOne(ResultSet rs, Field... fields) throws DataAccessException, InvalidResultException; /** * Fetch a record from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Record}. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. *

* The additional types argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param types The data types to use in the desired output * @return The resulting jOOQ record * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support Record fetchOne(ResultSet rs, DataType... types) throws DataAccessException, InvalidResultException; /** * Fetch a record from a JDBC {@link ResultSet} and transform it to a jOOQ * {@link Record}. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. *

* The additional types argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param types The data types to use in the desired output * @return The resulting jOOQ record * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support Record fetchOne(ResultSet rs, Class... types) throws DataAccessException, InvalidResultException; /** * Fetch a record from a JDBC {@link ResultSet} and return the only * contained value. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. * * @param rs The JDBC ResultSet to fetch data from * @return The resulting value * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ @Support Object fetchValue(ResultSet rs) throws DataAccessException, InvalidResultException; /** * Fetch a record from a JDBC {@link ResultSet} and return the only * contained value. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. *

* The additional field argument is used by jOOQ to coerce * field names and data types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param field The field to use in the desired output * @return The resulting value * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ @Support T fetchValue(ResultSet rs, Field field) throws DataAccessException, InvalidResultException; /** * Fetch a record from a JDBC {@link ResultSet} and return the only * contained value. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. *

* The additional type argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param type The data type to use in the desired output * @return The resulting value * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ @Support T fetchValue(ResultSet rs, DataType type) throws DataAccessException, InvalidResultException; /** * Fetch a record from a JDBC {@link ResultSet} and return the only * contained value. *

* This will internally fetch all records and throw an exception if there * was more than one resulting record. *

* The additional type argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param type The data types to use in the desired output * @return The resulting value * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ @Support T fetchValue(ResultSet rs, Class type) throws DataAccessException, InvalidResultException; /** * Fetch a result from a JDBC {@link ResultSet} and return the only * contained column's values. * * @param rs The JDBC ResultSet to fetch data from * @return The resulting values * @throws DataAccessException if something went wrong executing the query */ @Support List fetchValues(ResultSet rs) throws DataAccessException; /** * Fetch a result from a JDBC {@link ResultSet} and return the only * contained column's values. *

* The additional field argument is used by jOOQ to coerce * field names and data types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param field The field to use in the desired output * @return The resulting values * @throws DataAccessException if something went wrong executing the query */ @Support List fetchValues(ResultSet rs, Field field) throws DataAccessException; /** * Fetch a result from a JDBC {@link ResultSet} and return the only * contained column's values. *

* The additional type argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param type The data type to use in the desired output * @return The resulting values * @throws DataAccessException if something went wrong executing the query */ @Support List fetchValues(ResultSet rs, DataType type) throws DataAccessException; /** * Fetch a result from a JDBC {@link ResultSet} and return the only * contained column's values. *

* The additional type argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param type The data types to use in the desired output * @return The resulting values * @throws DataAccessException if something went wrong executing the query */ @Support List fetchValues(ResultSet rs, Class type) throws DataAccessException; /** * Wrap a JDBC {@link ResultSet} into a jOOQ {@link Cursor}. *

* Use {@link #fetch(ResultSet)}, to load the entire ResultSet * into a jOOQ Result at once. * * @param rs The JDBC ResultSet to fetch data from * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(ResultSet rs) throws DataAccessException; /** * Wrap a JDBC {@link ResultSet} into a jOOQ {@link Cursor}. *

* Use {@link #fetch(ResultSet)}, to load the entire ResultSet * into a jOOQ Result at once. *

* The additional fields argument is used by jOOQ to coerce * field names and data types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param fields The fields to use in the desired output * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(ResultSet rs, Field... fields) throws DataAccessException; /** * Wrap a JDBC {@link ResultSet} into a jOOQ {@link Cursor}. *

* Use {@link #fetch(ResultSet)}, to load the entire ResultSet * into a jOOQ Result at once. *

* The additional types argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param types The data types to use in the desired output * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(ResultSet rs, DataType... types) throws DataAccessException; /** * Wrap a JDBC {@link ResultSet} into a jOOQ {@link Cursor}. *

* Use {@link #fetch(ResultSet)}, to load the entire ResultSet * into a jOOQ Result at once. *

* The additional types argument is used by jOOQ to coerce data * types to the desired output * * @param rs The JDBC ResultSet to fetch data from * @param types The data types to use in the desired output * @return The resulting jOOQ Result * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(ResultSet rs, Class... types) throws DataAccessException; /** * Fetch all data from a formatted string. *

* The supplied string is supposed to be formatted in a human-readable way. * This is the same as calling fetchFromTXT(string, "{null}") * * @param string The formatted string * @return The transformed result * @see #fetchFromTXT(String, String) * @throws DataAccessException If the supplied string does not adhere to the * above format rules. */ @Support Result fetchFromTXT(String string) throws DataAccessException; /** * Fetch all data from a formatted string. *

* This method supports parsing results from two types of human-readable * formats: *

The jOOQ {@link Result#format()}

*

* This format is recognised by the fact that the first line starts with a * "plus" sign:

     * +-----+-----+--------------------------+
     * |COL1 |COL2 |COL3 containing whitespace|
     * +-----+-----+--------------------------+
     * |val1 |1    |some text                 |
     * |val2 | 2   | more text                |
     * +-----+-----+--------------------------+
     * 
This method will decode the above formatted string * according to the following rules: *
    *
  • The number of columns is defined by the number of dash groups in the * first line. Groups are separated by exactly one "plus" sign
  • *
  • The column types are VARCHAR(N) where * N = number of dashes per dash group
  • *
  • The column names are defined by the trimmed text contained in the * second row
  • *
  • The data is defined by the trimmed text contained in the subsequent * rows
  • *
*

The H2 database test data format

*

* The supplied string is supposed to be formatted in the following, * human-readable way:

     * COL1  COL2   COL3 containing whitespace
     * ----- ----   --------------------------
     * val1  1      some text
     * val2   2      more text
     * 
This method will decode the above formatted string * according to the following rules: *
    *
  • The number of columns is defined by the number of dash groups in the * second line. Groups are separated by space(s)
  • *
  • The column types are VARCHAR(N) where * N = number of dashes per dash group
  • *
  • The column names are defined by the trimmed text contained in the * first row
  • *
  • The data is defined by the trimmed text contained in the subsequent * rows
  • *
*

Both parsing methods

*

* Both parsing methods make no assumption about the resulting data types. * Instead, all data is string-based. * * @param string The formatted string * @param nullLiteral The string literal to be used as null * value. * @return The transformed result * @throws DataAccessException If the supplied string does not adhere to the * above format rules. */ @Support Result fetchFromTXT(String string, String nullLiteral) throws DataAccessException; /** * Fetch all data from a CSV string. *

* This is the same as calling fetchFromCSV(string, ',') and * the inverse of calling {@link Result#formatCSV()}. The first row of the * CSV data is required to hold field name information. Subsequent rows may * contain data, which is interpreted as {@link String}. Use the various * conversion methods to retrieve other data types from the * Result: *

    *
  • {@link Result#getValues(Field, Class)}
  • *
  • {@link Result#getValues(int, Class)}
  • *
  • {@link Result#getValues(String, Class)}
  • *
  • {@link Result#getValues(Field, Converter)}
  • *
  • {@link Result#getValues(int, Converter)}
  • *
  • {@link Result#getValues(String, Converter)}
  • *
*

* Missing values result in null. Empty values result in empty * Strings * * @param string The CSV string * @return The transformed result * @throws DataAccessException If anything went wrong parsing the CSV file * @see #fetchFromCSV(String, char) */ @Support Result fetchFromCSV(String string) throws DataAccessException; /** * Fetch all data from a CSV string. *

* This is inverse of calling {@link Result#formatCSV(char)}. The first row * of the CSV data is required to hold field name information. Subsequent * rows may contain data, which is interpreted as {@link String}. Use the * various conversion methods to retrieve other data types from the * Result: *

    *
  • {@link Result#getValues(Field, Class)}
  • *
  • {@link Result#getValues(int, Class)}
  • *
  • {@link Result#getValues(String, Class)}
  • *
  • {@link Result#getValues(Field, Converter)}
  • *
  • {@link Result#getValues(int, Converter)}
  • *
  • {@link Result#getValues(String, Converter)}
  • *
*

* Missing values result in null. Empty values result in empty * Strings * * @param string The CSV string * @param delimiter The delimiter to expect between records * @return The transformed result * @throws DataAccessException If anything went wrong parsing the CSV file * @see #fetchFromCSV(String) * @see #fetchFromStringData(List) */ @Support Result fetchFromCSV(String string, char delimiter) throws DataAccessException; /** * Fetch all data from a JSON string. *

* This is the inverse of calling {@link Result#formatJSON()}. Use the * various conversion methods to retrieve other data types from the * Result: *

    *
  • {@link Result#getValues(Field, Class)}
  • *
  • {@link Result#getValues(int, Class)}
  • *
  • {@link Result#getValues(String, Class)}
  • *
  • {@link Result#getValues(Field, Converter)}
  • *
  • {@link Result#getValues(int, Converter)}
  • *
  • {@link Result#getValues(String, Converter)}
  • *
*

* Missing values result in null. Empty values result in empty * Strings * * @param string The JSON string * @return The transformed result * @throws DataAccessException If anything went wrong parsing the JSON file */ @Support Result fetchFromJSON(String string); /** * Fetch all data from a list of strings. *

* This is used by methods such as *

    *
  • {@link #fetchFromCSV(String)}
  • *
  • {@link #fetchFromTXT(String)}
  • *
* The first element of the argument list should contain column names. * Subsequent elements contain actual data. The degree of all arrays * contained in the argument should be the same, although this is not a * requirement. jOOQ will ignore excess data, and fill missing data with * null. * * @param data The data to be transformed into a Result * @return The transformed result * @see #fetchFromStringData(List) */ Result fetchFromStringData(String[]... data); /** * Fetch all data from a list of strings. *

* This is used by methods such as *

    *
  • {@link #fetchFromCSV(String)}
  • *
  • {@link #fetchFromTXT(String)}
  • *
* The first element of the argument list should contain column names. * Subsequent elements contain actual data. The degree of all arrays * contained in the argument should be the same, although this is not a * requirement. jOOQ will ignore excess data, and fill missing data with * null. * * @param data The data to be transformed into a Result * @return The transformed result */ Result fetchFromStringData(List data); // ------------------------------------------------------------------------- // XXX Global Query factory // ------------------------------------------------------------------------- /** * Create a WITH clause to supply subsequent * SELECT, UPDATE, INSERT, * DELETE, and MERGE statements with * {@link CommonTableExpression}s. *

* The RECURSIVE keyword may be optional or unsupported in some * databases, in case of which it will not be rendered. For optimal database * interoperability and readability, however, it is suggested that you use * {@link #with(String)} for strictly non-recursive CTE * and {@link #withRecursive(String)} for strictly * recursive CTE. */ @Support({ FIREBIRD, HSQLDB, POSTGRES }) WithAsStep with(String alias); /** * Create a WITH clause to supply subsequent * SELECT, UPDATE, INSERT, * DELETE, and MERGE statements with * {@link CommonTableExpression}s. *

* The RECURSIVE keyword may be optional or unsupported in some * databases, in case of which it will not be rendered. For optimal database * interoperability and readability, however, it is suggested that you use * {@link #with(String, String...)} for strictly non-recursive CTE * and {@link #withRecursive(String, String...)} for strictly * recursive CTE. */ @Support({ FIREBIRD, HSQLDB, POSTGRES }) WithAsStep with(String alias, String... fieldAliases); /** * Create a WITH clause to supply subsequent * SELECT, UPDATE, INSERT, * DELETE, and MERGE statements with * {@link CommonTableExpression}s. *

* Reusable {@link CommonTableExpression} types can be constructed through *

    *
  • {@link DSL#name(String...)}
  • *
  • {@link Name#fields(String...)}
  • *
  • * {@link DerivedColumnList#as(Select)}
  • *
*

* The RECURSIVE keyword may be optional or unsupported in some * databases, in case of which it will not be rendered. For optimal database * interoperability and readability, however, it is suggested that you use * {@link #with(CommonTableExpression...)} for strictly non-recursive CTE * and {@link #withRecursive(CommonTableExpression...)} for strictly * recursive CTE. */ @Support({ FIREBIRD, HSQLDB, POSTGRES }) WithStep with(CommonTableExpression... tables); /** * Create a WITH clause to supply subsequent * SELECT, UPDATE, INSERT, * DELETE, and MERGE statements with * {@link CommonTableExpression}s. *

* The RECURSIVE keyword may be optional or unsupported in some * databases, in case of which it will not be rendered. For optimal database * interoperability and readability, however, it is suggested that you use * {@link #with(String)} for strictly non-recursive CTE * and {@link #withRecursive(String)} for strictly * recursive CTE. *

* Note that the {@link SQLDialect#H2} database only supports single-table, * RECURSIVE common table expression lists. */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) WithAsStep withRecursive(String alias); /** * Create a WITH clause to supply subsequent * SELECT, UPDATE, INSERT, * DELETE, and MERGE statements with * {@link CommonTableExpression}s. *

* The RECURSIVE keyword may be optional or unsupported in some * databases, in case of which it will not be rendered. For optimal database * interoperability and readability, however, it is suggested that you use * {@link #with(String, String...)} for strictly non-recursive CTE * and {@link #withRecursive(String, String...)} for strictly * recursive CTE. *

* Note that the {@link SQLDialect#H2} database only supports single-table, * RECURSIVE common table expression lists. */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) WithAsStep withRecursive(String alias, String... fieldAliases); /** * Create a WITH clause to supply subsequent * SELECT, UPDATE, INSERT, * DELETE, and MERGE statements with * {@link CommonTableExpression}s. *

* Reusable {@link CommonTableExpression} types can be constructed through *

    *
  • {@link DSL#name(String...)}
  • *
  • {@link Name#fields(String...)}
  • *
  • * {@link DerivedColumnList#as(Select)}
  • *
*

* The RECURSIVE keyword may be optional or unsupported in some * databases, in case of which it will not be rendered. For optimal database * interoperability and readability, however, it is suggested that you use * {@link #with(CommonTableExpression...)} for strictly non-recursive CTE * and {@link #withRecursive(CommonTableExpression...)} for strictly * recursive CTE. *

* Note that the {@link SQLDialect#H2} database only supports single-table, * RECURSIVE common table expression lists. */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) WithStep withRecursive(CommonTableExpression... tables); /** * Create a new DSL select statement. *

* Example:

     * SELECT * FROM [table] WHERE [conditions] ORDER BY [ordering] LIMIT [limit clause]
     * 
*/ @Support SelectWhereStep selectFrom(Table table); /** * Create a new DSL select statement. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Collection)} instead. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.select(fields)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#select(Collection) */ @Support SelectSelectStep select(Collection> fields); /** * Create a new DSL select statement. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field...)} instead. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.select(field1, field2)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2)
     *       .execute();
     * 
* * @see DSL#select(Field...) */ @Support SelectSelectStep select(Field... fields); // [jooq-tools] START [select] /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Field#in(Select)}, {@link Field#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row2#in(Select)}, {@link Row2#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row3#in(Select)}, {@link Row3#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row4#in(Select)}, {@link Row4#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, field4)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row5#in(Select)}, {@link Row5#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, field4, field5)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row6#in(Select)}, {@link Row6#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field5, field6)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row7#in(Select)}, {@link Row7#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field6, field7)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row8#in(Select)}, {@link Row8#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field7, field8)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row9#in(Select)}, {@link Row9#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field8, field9)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row10#in(Select)}, {@link Row10#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field9, field10)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row11#in(Select)}, {@link Row11#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field10, field11)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row12#in(Select)}, {@link Row12#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field11, field12)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row13#in(Select)}, {@link Row13#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field12, field13)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row14#in(Select)}, {@link Row14#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field13, field14)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row15#in(Select)}, {@link Row15#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field14, field15)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row16#in(Select)}, {@link Row16#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field15, field16)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row17#in(Select)}, {@link Row17#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field16, field17)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row18#in(Select)}, {@link Row18#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field17, field18)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row19#in(Select)}, {@link Row19#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field18, field19)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row20#in(Select)}, {@link Row20#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field19, field20)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row21#in(Select)}, {@link Row21#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field20, field21)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21); /** * Create a new DSL select statement. *

* This is the same as {@link #select(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row22#in(Select)}, {@link Row22#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#select(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .select(field1, field2, field3, .., field21, field22)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> select(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21, Field field22); // [jooq-tools] END [select] /** * Create a new DSL select statement. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Collection)} instead. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.selectDistinct(fields)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Collection) */ @Support SelectSelectStep selectDistinct(Collection> fields); /** * Create a new DSL select statement. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field...)} instead. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.selectDistinct(field1, field2)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) */ @Support SelectSelectStep selectDistinct(Field... fields); // [jooq-tools] START [selectDistinct] /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Field#in(Select)}, {@link Field#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row2#in(Select)}, {@link Row2#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row3#in(Select)}, {@link Row3#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row4#in(Select)}, {@link Row4#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, field4)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row5#in(Select)}, {@link Row5#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, field4, field5)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row6#in(Select)}, {@link Row6#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field5, field6)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row7#in(Select)}, {@link Row7#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field6, field7)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row8#in(Select)}, {@link Row8#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field7, field8)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row9#in(Select)}, {@link Row9#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field8, field9)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row10#in(Select)}, {@link Row10#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field9, field10)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row11#in(Select)}, {@link Row11#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field10, field11)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row12#in(Select)}, {@link Row12#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field11, field12)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row13#in(Select)}, {@link Row13#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field12, field13)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row14#in(Select)}, {@link Row14#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field13, field14)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row15#in(Select)}, {@link Row15#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field14, field15)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row16#in(Select)}, {@link Row16#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field15, field16)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row17#in(Select)}, {@link Row17#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field16, field17)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row18#in(Select)}, {@link Row18#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field17, field18)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row19#in(Select)}, {@link Row19#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field18, field19)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row20#in(Select)}, {@link Row20#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field19, field20)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row21#in(Select)}, {@link Row21#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field20, field21)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21); /** * Create a new DSL select statement. *

* This is the same as {@link #selectDistinct(Field...)}, except that it * declares additional record-level typesafety, which is needed by * {@link Row22#in(Select)}, {@link Row22#equal(Select)} and other predicate * building methods taking subselect arguments. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectDistinct(Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field, Field)} instead. *

* Example:

     * using(configuration)
     *       .selectDistinct(field1, field2, field3, .., field21, field22)
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectDistinct(Field...) * @see #selectDistinct(Field...) */ @Generated("This method was generated using jOOQ-tools") @Support SelectSelectStep> selectDistinct(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21, Field field22); // [jooq-tools] END [selectDistinct] /** * Create a new DSL select statement for a constant 0 literal. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectZero()} instead. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.selectZero()
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#zero() * @see DSL#selectZero() */ @Support SelectSelectStep> selectZero(); /** * Create a new DSL select statement for a constant 1 literal. *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectOne()} instead. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.selectOne()
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#one() * @see DSL#selectOne() */ @Support SelectSelectStep> selectOne(); /** * Create a new DSL select statement for COUNT(*). *

* This creates an attached, renderable and executable SELECT * statement from this {@link DSLContext}. If you don't need to render or * execute this SELECT statement (e.g. because you want to * create a subselect), consider using the static * {@link DSL#selectCount()} instead. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.selectCount()
     *       .from(table1)
     *       .join(table2).on(field1.equal(field2))
     *       .where(field1.greaterThan(100))
     *       .orderBy(field2);
     * 
* * @see DSL#selectCount() */ @Support SelectSelectStep> selectCount(); /** * Create a new {@link SelectQuery} */ @Support SelectQuery selectQuery(); /** * Create a new {@link SelectQuery} * * @param table The table to select data from * @return The new {@link SelectQuery} */ @Support SelectQuery selectQuery(TableLike table); /** * Create a new {@link InsertQuery} * * @param into The table to insert data into * @return The new {@link InsertQuery} */ @Support InsertQuery insertQuery(Table into); /** * Create a new DSL insert statement. *

* This type of insert may feel more convenient to some users, as it uses * the UPDATE statement's SET a = b syntax. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.insertInto(table)
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .newRecord()
     *       .set(field1, value3)
     *       .set(field2, value4)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Support InsertSetStep insertInto(Table into); // [jooq-tools] START [insert] /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1)
     *       .values(field1)
     *       .values(field1)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep1 insertInto(Table into, Field field1); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2)
     *       .values(field1, field2)
     *       .values(field1, field2)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep2 insertInto(Table into, Field field1, Field field2); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3)
     *       .values(field1, field2, field3)
     *       .values(field1, field2, field3)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep3 insertInto(Table into, Field field1, Field field2, Field field3); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, field4)
     *       .values(field1, field2, field3, field4)
     *       .values(field1, field2, field3, field4)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep4 insertInto(Table into, Field field1, Field field2, Field field3, Field field4); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, field4, field5)
     *       .values(field1, field2, field3, field4, field5)
     *       .values(field1, field2, field3, field4, field5)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep5 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field5, field6)
     *       .values(valueA1, valueA2, valueA3, .., valueA5, valueA6)
     *       .values(valueB1, valueB2, valueB3, .., valueB5, valueB6)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep6 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field6, field7)
     *       .values(valueA1, valueA2, valueA3, .., valueA6, valueA7)
     *       .values(valueB1, valueB2, valueB3, .., valueB6, valueB7)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep7 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field7, field8)
     *       .values(valueA1, valueA2, valueA3, .., valueA7, valueA8)
     *       .values(valueB1, valueB2, valueB3, .., valueB7, valueB8)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep8 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field8, field9)
     *       .values(valueA1, valueA2, valueA3, .., valueA8, valueA9)
     *       .values(valueB1, valueB2, valueB3, .., valueB8, valueB9)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep9 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field9, field10)
     *       .values(valueA1, valueA2, valueA3, .., valueA9, valueA10)
     *       .values(valueB1, valueB2, valueB3, .., valueB9, valueB10)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep10 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field10, field11)
     *       .values(valueA1, valueA2, valueA3, .., valueA10, valueA11)
     *       .values(valueB1, valueB2, valueB3, .., valueB10, valueB11)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep11 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field11, field12)
     *       .values(valueA1, valueA2, valueA3, .., valueA11, valueA12)
     *       .values(valueB1, valueB2, valueB3, .., valueB11, valueB12)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep12 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field12, field13)
     *       .values(valueA1, valueA2, valueA3, .., valueA12, valueA13)
     *       .values(valueB1, valueB2, valueB3, .., valueB12, valueB13)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep13 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field13, field14)
     *       .values(valueA1, valueA2, valueA3, .., valueA13, valueA14)
     *       .values(valueB1, valueB2, valueB3, .., valueB13, valueB14)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep14 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field14, field15)
     *       .values(valueA1, valueA2, valueA3, .., valueA14, valueA15)
     *       .values(valueB1, valueB2, valueB3, .., valueB14, valueB15)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep15 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field15, field16)
     *       .values(valueA1, valueA2, valueA3, .., valueA15, valueA16)
     *       .values(valueB1, valueB2, valueB3, .., valueB15, valueB16)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep16 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field16, field17)
     *       .values(valueA1, valueA2, valueA3, .., valueA16, valueA17)
     *       .values(valueB1, valueB2, valueB3, .., valueB16, valueB17)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep17 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field17, field18)
     *       .values(valueA1, valueA2, valueA3, .., valueA17, valueA18)
     *       .values(valueB1, valueB2, valueB3, .., valueB17, valueB18)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep18 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field18, field19)
     *       .values(valueA1, valueA2, valueA3, .., valueA18, valueA19)
     *       .values(valueB1, valueB2, valueB3, .., valueB18, valueB19)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep19 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field19, field20)
     *       .values(valueA1, valueA2, valueA3, .., valueA19, valueA20)
     *       .values(valueB1, valueB2, valueB3, .., valueB19, valueB20)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep20 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field20, field21)
     *       .values(valueA1, valueA2, valueA3, .., valueA20, valueA21)
     *       .values(valueB1, valueB2, valueB3, .., valueB20, valueB21)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep21 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21); /** * Create a new DSL insert statement. *

* Example:

     * using(configuration)
     *       .insertInto(table, field1, field2, field3, .., field21, field22)
     *       .values(valueA1, valueA2, valueA3, .., valueA21, valueA22)
     *       .values(valueB1, valueB2, valueB3, .., valueB21, valueB22)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Generated("This method was generated using jOOQ-tools") @Support InsertValuesStep22 insertInto(Table into, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21, Field field22); // [jooq-tools] END [insert] /** * Create a new DSL insert statement. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.insertInto(table, field1, field2)
     *       .values(value1, value2)
     *       .values(value3, value4)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Support InsertValuesStepN insertInto(Table into, Field... fields); /** * Create a new DSL insert statement. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.insertInto(table, field1, field2)
     *       .values(value1, value2)
     *       .values(value3, value4)
     *       .onDuplicateKeyUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .execute();
     * 
*/ @Support InsertValuesStepN insertInto(Table into, Collection> fields); /** * Create a new {@link UpdateQuery} * * @param table The table to update data into * @return The new {@link UpdateQuery} */ @Support UpdateQuery updateQuery(Table table); /** * Create a new DSL update statement. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.update(table)
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .where(field1.greaterThan(100))
     *       .execute();
     * 
*

* Note that some databases support table expressions more complex than * simple table references. In CUBRID and MySQL, for instance, you can write *

     * create.update(t1.join(t2).on(t1.id.eq(t2.id)))
     *       .set(t1.value, value1)
     *       .set(t2.value, value2)
     *       .where(t1.id.eq(10))
     *       .execute();
     * 
*/ @Support UpdateSetFirstStep update(Table table); /** * Create a new DSL SQL standard MERGE statement. *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
dialectsupport typedocumentation
CUBRIDSQL:2008 standard and some enhancementshttp://www.cubrid.org/manual/90/en/MERGE
DB2SQL:2008 standard and major enhancementshttp://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com. * ibm.db2.udb.admin.doc/doc/r0010873.htm
HSQLDBSQL:2008 standardhttp://hsqldb.org/doc/2.0/guide/dataaccess-chapt.html#N129BA
OracleSQL:2008 standard and minor enhancementshttp://download.oracle.com/docs/cd/B28359_01/server.111/b28286/ * statements_9016.htm
SQL ServerSimilar to SQL:2008 standard with some major enhancementshttp://msdn.microsoft.com/de-de/library/bb510625.aspx
SybaseSimilar to SQL:2008 standard with some major enhancementshttp://dcx.sybase.com/1100/en/dbreference_en11/merge-statement.html
*

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.mergeInto(table)
     *       .using(select)
     *       .on(condition)
     *       .whenMatchedThenUpdate()
     *       .set(field1, value1)
     *       .set(field2, value2)
     *       .whenNotMatchedThenInsert(field1, field2)
     *       .values(value1, value2)
     *       .execute();
     * 
*

* Note: Using this method, you can also create an H2-specific MERGE * statement without field specification. See also * {@link #mergeInto(Table, Field...)} */ @Support({ CUBRID, HSQLDB }) MergeUsingStep mergeInto(Table table); // [jooq-tools] START [merge] /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep1 mergeInto(Table table, Field field1); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep2 mergeInto(Table table, Field field1, Field field2); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep3 mergeInto(Table table, Field field1, Field field2, Field field3); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep4 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep5 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep6 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep7 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep8 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep9 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep10 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep11 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep12 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep13 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep14 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep15 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep16 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep17 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep18 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep19 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep20 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep21 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21); /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Generated("This method was generated using jOOQ-tools") @Support({ CUBRID, H2, HSQLDB }) MergeKeyStep22 mergeInto(Table table, Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21, Field field22); // [jooq-tools] END [merge] /** * Create a new DSL merge statement (H2-specific syntax). *

* This statement is available from DSL syntax only. It is known to be * supported in some way by any of these dialects: *

* * * * * * * * * * *
H2H2 natively supports this special syntaxwww.h2database.com/html/grammar.html#merge
DB2, HSQLDB, Oracle, SQL Server, Sybase SQL AnywhereThese databases can simulate the H2-specific MERGE statement using a * standard SQL MERGE statement, without restrictionsSee {@link #mergeInto(Table)} for the standard MERGE statement
*/ @Support({ CUBRID, H2, HSQLDB }) MergeKeyStepN mergeInto(Table table, Field... fields); /** * Create a new DSL merge statement (H2-specific syntax). * * @see #mergeInto(Table, Field...) */ @Support({ CUBRID, H2, HSQLDB }) MergeKeyStepN mergeInto(Table table, Collection> fields); /** * Create a new {@link DeleteQuery} * * @param table The table to delete data from * @return The new {@link DeleteQuery} */ @Support DeleteQuery deleteQuery(Table table); /** * Create a new DSL delete statement. *

* Example:

     * DSLContext create = DSL.using(configuration);
     *
     * create.delete(table)
     *       .where(field1.greaterThan(100))
     *       .execute();
     * 
*

* Some but not all databases support aliased tables in delete statements. */ @Support DeleteWhereStep delete(Table table); // ------------------------------------------------------------------------- // XXX Batch query execution // ------------------------------------------------------------------------- /** * Create a batch statement to execute a set of queries in batch mode * (without bind values). *

* This essentially runs the following logic:

     * Statement s = connection.createStatement();
     *
     * for (Query query : queries) {
     *     s.addBatch(query.getSQL(true));
     * }
     *
     * s.execute();
     * 
* * @see Statement#executeBatch() */ @Support Batch batch(Query... queries); /** * Create a batch statement to execute a set of queries in batch mode * (without bind values). *

* This is a convenience method for calling *

batch(query(queries[0]), query(queries[1]), ...)
. * * @see #query(String) * @see #batch(Query...) * @see Statement#executeBatch() */ @Support Batch batch(String... queries); /** * Create a batch statement to execute a set of queries in batch mode * (without bind values). *

* This essentially runs the following logic:

     * Statement s = connection.createStatement();
     *
     * for (Query query : queries) {
     *     s.addBatch(query.getSQL(true));
     * }
     *
     * s.execute();
     * 
* * @see Statement#executeBatch() */ @Support Batch batch(Collection queries); /** * Create a batch statement to execute a set of queries in batch mode (with * bind values). *

* When running

     * create.batch(query)
     *       .bind(valueA1, valueA2)
     *       .bind(valueB1, valueB2)
     *       .execute();
     * 
*

* This essentially runs the following logic:

     * Statement s = connection.prepareStatement(query.getSQL(false));
     *
     * for (Object[] bindValues : allBindValues) {
     *     for (Object bindValue : bindValues) {
     *         s.setXXX(bindValue);
     *     }
     *
     *     s.addBatch();
     * }
     *
     * s.execute();
     * 
*

* Note: bind values will be inlined to a static batch query as in * {@link #batch(Query...)}, if you choose to execute queries with * {@link Settings#getStatementType()} == {@link StatementType#STATIC_STATEMENT} * * @see Statement#executeBatch() */ @Support BatchBindStep batch(Query query); /** * Create a batch statement to execute a set of queries in batch mode (with * bind values). *

* This is a convenience method for calling *

batch(query(sql))
. * * @see #query(String) * @see #batch(Query) * @see Statement#executeBatch() */ @Support BatchBindStep batch(String sql); /** * Create a batch statement to execute a set of queries in batch mode (with * bind values). *

* This is a convenience method for calling {@link #batch(Query)} and then * binding values one by one using {@link BatchBindStep#bind(Object...)} *

* Note: bind values will be inlined to a static batch query as in * {@link #batch(Query...)}, if you choose to execute queries with * {@link Settings#getStatementType()} == {@link StatementType#STATIC_STATEMENT} * * @see #batch(Query) * @see Statement#executeBatch() */ @Support Batch batch(Query query, Object[]... bindings); /** * Create a batch statement to execute a set of queries in batch mode (with * bind values). *

* This is a convenience method for calling *

batch(query(sql), bindings)
. * * @see #query(String) * @see #batch(Query, Object[][]) * @see Statement#executeBatch() */ @Support Batch batch(String sql, Object[]... bindings); /** * Create a batch statement to execute a set of INSERT and * UPDATE queries in batch mode (with bind values). *

* This batch operation can be executed in two modes: *

*

With * {@link Settings#getStatementType()} == {@link StatementType#PREPARED_STATEMENT} * (the default)
*

* In this mode, record order is preserved as much as possible, as long as * two subsequent records generate the same SQL (with bind variables). The * number of executed batch operations corresponds to * [number of distinct rendered SQL statements]. In the worst * case, this corresponds to the number of total records. *

* The record type order is preserved in the way they are passed to this * method. This is an example of how statements will be ordered:

     * // Let's assume, odd numbers result in INSERTs and even numbers in UPDATES
     * // Let's also assume a[n] are all of the same type, just as b[n], c[n]...
     * int[] result = create.batchStore(a1, a2, a3, b1, a4, c1, b3, a5)
     *                      .execute();
     * 
The above results in result.length == 8 and * the following 4 separate batch statements: *
    *
  1. INSERT a1, a3, a5
  2. *
  3. UPDATE a2, a4
  4. *
  5. INSERT b1, b3
  6. *
  7. INSERT c1
  8. *
*

*

With * {@link Settings#getStatementType()} == {@link StatementType#STATIC_STATEMENT} *
*

* This mode may be better for large and complex batch store operations, as * the order of records is preserved entirely, and jOOQ can guarantee that * only a single batch statement is serialised to the database. * * @see Statement#executeBatch() */ @Support Batch batchStore(UpdatableRecord... records); /** * Create a batch statement to execute a set of INSERT and * UPDATE queries in batch mode (with bind values). * * @see #batchStore(UpdatableRecord...) * @see Statement#executeBatch() */ @Support Batch batchStore(Collection> records); /** * Create a batch statement to execute a set of INSERT queries * in batch mode (with bind values). * * @see #batchStore(UpdatableRecord...) * @see Statement#executeBatch() */ @Support Batch batchInsert(TableRecord... records); /** * Create a batch statement to execute a set of INSERT queries * in batch mode (with bind values). * * @see #batchStore(UpdatableRecord...) * @see Statement#executeBatch() */ @Support Batch batchInsert(Collection> records); /** * Create a batch statement to execute a set of UPDATE queries * in batch mode (with bind values). * * @see #batchStore(UpdatableRecord...) * @see Statement#executeBatch() */ @Support Batch batchUpdate(UpdatableRecord... records); /** * Create a batch statement to execute a set of UPDATE queries * in batch mode (with bind values). * * @see #batchStore(UpdatableRecord...) * @see Statement#executeBatch() */ @Support Batch batchUpdate(Collection> records); /** * Create a batch statement to execute a set of DELETE queries * in batch mode (with bind values). *

* This batch operation can be executed in two modes: *

*

With * {@link Settings#getStatementType()} == {@link StatementType#PREPARED_STATEMENT} * (the default)
*

* In this mode, record order is preserved as much as possible, as long as * two subsequent records generate the same SQL (with bind variables). The * number of executed batch operations corresponds to * [number of distinct rendered SQL statements]. In the worst * case, this corresponds to the number of total records. *

* The record type order is preserved in the way they are passed to this * method. This is an example of how statements will be ordered:

     * // Let's assume a[n] are all of the same type, just as b[n], c[n]...
     * int[] result = create.batchDelete(a1, a2, a3, b1, a4, c1, c2, a5)
     *                      .execute();
     * 
The above results in result.length == 8 and * the following 5 separate batch statements: *
    *
  1. DELETE a1, a2, a3
  2. *
  3. DELETE b1
  4. *
  5. DELETE a4
  6. *
  7. DELETE c1, c2
  8. *
  9. DELETE a5
  10. *
*

*

With * {@link Settings#getStatementType()} == {@link StatementType#STATIC_STATEMENT} *
*

* This mode may be better for large and complex batch delete operations, as * the order of records is preserved entirely, and jOOQ can guarantee that * only a single batch statement is serialised to the database. * * @see Statement#executeBatch() */ @Support Batch batchDelete(UpdatableRecord... records); /** * Create a batch statement to execute a set of DELETE in batch * mode (with bind values). * * @see #batchDelete(UpdatableRecord...) * @see Statement#executeBatch() */ @Support Batch batchDelete(Collection> records); // ------------------------------------------------------------------------- // XXX DDL Statements // ------------------------------------------------------------------------- /** * Create a new DSL CREATE TABLE statement. * * @see DSL#createTable(String) */ @Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) CreateTableAsStep createTable(String tableName); /** * Create a new DSL CREATE TABLE statement. * * @see DSL#createTable(Table) */ @Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) CreateTableAsStep createTable(Table table); /** * Create a new DSL CREATE VIEW statement. * * @see DSL#createView(String, String...) */ @Support CreateViewAsStep createView(String viewName, String... fieldNames); /** * Create a new DSL CREATE VIEW statement. * * @see DSL#createView(Table, Field...) */ @Support CreateViewAsStep createView(Table view, Field... fields); /** * Create a new DSL CREATE INDEX statement. * * @see DSL#createIndex(String) */ @Support CreateIndexStep createIndex(String index); /** * Create a new DSL CREATE SEQUENCE statement. * * @see DSL#createSequence(String) */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, POSTGRES }) CreateSequenceFinalStep createSequence(Sequence sequence); /** * Create a new DSL CREATE SEQUENCE statement. * * @see DSL#createSequence(String) */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, POSTGRES }) CreateSequenceFinalStep createSequence(String sequence); /** * Create a new DSL ALTER SEQUENCE statement. * * @see DSL#alterSequence(Sequence) */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) AlterSequenceRestartStep alterSequence(Sequence sequence); /** * Create a new DSL ALTER SEQUENCE statement. * * @see DSL#alterSequence(String) */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) AlterSequenceRestartStep alterSequence(String sequence); /** * Create a new DSL ALTER TABLE statement. * * @see DSL#alterTable(Table) */ @Support AlterTableStep alterTable(Table table); /** * Create a new DSL ALTER TABLE statement. * * @see DSL#alterTable(String) */ @Support AlterTableStep alterTable(String table); /** * Create a new DSL DROP VIEW statement. * * @see DSL#dropView(Table) */ @Support DropViewFinalStep dropView(Table table); /** * Create a new DSL DROP VIEW statement. * * @see DSL#dropView(String) */ @Support DropViewFinalStep dropView(String table); /** * Create a new DSL DROP VIEW IF EXISTS statement. *

* If your database doesn't natively support IF EXISTS, this is * emulated by catching (and ignoring) the relevant {@link SQLException}. * * @see DSL#dropViewIfExists(Table) */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) DropViewFinalStep dropViewIfExists(Table table); /** * Create a new DSL DROP VIEW IF EXISTS statement. *

* If your database doesn't natively support IF EXISTS, this is * emulated by catching (and ignoring) the relevant {@link SQLException}. * * @see DSL#dropViewIfExists(String) */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) DropViewFinalStep dropViewIfExists(String table); /** * Create a new DSL DROP TABLE statement. * * @see DSL#dropTable(Table) */ @Support DropTableStep dropTable(Table table); /** * Create a new DSL ALTER TABLE statement. * * @see DSL#dropTable(String) */ @Support DropTableStep dropTable(String table); /** * Create a new DSL DROP TABLE IF EXISTS statement. *

* If your database doesn't natively support IF EXISTS, this is * emulated by catching (and ignoring) the relevant {@link SQLException}. * * @see DSL#dropTableIfExists(Table) */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) DropTableStep dropTableIfExists(Table table); /** * Create a new DSL ALTER TABLE IF EXISTS statement. *

* If your database doesn't natively support IF EXISTS, this is * emulated by catching (and ignoring) the relevant {@link SQLException}. * * @see DSL#dropTableIfExists(String) */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) DropTableStep dropTableIfExists(String table); /** * Create a new DSL DROP INDEX statement. * * @see DSL#dropIndex(String) */ @Support DropIndexFinalStep dropIndex(String index); /** * Create a new DSL DROP INDEX IF EXISTS statement. *

* If your database doesn't natively support IF EXISTS, this is * emulated by catching (and ignoring) the relevant {@link SQLException}. * * @see DSL#dropIndexIfExists(String) */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE }) DropIndexFinalStep dropIndexIfExists(String index); /** * Create a new DSL DROP SEQUENCE statement. * * @see DSL#dropSequence(Sequence) */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) DropSequenceFinalStep dropSequence(Sequence sequence); /** * Create a new DSL DROP SEQUENCE statement. * * @see DSL#dropSequence(String) */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) DropSequenceFinalStep dropSequence(String sequence); /** * Create a new DSL DROP SEQUENCE IF EXISTS statement. *

* If your database doesn't natively support IF EXISTS, this is * emulated by catching (and ignoring) the relevant {@link SQLException}. * * @see DSL#dropSequenceIfExists(Sequence) */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) DropSequenceFinalStep dropSequenceIfExists(Sequence sequence); /** * Create a new DSL DROP SEQUENCE IF EXISTS statement. *

* If your database doesn't natively support IF EXISTS, this is * emulated by catching (and ignoring) the relevant {@link SQLException}. * * @see DSL#dropSequenceIfExists(String) */ @Support({ FIREBIRD, H2, HSQLDB, POSTGRES }) DropSequenceFinalStep dropSequenceIfExists(String sequence); /** * Create a new DSL truncate statement. *

* Example: *

*

     * DSLContext create = DSL.using(configuration);
     *
     * create.truncate(table)
     *       .execute();
     * 
*

Simulation of TRUNCATE

*

* Most dialects implement the TRUNCATE statement. If it is not * supported, it is simulated using an equivalent DELETE * statement. This is particularly true for these dialects: *

    *
  • {@link SQLDialect#FIREBIRD}
  • *
  • {@link SQLDialect#INGRES}
  • *
  • {@link SQLDialect#SQLITE}
  • *
*

Vendor-specific extensions of TRUNCATE

*

* Some statements also support extensions of the TRUNCATE * statement, such as Postgres: *

*

     * create.truncate(table)
     *       .restartIdentity()
     *       .cascade()
     *       .execute();
     * 
*

* These vendor-specific extensions are currently not simulated for those * dialects that do not support them natively. */ @Support TruncateIdentityStep truncate(Table table); // ------------------------------------------------------------------------- // XXX Other queries for identites and sequences // ------------------------------------------------------------------------- /** * Retrieve the last inserted ID. *

* Note, there are some restrictions to the following dialects: *

    *
  • {@link SQLDialect#DB2} doesn't support this
  • *
  • {@link SQLDialect#ORACLE} doesn't support this
  • *
  • {@link SQLDialect#POSTGRES} doesn't support this
  • *
  • {@link SQLDialect#SQLITE} supports this, but its support is poorly * documented.
  • *
* * @return The last inserted ID. This may be null in some * dialects, if no such number is available. * @throws DataAccessException if something went wrong executing the query */ @Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, SQLITE }) BigInteger lastID() throws DataAccessException; /** * Convenience method to fetch the NEXTVAL for a sequence directly from this * {@link DSLContext}'s underlying JDBC {@link Connection}. * * @throws DataAccessException if something went wrong executing the query */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, POSTGRES }) BigInteger nextval(String sequence) throws DataAccessException; /** * Convenience method to fetch the NEXTVAL for a sequence directly from this * {@link DSLContext}'s underlying JDBC {@link Connection}. * * @throws DataAccessException if something went wrong executing the query */ @Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, POSTGRES }) T nextval(Sequence sequence) throws DataAccessException; /** * Convenience method to fetch the CURRVAL for a sequence directly from this * {@link DSLContext}'s underlying JDBC {@link Connection}. * * @throws DataAccessException if something went wrong executing the query */ @Support({ CUBRID, FIREBIRD, H2, POSTGRES }) BigInteger currval(String sequence) throws DataAccessException; /** * Convenience method to fetch the CURRVAL for a sequence directly from this * {@link DSLContext}'s underlying JDBC {@link Connection}. * * @throws DataAccessException if something went wrong executing the query */ @Support({ CUBRID, FIREBIRD, H2, POSTGRES }) T currval(Sequence sequence) throws DataAccessException; // ------------------------------------------------------------------------- // XXX Global Record factory // ------------------------------------------------------------------------- /** * Create a new {@link UDTRecord}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @param The generic record type * @param type The UDT describing records of type <R> * @return The new record */ > R newRecord(UDT type); /** * Create a new {@link Record} that can be inserted into the corresponding * table. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @param The generic record type * @param table The table holding records of type <R> * @return The new record */ R newRecord(Table table); /** * Create a new pre-filled {@link Record} that can be inserted into the * corresponding table. *

* This performs roughly the inverse operation of {@link Record#into(Class)} *

* The resulting record will have its internal "changed" flags set to true * for all values. This means that {@link UpdatableRecord#store()} will * perform an INSERT statement. If you wish to store the record * using an UPDATE statement, use * {@link #executeUpdate(UpdatableRecord)} instead. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @param The generic record type * @param table The table holding records of type <R> * @param source The source to be used to fill the new record * @return The new record * @throws MappingException wrapping any reflection or data type conversion * exception that might have occurred while mapping records * @see Record#from(Object) * @see Record#into(Class) */ R newRecord(Table table, Object source); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @param fields The fields defining the Record type * @return The new record */ Record newRecord(Field... fields); // [jooq-tools] START [newRecord] /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record1 newRecord(Field field1); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record2 newRecord(Field field1, Field field2); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record3 newRecord(Field field1, Field field2, Field field3); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record4 newRecord(Field field1, Field field2, Field field3, Field field4); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record5 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record6 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record7 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record8 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record9 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record10 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record11 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record12 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record13 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record14 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record15 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record16 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record17 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record18 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record19 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record20 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record21 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new record */ @Generated("This method was generated using jOOQ-tools") Record22 newRecord(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21, Field field22); // [jooq-tools] END [newRecord] /** * Create a new empty {@link Result}. *

* The result is attached to this {@link Configuration} by default. This * result can be used as a container for records. * * @param The generic record type * @param table The table holding records of type <R> * @return The new result */ Result newResult(Table table); /** * Create a new empty {@link Record}. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @param fields The fields defining the Record type * @return The new record */ Result newResult(Field... fields); // [jooq-tools] START [newResult] /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21); /** * Create a new empty {@link Result}. *

* The resulting result is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The new result */ @Generated("This method was generated using jOOQ-tools") Result> newResult(Field field1, Field field2, Field field3, Field field4, Field field5, Field field6, Field field7, Field field8, Field field9, Field field10, Field field11, Field field12, Field field13, Field field14, Field field15, Field field16, Field field17, Field field18, Field field19, Field field20, Field field21, Field field22); // [jooq-tools] END [newResult] // ------------------------------------------------------------------------- // XXX Executing queries // ------------------------------------------------------------------------- /** * Execute a {@link ResultQuery} in the context of this DSLContext and return * results. * * @param query The query to execute * @return The result * @throws DataAccessException if something went wrong executing the query * @see ResultQuery#fetch() */ Result fetch(ResultQuery query) throws DataAccessException; /** * Execute a {@link ResultQuery} in the context of this DSLContext and return * a cursor. * * @param query The query to execute * @return The cursor * @throws DataAccessException if something went wrong executing the query * @see ResultQuery#fetchLazy() */ Cursor fetchLazy(ResultQuery query) throws DataAccessException; /** * Execute a {@link ResultQuery} in the context of this DSLContext and return * a cursor. * * @param query The query to execute * @return The results * @throws DataAccessException if something went wrong executing the query * @see ResultQuery#fetchMany() */ List> fetchMany(ResultQuery query) throws DataAccessException; /** * Execute a {@link ResultQuery} in the context of this DSLContext and return * a record. * * @param query The query to execute * @return The record * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * @see ResultQuery#fetchOne() */ R fetchOne(ResultQuery query) throws DataAccessException, InvalidResultException; /** * Execute a {@link ResultQuery} in the context of this * DSLContext and return a single value. * * @param query The query to execute * @return The value. * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record * or a record with more than one value. */ > T fetchValue(ResultQuery query) throws DataAccessException, InvalidResultException; /** * Execute a {@link ResultQuery} in the context of this * DSLContext and return all values for the only column. * * @param query The query to execute * @return The values. * @throws DataAccessException if something went wrong executing the query */ > List fetchValues(ResultQuery query) throws DataAccessException; /** * Execute a {@link Select} query in the context of this DSLContext and return * a COUNT(*) value. *

* This wraps a pre-existing SELECT query in another one to * calculate the COUNT(*) value, without modifying the original * SELECT. An example:

     * -- Original query:
     * SELECT id, title FROM book WHERE title LIKE '%a%'
     *
     * -- Wrapped query:
     * SELECT count(*) FROM (
     *   SELECT id, title FROM book WHERE title LIKE '%a%'
     * )
     * 
This is particularly useful for those databases that do not * support the COUNT(*) OVER() window function to calculate * total results in paged queries. * * @param query The wrapped query * @return The COUNT(*) result * @throws DataAccessException if something went wrong executing the query */ int fetchCount(Select query) throws DataAccessException; /** * Count the number of records in a table. *

* This executes

SELECT COUNT(*) FROM table
* * @param table The table whose records to count * @return The number or records in the table * @throws DataAccessException if something went wrong executing the query */ int fetchCount(Table table) throws DataAccessException; /** * Count the number of records in a table. *

* This executes

SELECT COUNT(*) FROM table WHERE condition
* * @param table The table whose records to count * @return The number or records in the table * @throws DataAccessException if something went wrong executing the query */ int fetchCount(Table table, Condition condition) throws DataAccessException; /** * Check if a {@link Select} would return any records, if it were executed. *

* This wraps a pre-existing SELECT query in another one to * check for result existence, without modifying the original * SELECT. An example:

     * -- Original query:
     * SELECT id, title FROM book WHERE title LIKE '%a%'
     *
     * -- Wrapped query:
     * SELECT EXISTS (
     *   SELECT id, title FROM book WHERE title LIKE '%a%'
     * )
     * 
* * @param query The wrapped query * @return The EXISTS(...) result * @throws DataAccessException if something went wrong executing the query */ boolean fetchExists(Select query) throws DataAccessException; /** * Check if a table has any records. *

* This executes

SELECT EXISTS(SELECT * FROM table)
* * @param table The table whose records to count * @return The number or records in the table * @throws DataAccessException if something went wrong executing the query */ boolean fetchExists(Table table) throws DataAccessException; /** * Check if a table has any records that satisfy a condition. *

* This executes

SELECT EXISTS(SELECT * FROM table WHERE condition)
* * @param table The table whose records to count * @return The number or records in the table * @throws DataAccessException if something went wrong executing the query */ boolean fetchExists(Table table, Condition condition) throws DataAccessException; /** * Execute a {@link Query} in the context of this DSLContext. * * @param query The query to execute * @return The number of affected rows * @throws DataAccessException if something went wrong executing the query * @see Query#execute() */ int execute(Query query) throws DataAccessException; // ------------------------------------------------------------------------- // XXX Fast querying // ------------------------------------------------------------------------- /** * Execute and return all records for *
SELECT * FROM [table]
. *

* The result and its contained records are attached to this * {@link Configuration} by default. Use {@link Settings#isAttachRecords()} * to override this behaviour. * * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(Table table) throws DataAccessException; /** * Execute and return all records for *

SELECT * FROM [table] WHERE [condition] 
. *

* The result and its contained records are attached to this * {@link Configuration} by default. Use {@link Settings#isAttachRecords()} * to override this behaviour. * * @throws DataAccessException if something went wrong executing the query */ @Support Result fetch(Table table, Condition condition) throws DataAccessException; /** * Execute and return zero or one record for *

SELECT * FROM [table]
. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The record or null if no record was returned * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support R fetchOne(Table table) throws DataAccessException, InvalidResultException; /** * Execute and return zero or one record for *

SELECT * FROM [table] WHERE [condition] 
. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The record or null if no record was returned * @throws DataAccessException if something went wrong executing the query * @throws InvalidResultException if the query returned more than one record */ @Support R fetchOne(Table table, Condition condition) throws DataAccessException, InvalidResultException; /** * Execute and return zero or one record for *

SELECT * FROM [table] LIMIT 1
. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The record or null if no record was returned * @throws DataAccessException if something went wrong executing the query */ @Support R fetchAny(Table table) throws DataAccessException; /** * Execute and return zero or one record for *

SELECT * FROM [table] WHERE [condition] LIMIT 1
. *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. * * @return The record or null if no record was returned * @throws DataAccessException if something went wrong executing the query */ @Support R fetchAny(Table table, Condition condition) throws DataAccessException; /** * Execute and return all records lazily for *

SELECT * FROM [table]
. *

* The result and its contained records are attached to this * {@link Configuration} by default. Use {@link Settings#isAttachRecords()} * to override this behaviour. * * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(Table table) throws DataAccessException; /** * Execute and return all records lazily for *

SELECT * FROM [table] WHERE [condition] 
. *

* The result and its contained records are attached to this * {@link Configuration} by default. Use {@link Settings#isAttachRecords()} * to override this behaviour. * * @throws DataAccessException if something went wrong executing the query */ @Support Cursor fetchLazy(Table table, Condition condition) throws DataAccessException; /** * Insert one record. *

* This executes something like the following statement: *

INSERT INTO [table] ... VALUES [record] 
*

* Unlike {@link UpdatableRecord#store()}, this does not change any of the * argument record's internal "changed" flags, such that a * subsequent call to {@link UpdatableRecord#store()} might lead to another * INSERT statement being executed. * * @return The number of inserted records * @throws DataAccessException if something went wrong executing the query */ @Support > int executeInsert(R record) throws DataAccessException; /** * Update a table. *

UPDATE [table] SET [modified values in record] WHERE [record is supplied record] 
* * @return The number of updated records * @throws DataAccessException if something went wrong executing the query */ @Support > int executeUpdate(R record) throws DataAccessException; /** * Update a table. *
UPDATE [table] SET [modified values in record] WHERE [condition]
* * @return The number of updated records * @throws DataAccessException if something went wrong executing the query */ @Support , T> int executeUpdate(R record, Condition condition) throws DataAccessException; /** * Delete a record from a table. *
DELETE FROM [table] WHERE [record is supplied record]
* * @return The number of deleted records * @throws DataAccessException if something went wrong executing the query */ @Support > int executeDelete(R record) throws DataAccessException; /** * Delete a record from a table. *
DELETE FROM [table] WHERE [condition]
* * @return The number of deleted records * @throws DataAccessException if something went wrong executing the query */ @Support , T> int executeDelete(R record, Condition condition) throws DataAccessException; }