-
- All Superinterfaces:
Scope
public interface RecordContext extends Scope
A context object forRecordmanipulation passed to registeredRecordListener's.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Record[]batchRecords()TheRecord(s) that are being manipulated in batch mode.@Nullable Exceptionexception()TheExceptionbeing thrown ornull.@NotNull Recordrecord()TheRecordthat is being manipulated.@NotNull RecordType<?>recordType()TheRecordTypeof therecord()that is being manipulated.@NotNull ExecuteTypetype()The type of database interaction that is being executed.
-
-
-
Method Detail
-
type
@NotNull @NotNull ExecuteType 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
@NotNull @NotNull Record record()
TheRecordthat is being manipulated.- Returns:
- The
Recordbeing manipulated. This is nevernull
-
recordType
@NotNull @NotNull RecordType<?> recordType()
TheRecordTypeof therecord()that is being manipulated.- Returns:
- The
RecordTypebeing manipulated. This is nevernull.
-
batchRecords
@NotNull @NotNull Record[] 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
-
-