Package io.jmix.samples.rest.listeners
Class CarDetachListener
java.lang.Object
io.jmix.samples.rest.listeners.CarDetachListener
- All Implemented Interfaces:
- BeforeAttachEntityListener<Car>,- BeforeDetachEntityListener<Car>
@Component("jmix_CarDetachListener")
public class CarDetachListener
extends Object
implements BeforeDetachEntityListener<Car>, BeforeAttachEntityListener<Car>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidonBeforeAttach(Car entity) Executes before the object is attached to an EntityManager on merge operation.voidonBeforeDetach(Car entity) Executes before the object is detached from an EntityManager on transaction commit.
- 
Constructor Details- 
CarDetachListenerpublic CarDetachListener()
 
- 
- 
Method Details- 
onBeforeDetachDescription copied from interface:BeforeDetachEntityListenerExecutes before the object is detached from an EntityManager on transaction commit.- Specified by:
- onBeforeDetachin interface- BeforeDetachEntityListener<Car>
- Parameters:
- entity- entity instance in managed state
 
- 
onBeforeAttachDescription copied from interface:BeforeAttachEntityListenerExecutes before the object is attached to an EntityManager on merge operation.- Specified by:
- onBeforeAttachin interface- BeforeAttachEntityListener<Car>
- Parameters:
- entity- detached entity
 
 
-