public interface RecordContext extends Scope
Record
manipulation passed to registered
RecordListener
's.Modifier and Type | Method and Description |
---|---|
Record[] |
batchRecords()
The
Record (s) that are being manipulated in batch mode. |
Exception |
exception()
The
Exception being thrown or null . |
Record |
record()
The
Record that is being manipulated. |
RecordType<?> |
recordType()
The
RecordType of the record() that is being
manipulated. |
ExecuteType |
type()
The type of database interaction that is being executed.
|
ExecuteType type()
Unlike ExecuteContext.type()
, this can only result in any of
these:
ExecuteType.BATCH
when calling
batchStore()
,
batchInsert()
,
batchUpdate()
,
batchDelete()
.ExecuteType.READ
when calling
refresh()
ExecuteType.WRITE
when calling
store()
, insert()
, update()
,
delete()
.ExecuteType
Record record()
Record
that is being manipulated.Record
being manipulated. This is never
null
RecordType<?> recordType()
RecordType
of the record()
that is being
manipulated.RecordType
being manipulated. This is never
null
.Record[] batchRecords()
Record
(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 length 1
, containing that
Record
.
Record
(s) being manipulated. This is never
null
Copyright © 2019. All rights reserved.