org.jooq
Interface InsertReturningStep<R extends Record>

All Known Subinterfaces:
InsertOnDuplicateStep<R>, InsertSetMoreStep<R>, InsertValuesStep<R>

public interface InsertReturningStep<R extends Record>

This type is used for the Insert's DSL API.

Example:

 Factory create = new Factory();

 TableRecord record =
 create.insertInto(table, field1, field2)
       .values(value1, value2)
       .returning(field1)
       .fetchOne();
 

This implemented differently for every dialect:

Author:
Lukas Eder

Method Summary
 InsertResultStep<R> returning()
          Configure the INSERT statement to return all fields in R.
 InsertResultStep<R> returning(Collection<? extends Field<?>> fields)
          Configure the INSERT statement to return a list of fields in R.
 InsertResultStep<R> returning(Field<?>... fields)
          Configure the INSERT statement to return a list of fields in R.
 

Method Detail

returning

InsertResultStep<R> returning()
Configure the INSERT statement to return all fields in R.

See Also:
InsertResultStep

returning

InsertResultStep<R> returning(Field<?>... fields)
Configure the INSERT statement to return a list of fields in R.

Parameters:
fields - Fields to be returned
See Also:
InsertResultStep

returning

InsertResultStep<R> returning(Collection<? extends Field<?>> fields)
Configure the INSERT statement to return a list of fields in R.

Parameters:
fields - Fields to be returned
See Also:
InsertResultStep


Copyright © 2012. All Rights Reserved.