- All Superinterfaces:
Scope
A context object for
Record manipulation passed to registered
RecordListener's.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull Record[]TheRecord(s) that are being manipulated in batch mode.@Nullable ExceptionTheExceptionbeing thrown ornull.@NotNull Recordrecord()TheRecordthat is being manipulated.@NotNull RecordType<?>TheRecordTypeof therecord()that is being manipulated.@NotNull ExecuteTypetype()The type of database interaction that is being executed.
-
Method Details
-
type
The type of database interaction that is being executed.Unlike
ExecuteContext.type(), this can only result in any of these:ExecuteType.BATCHwhen callingbatchStore(),batchInsert(),batchUpdate(),batchDelete().ExecuteType.READwhen callingrefresh()ExecuteType.WRITEwhen callingstore(),insert(),update(),delete().
- See Also:
ExecuteType
-
record
TheRecordthat is being manipulated.- Returns:
- The
Recordbeing manipulated. This is nevernull
-
recordType
TheRecordTypeof therecord()that is being manipulated.- Returns:
- The
RecordTypebeing manipulated. This is nevernull.
-
batchRecords
TheRecord(s) that are being manipulated in batch mode.If a single
Recordis 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
TheExceptionbeing thrown ornull.
-