This type is for JOOQ INTERNAL USE only. Do not reference directly
| Modifier and Type | Field and Description |
|---|---|
| private static final JooqLogger | |
| private static final Set | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private final void | addConditionForVersionAndTimestamp(ConditionProvider query)
Deprecated
as a consequence of
ConditionProvider being deprecated.
|
| private final void | checkIfChanged(TableField<R, ?>[] keys)
Deprecated
as a consequence of
Perform an additional SELECT ..
TableField being deprecated.
|
| private final void | checkIfChanged(int result, BigInteger version, Timestamp timestamp)
Check if a database record was changed in the database. |
| public final <O extends TableRecord | children(ForeignKey<O, R> key)
Implements org. |
| public final R | copy()
Implements org. store()
will result in an INSERT statement.
|
| public final int | delete()
Implements org. |
| private final int | |
| public final <O extends TableRecord | fetchChild(ForeignKey<O, R> key)
Implements org. |
| public final <O extends TableRecord | fetchChildren(ForeignKey<O, R> key)
Implements org. |
| pack-priv final UniqueKey | |
| private final boolean | |
| private final boolean | |
| public Record | key()
Implements org. Table#getPrimaryKey().
|
| private final boolean | |
| private final boolean | |
| public final int | merge()
Implements org. MERGE
statement.
|
| public int | merge(Field<?>... storeFields)
Implements org.
Deprecated
as a consequence of
Store parts of this record to the database using a Field being deprecated.
MERGE
statement.
|
| public final int | merge(Collection<? extends Field<?>> storeFields)
Implements org. MERGE
statement.
|
| public final void | |
| public final void | refresh(final Field<?>... refreshFields)
Implements org.
Deprecated
as a consequence of
Refresh parts of this record from the database.
Field being deprecated.
|
| public final void | refresh(Collection<? extends Field<?>> refreshFields)
Implements org. |
| public final int | |
| public final int | store(final Field<?>... storeFields)
Implements org.
Deprecated
as a consequence of
Store parts of this record to the database.
Field being deprecated.
|
| public final int | store(Collection<? extends Field<?>> storeFields)
Implements org. |
| private final int | |
| private final int | storeMerge(final Field<?>[] storeFields, final TableField<R, ?>[] keys)
Deprecated
as a consequence of
Field and TableField being deprecated.
|
| private final int | storeMerge0(Field<?>[] storeFields, TableField<R, ?>[] keys)
Deprecated
as a consequence of
Field and TableField being deprecated.
|
| private final <Q extends StoreQuery | storeMergeOrUpdate0(Field<?>[] storeFields, TableField<R, ?>[] keys, Q query, boolean merge)
Deprecated
as a consequence of
Field and TableField being deprecated.
|
| private final int | storeUpdate(final Field<?>[] storeFields, final TableField<R, ?>[] keys)
Deprecated
as a consequence of
Field and TableField being deprecated.
|
| private final int | storeUpdate0(Field<?>[] storeFields, TableField<R, ?>[] keys)
Deprecated
as a consequence of
Field and TableField being deprecated.
|
| public final int | update()
Implements org. UPDATE
statement.
|
| public int | update(Field<?>... storeFields)
Implements org.
Deprecated
as a consequence of
Store parts of this record to the database using an Field being deprecated.
UPDATE
statement.
|
| public final int | update(Collection<? extends Field<?>> storeFields)
Implements org. UPDATE
statement.
|
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| NO_SUPPORT_FOR_UPDATE | back to summary |
|---|---|
| private static final Set<SQLDialect> NO_SUPPORT_FOR_UPDATE | |
| NO_SUPPORT_MERGE_RETURNING | back to summary |
|---|---|
| private static final Set<SQLDialect> NO_SUPPORT_MERGE_RETURNING | |
| UpdatableRecordImpl | back to summary |
|---|---|
| public UpdatableRecordImpl(Table<R> table) | |
| addConditionForVersionAndTimestamp | back to summary |
|---|---|
| private final void addConditionForVersionAndTimestamp(ConditionProvider query)
Deprecated as a consequence of | |
| checkIfChanged | back to summary |
|---|---|
| private final void checkIfChanged(TableField<R, ?>[] keys)
Deprecated as a consequence of Perform an additional SELECT .. FOR UPDATE to check if the underlying database record has been changed compared to this record. | |
| checkIfChanged | back to summary |
|---|---|
| private final void checkIfChanged(int result, BigInteger version, Timestamp timestamp) Check if a database record was changed in the database. | |
| children | back to summary |
|---|---|
| public final <O extends TableRecord Implements org. Doc from org. Get a table expression representing the children of this record, given a foreign key.
| |
| copy | back to summary |
|---|---|
| public final R copy() Implements org. Doc from org. Duplicate this record (in memory) and reset all fields from the primary
key or main unique key, such that a subsequent call to
| |
| delete | back to summary |
|---|---|
| public final int delete() Implements org. Doc from org. Deletes this record from the database, based on the value of the primary key or main unique key.
Optimistic locking
If a
Statement examplesThe executed statement is
This is in fact the same as calling
| |
| delete0 | back to summary |
|---|---|
| private final int delete0() | |
| fetchChild | back to summary |
|---|---|
| public final <O extends TableRecord Implements org. Doc from org. Fetch a child record of this record, given a foreign key.
This returns a child record referencing this record through a given
foreign key, as if fetching from
A separate roundtrip is created by this operation. It is
often much better to include parent records using ordinary
| |
| fetchChildren | back to summary |
|---|---|
| public final <O extends TableRecord Implements org. Doc from org. Fetch child records of this record, given a foreign key.
This returns child records referencing this record through a given
foreign key, as if fetching from
A separate roundtrip is created by this operation. It is
often much better to include parent records using ordinary
| |
| getPrimaryKey | back to summary |
|---|---|
| pack-priv final UniqueKey Overrides org. Doc from org. Subclasses may override this
| |
| isExecuteWithOptimisticLocking | back to summary |
|---|---|
| private final boolean isExecuteWithOptimisticLocking() | |
| isExecuteWithOptimisticLockingIncludeUnversioned | back to summary |
|---|---|
| private final boolean isExecuteWithOptimisticLockingIncludeUnversioned() | |
| key | back to summary |
|---|---|
| public Record key() Implements org. Doc from org. A Record copy holding values for the
The returned record consists exactly of those fields as returned by the
table's primary key:
Generated subtypes may covariantly override this method to add more
record type information. For instance, they may return
| |
| lockingActive | back to summary |
|---|---|
| private final boolean lockingActive() | |
| lockValuePresent | back to summary |
|---|---|
| private final boolean lockValuePresent() | |
| merge | back to summary |
|---|---|
| public final int merge() Implements org. Doc from org. Store this record back to the database using a
Unlike
When optimistic locking is active for this record, then this operation
will execute
If you want to enforce statement execution, regardless if the values in
this record were changed, you can explicitly set the changed flags for
all values with
This is the same as calling
| |
| merge | back to summary |
|---|---|
| public int merge(Field<?>... storeFields) Implements org. Doc from org. Deprecated as a consequence of Store parts of this record to the database using a
| |
| merge | back to summary |
|---|---|
| public final int merge(Collection<? extends Field<?>> storeFields) Implements org. Doc from org. Store parts of this record to the database using a
| |
| refresh | back to summary |
|---|---|
| public final void refresh() Implements org. Doc from org. Refresh this record from the database. A successful refresh results in the following:
Refreshing can trigger any of the following actions:
This is the same as calling
| |
| refresh | back to summary |
|---|---|
| public final void refresh(final Field<?>... refreshFields) Implements org. Doc from org. Deprecated as a consequence of Refresh parts of this record from the database. A successful refresh results in the following:
Refreshing can trigger any of the following actions:
This is the same as calling
| |
| refresh | back to summary |
|---|---|
| public final void refresh(Collection<? extends Field<?>> refreshFields) Implements org. Doc from org. Refresh parts of this record from the database. A successful refresh results in the following:
Refreshing can trigger any of the following actions:
This is the same as calling
| |
| store | back to summary |
|---|---|
| public final int store() Implements org. Doc from org. Store this record back to the database.
Depending on the state of the primary key's value, an
Statement type
In either statement type, only those fields are inserted/updated, which
had been explicitly set by client code, in order to allow for
Automatic value generation
Use
Optimistic locking
If an
Statement examplesPossible statements are
Statement execution enforcement
If you want to control statement re-execution, regardless if the values
in this record were changed, you can explicitly set the changed flags for
all values with
This is the same as calling
| |
| store | back to summary |
|---|---|
| public final int store(final Field<?>... storeFields) Implements org. Doc from org. Deprecated as a consequence of Store parts of this record to the database.
| |
| store | back to summary |
|---|---|
| public final int store(Collection<? extends Field<?>> storeFields) Implements org. Doc from org. Store parts of this record to the database.
| |
| store0 | back to summary |
|---|---|
| private final int store0(Field<?>[] storeFields)
Deprecated as a consequence of | |
| storeMerge | back to summary |
|---|---|
| private final int storeMerge(final Field<?>[] storeFields, final TableField<R, ?>[] keys)
Deprecated as a consequence of | |
| storeMerge0 | back to summary |
|---|---|
| private final int storeMerge0(Field<?>[] storeFields, TableField<R, ?>[] keys)
Deprecated as a consequence of | |
| storeMergeOrUpdate0 | back to summary |
|---|---|
| private final <Q extends StoreQuery Deprecated as a consequence of
| |
| storeUpdate | back to summary |
|---|---|
| private final int storeUpdate(final Field<?>[] storeFields, final TableField<R, ?>[] keys)
Deprecated as a consequence of | |
| storeUpdate0 | back to summary |
|---|---|
| private final int storeUpdate0(Field<?>[] storeFields, TableField<R, ?>[] keys)
Deprecated as a consequence of | |
| update | back to summary |
|---|---|
| public final int update() Implements org. Doc from org. Store this record back to the database using an
This is the same as
If you want to enforce statement execution, regardless if the values in
this record were changed, you can explicitly set the changed flags for
all values with
This is the same as calling
| |
| update | back to summary |
|---|---|
| public int update(Field<?>... storeFields) Implements org. Doc from org. Deprecated as a consequence of Store parts of this record to the database using an
| |
| update | back to summary |
|---|---|
| public final int update(Collection<? extends Field<?>> storeFields) Implements org. Doc from org. Store parts of this record to the database using an
| |