- All Superinterfaces:
Scope
A context object for
Record
manipulation passed to registered
RecordListener
's.
This type is a Scope
with independent lifecycle and its own
Scope.data()
map.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull Record @NotNull []
TheRecord
(s) that are being manipulated in batch mode.@Nullable Exception
TheException
being thrown ornull
.@NotNull Record
record()
TheRecord
that is being manipulated.@NotNull RecordType<?>
TheRecordType
of therecord()
that is being manipulated.@NotNull ExecuteType
type()
The type of database interaction that is being executed.Methods inherited from interface org.jooq.Scope
configuration, creationTime, data, data, data, dialect, dsl, family, settings
-
Method Details
-
type
The type of database interaction that is being executed.Unlike
ExecuteContext.type()
, this can only result in any of these:ExecuteType.BATCH
when callingbatchStore()
,batchInsert()
,batchUpdate()
,batchDelete()
.ExecuteType.READ
when callingrefresh()
ExecuteType.WRITE
when callingstore()
,insert()
,update()
,delete()
.
- See Also:
-
record
TheRecord
that is being manipulated.- Returns:
- The
Record
being manipulated. This is nevernull
-
recordType
TheRecordType
of therecord()
that is being manipulated.- Returns:
- The
RecordType
being manipulated. This is nevernull
.
-
batchRecords
TheRecord
(s) that are being manipulated in batch mode.If a single
Record
is being manipulated in non-batch mode, this will return an array of length1
, containing thatRecord
.- Returns:
- The
Record
(s) being manipulated. This is nevernull
-
exception
TheException
being thrown ornull
.
-