Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class FieldMapsForInsert

extends AbstractQueryPart
implements UNotYetImplemented
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UNotYetImplemented, org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable
Static Imports
java.lang.Boolean.TRUE, java.util.Arrays.asList, .Collections.emptySet, org.jooq.Clause.FIELD_ROW, .Clause.INSERT_SELECT, .Clause.INSERT_VALUES, .SQLDialect.POSTGRES, .SQLDialect.YUGABYTEDB, org.jooq.conf.WriteIfReadonly.IGNORE, .WriteIfReadonly.THROW, org.jooq.impl.DSL.name, .DSL.select, .FieldMapsForInsert.toSQLInsertSelect, .Keywords.K_DEFAULT_VALUES, .Keywords.K_VALUES, .QueryPartCollectionView.wrap, .Tools.EMPTY_FIELD, .Tools.anyMatch, .Tools.filter, .Tools.flatten, .Tools.flattenCollection, .Tools.flattenFieldOrRows, .Tools.lazy, .Tools.row0

Deprecated

as a consequence of QOM.UNotYetImplemented being deprecated. See corresponding docs for further information.

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
pack-priv final Map<Field<?>, Field<?>>
pack-priv int
pack-priv int
pack-priv final Table<?>
pack-priv final Map<Field<?>, List<Field<?>>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
pack-priv final void
addFields(Collection<?> fields)

pack-priv final Field<?>
castNullsIfNeeded(Context<?> ctx, boolean needsCast, Field<?> f)

Deprecated as a consequence of Field being deprecated.
[#15412] The SELECT representation of the VALUES clause may need some extra casts in some RDBMS, when INSERT … ON DUPLICATE KEY UPDATE is emulated using MERGE.
pack-priv void
private final void
pack-priv final Select<Record>
pack-priv final boolean
pack-priv final Set<Field<?>>
pack-priv final Map<Field<?>, Field<?>>
pack-priv final Map<Field<?>, Field<?>>
map(final int index)

pack-priv final List<Map<Field<?>, Field<?>>>
maps()

pack-priv final void
private static final <E> Iterable<E>
removeReadonly(Context<?> ctx, Iterable<E> it, Function<? super E, ? extends Field<?>> f)

pack-priv final List<Row>
rows()

pack-priv final void
set(Collection<? extends Field<?>> fields)

pack-priv final <T> Field<T>
set(Field<T> field, Field<T> value)

Deprecated as a consequence of Field being deprecated.
pack-priv final void
set(Map<?, ?> map)

private final boolean
pack-priv final void
pack-priv static final void
toSQLInsertSelect(Context<?> ctx, Select<?> select)

pack-priv final Set<Field<?>>
private final void
pack-priv final Map<Field<?>, List<Field<?>>>
Inherited from org.jooq.impl.AbstractQueryPart:
clausesconfigurationcreatecreatecreatedeclaresCTEdeclaresFieldsdeclaresTablesdeclaresWindowsequalsgeneratesCasthashCoderendersContenttoStringtranslate

Field Detail

CASTS_NEEDEDback to summary
pack-priv static final Set<SQLDialect> CASTS_NEEDED
CASTS_NEEDED_FOR_MERGEback to summary
pack-priv static final Set<SQLDialect> CASTS_NEEDED_FOR_MERGE
emptyback to summary
pack-priv final Map<Field<?>, Field<?>> empty
nextRowback to summary
pack-priv int nextRow
rowsback to summary
pack-priv int rows
tableback to summary
pack-priv final Table<?> table
valuesback to summary
pack-priv final Map<Field<?>, List<Field<?>>> values

Constructor Detail

FieldMapsForInsertback to summary
pack-priv FieldMapsForInsert(Table<?> table)

Method Detail

acceptback to summary
public final void accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
addFieldsback to summary
pack-priv final void addFields(Collection<?> fields)
Annotations
@SuppressWarnings:unchecked
castNullsIfNeededback to summary
pack-priv final Field<?> castNullsIfNeeded(Context<?> ctx, boolean needsCast, Field<?> f)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

[#15412] The SELECT representation of the VALUES clause may need some extra casts in some RDBMS, when INSERT … ON DUPLICATE KEY UPDATE is emulated using MERGE.

clearback to summary
pack-priv void clear()
initNextRowback to summary
private final void initNextRow()
insertSelectback to summary
pack-priv final Select<Record> insertSelect(Context<?> ctx, GeneratorStatementType statementType)
isExecutableback to summary
pack-priv final boolean isExecutable()
keysFlattenedback to summary
pack-priv final Set<Field<?>> keysFlattened(Context<?> ctx, GeneratorStatementType statementType)
lastMapback to summary
pack-priv final Map<Field<?>, Field<?>> lastMap()
mapback to summary
pack-priv final Map<Field<?>, Field<?>> map(final int index)
mapsback to summary
pack-priv final List<Map<Field<?>, Field<?>>> maps()
newRecordback to summary
pack-priv final void newRecord()
removeReadonlyback to summary
private static final <E> Iterable<E> removeReadonly(Context<?> ctx, Iterable<E> it, Function<? super E, ? extends Field<?>> f)
rowsback to summary
pack-priv final List<Row> rows()
setback to summary
pack-priv final void set(Collection<? extends Field<?>> fields)
setback to summary
pack-priv final <T> Field<T> set(Field<T> field, Field<T> value)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Annotations
@SuppressWarnings:unchecked
setback to summary
pack-priv final void set(Map<?, ?> map)
supportsValuesback to summary
private final boolean supportsValues(Context<?> ctx)
toSQL92Valuesback to summary
pack-priv final void toSQL92Values(Context<?> ctx)
toSQLInsertSelectback to summary
pack-priv static final void toSQLInsertSelect(Context<?> ctx, Select<?> select)
toSQLReferenceKeysback to summary
pack-priv final Set<Field<?>> toSQLReferenceKeys(Context<?> ctx)
toSQLValuesback to summary
private final void toSQLValues(Context<?> ctx)
valuesFlattenedback to summary
pack-priv final Map<Field<?>, List<Field<?>>> valuesFlattened(Context<?> ctx, GeneratorStatementType statementType)