T
- the type of the object that was createdpublic class ObjectCreate<T> extends Change<T>
This type of change notification is never generated by JSimpleDB itself; object creation notifications are instead
delivered to @OnCreate
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 |
---|
ObjectCreate(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 ObjectCreate(T jobj)
jobj
- Java model object that was createdIllegalArgumentException
- 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.