T
- the type of the object that was deletedpublic class ObjectDelete<T> extends Change<T>
This type of change notification is never generated by JSimpleDB itself; object deletion notifications are instead
delivered to @OnDelete
methods, which do not take any parameters.
This class exists as a convenience for application code that may want to unify handling of
object change and object lifecycle events.
Constructor and Description |
---|
ObjectDelete(T jobj)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(JTransaction jtx,
JObject jobj)
Apply this change to the given object in the given transaction.
|
String |
toString() |
<R> R |
visit(ChangeSwitch<R> target)
Apply visitor pattern.
|
public ObjectDelete(T jobj)
jobj
- Java model object that was deletedIllegalArgumentException
- if jobj
is nullpublic <R> R visit(ChangeSwitch<R> target)
Change
target
corresponding to this instance's type.public void apply(JTransaction jtx, JObject jobj)
Change
Copyright © 2016. All rights reserved.