public class UpdateEventImpl extends Object implements UpdateEvent
UpdateEvent.| Constructor and Description |
|---|
UpdateEventImpl(UpdateEventOperation op,
DBObject source)
Construct an
UpdateEvent. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getComment()
Return a comment giving informal details on the operation reported in the event.
|
UpdateEventOperation |
getOperation()
Return a constant identifying the operation which generated the event.
|
DBObject |
getSource()
Return the database object reported by the event.
|
DBObject |
getSourceOrNull()
Return the database object for which the event was reported.
|
Surrogate |
getSurrogate()
Return the surrogate of the database object source of the event.
|
DBObjectType |
getType()
Return the type of the database object source of the event.
|
int |
hashCode() |
String |
toString() |
UpdateEvent |
withComment(String comment)
Set a comment.
|
public UpdateEventImpl(UpdateEventOperation op, DBObject source)
UpdateEvent.op - an operationsource - a database objectpublic UpdateEvent withComment(String comment)
comment - a stringpublic DBObjectType getType()
UpdateEventgetType in interface UpdateEventpublic UpdateEventOperation getOperation()
UpdateEventgetOperation in interface UpdateEventpublic Surrogate getSurrogate()
UpdateEventgetSurrogate in interface UpdateEventpublic String getComment()
UpdateEventgetComment in interface UpdateEventpublic DBObject getSource()
UpdateEventSurrogate.getObject() method, which returns either a valid source of an
SurrogateImpl.InvalidDBObject object.getSource in interface UpdateEventpublic DBObject getSourceOrNull()
UpdateEventgetSourceOrNull in interface UpdateEventCopyright © 2017. All rights reserved.