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()
UpdateEvent
getType
in interface UpdateEvent
public UpdateEventOperation getOperation()
UpdateEvent
getOperation
in interface UpdateEvent
public Surrogate getSurrogate()
UpdateEvent
getSurrogate
in interface UpdateEvent
public String getComment()
UpdateEvent
getComment
in interface UpdateEvent
public DBObject getSource()
UpdateEvent
Surrogate.getObject()
method, which returns either a valid source of an
SurrogateImpl.InvalidDBObject
object.getSource
in interface UpdateEvent
public DBObject getSourceOrNull()
UpdateEvent
getSourceOrNull
in interface UpdateEvent
Copyright © 2017. All rights reserved.