Package io.permazen.change
Class ObjectCreate<T>
java.lang.Object
io.permazen.change.Change<T>
io.permazen.change.ObjectCreate<T>
- Type Parameters:
T
- the type of the object that was created
Change notification that indicates a new object has been created.
This type of change notification is never generated by Permazen 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(PermazenTransaction jtx, PermazenObject jobj) Apply this change to the given object in the given transaction.toString()
<R> R
visit
(ChangeSwitch<R> target) Apply visitor pattern.
-
Constructor Details
-
ObjectCreate
Constructor.- Parameters:
jobj
- Java model object that was created- Throws:
IllegalArgumentException
- ifjobj
is null
-
-
Method Details