Package lumis.portal.event.persistence
Class BasePortalEntity
- java.lang.Object
-
- lumis.portal.event.persistence.BasePortalEntity
-
@StableMinor(version="16.0", sinceVersion="4.2") public abstract class BasePortalEntity extends java.lang.Object
Base class for content JPA entities, that includes event handling that generates portal events.The use of this class as parent is an alternative of using
PortalEventEntityListener
. This class is more suited when the entity must control the order of execution of its own event handling code and the portal event notification.- Since:
- 4.2.0
- Version:
- $Revision: 25808 $ $Date: 2023-07-04 15:20:55 -0300 (Tue, 04 Jul 2023) $
-
-
Constructor Summary
Constructors Constructor Description BasePortalEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onPostLoad()
protected void
onPostPersist()
protected void
onPostRemove()
protected void
onPostUpdate()
protected void
onPrePersist()
protected void
onPreRemove()
protected void
onPreUpdate()
-
-
-
Method Detail
-
onPreUpdate
protected void onPreUpdate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
onPostUpdate
protected void onPostUpdate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
onPrePersist
protected void onPrePersist() throws java.lang.Exception
- Throws:
java.lang.Exception
-
onPostPersist
protected void onPostPersist() throws java.lang.Exception
- Throws:
java.lang.Exception
-
onPreRemove
protected void onPreRemove() throws java.lang.Exception
- Throws:
java.lang.Exception
-
onPostRemove
protected void onPostRemove() throws java.lang.Exception
- Throws:
java.lang.Exception
-
onPostLoad
protected void onPostLoad() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-