Class EntityListener
- java.lang.Object
-
- org.hibernate.jpamodelgen.xml.jaxb.EntityListener
-
public class EntityListener extends Object
Defines an entity listener to be invoked at lifecycle events for the entities that list this listener.Java class for entity-listener complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="entity-listener"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="pre-persist" type="{https://jakarta.ee/xml/ns/persistence/orm}pre-persist" minOccurs="0"/> <element name="post-persist" type="{https://jakarta.ee/xml/ns/persistence/orm}post-persist" minOccurs="0"/> <element name="pre-remove" type="{https://jakarta.ee/xml/ns/persistence/orm}pre-remove" minOccurs="0"/> <element name="post-remove" type="{https://jakarta.ee/xml/ns/persistence/orm}post-remove" minOccurs="0"/> <element name="pre-update" type="{https://jakarta.ee/xml/ns/persistence/orm}pre-update" minOccurs="0"/> <element name="post-update" type="{https://jakarta.ee/xml/ns/persistence/orm}post-update" minOccurs="0"/> <element name="post-load" type="{https://jakarta.ee/xml/ns/persistence/orm}post-load" minOccurs="0"/> </sequence> <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringclazzprotected Stringdescriptionprotected PostLoadpostLoadprotected PostPersistpostPersistprotected PostRemovepostRemoveprotected PostUpdatepostUpdateprotected PrePersistprePersistprotected PreRemovepreRemoveprotected PreUpdatepreUpdate
-
Constructor Summary
Constructors Constructor Description EntityListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClazz()Gets the value of the clazz property.StringgetDescription()Gets the value of the description property.PostLoadgetPostLoad()Gets the value of the postLoad property.PostPersistgetPostPersist()Gets the value of the postPersist property.PostRemovegetPostRemove()Gets the value of the postRemove property.PostUpdategetPostUpdate()Gets the value of the postUpdate property.PrePersistgetPrePersist()Gets the value of the prePersist property.PreRemovegetPreRemove()Gets the value of the preRemove property.PreUpdategetPreUpdate()Gets the value of the preUpdate property.voidsetClazz(String value)Sets the value of the clazz property.voidsetDescription(String value)Sets the value of the description property.voidsetPostLoad(PostLoad value)Sets the value of the postLoad property.voidsetPostPersist(PostPersist value)Sets the value of the postPersist property.voidsetPostRemove(PostRemove value)Sets the value of the postRemove property.voidsetPostUpdate(PostUpdate value)Sets the value of the postUpdate property.voidsetPrePersist(PrePersist value)Sets the value of the prePersist property.voidsetPreRemove(PreRemove value)Sets the value of the preRemove property.voidsetPreUpdate(PreUpdate value)Sets the value of the preUpdate property.
-
-
-
Field Detail
-
description
protected String description
-
prePersist
protected PrePersist prePersist
-
postPersist
protected PostPersist postPersist
-
preRemove
protected PreRemove preRemove
-
postRemove
protected PostRemove postRemove
-
preUpdate
protected PreUpdate preUpdate
-
postUpdate
protected PostUpdate postUpdate
-
postLoad
protected PostLoad postLoad
-
clazz
protected String clazz
-
-
Method Detail
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getPrePersist
public PrePersist getPrePersist()
Gets the value of the prePersist property.- Returns:
- possible object is
PrePersist
-
setPrePersist
public void setPrePersist(PrePersist value)
Sets the value of the prePersist property.- Parameters:
value- allowed object isPrePersist
-
getPostPersist
public PostPersist getPostPersist()
Gets the value of the postPersist property.- Returns:
- possible object is
PostPersist
-
setPostPersist
public void setPostPersist(PostPersist value)
Sets the value of the postPersist property.- Parameters:
value- allowed object isPostPersist
-
getPreRemove
public PreRemove getPreRemove()
Gets the value of the preRemove property.- Returns:
- possible object is
PreRemove
-
setPreRemove
public void setPreRemove(PreRemove value)
Sets the value of the preRemove property.- Parameters:
value- allowed object isPreRemove
-
getPostRemove
public PostRemove getPostRemove()
Gets the value of the postRemove property.- Returns:
- possible object is
PostRemove
-
setPostRemove
public void setPostRemove(PostRemove value)
Sets the value of the postRemove property.- Parameters:
value- allowed object isPostRemove
-
getPreUpdate
public PreUpdate getPreUpdate()
Gets the value of the preUpdate property.- Returns:
- possible object is
PreUpdate
-
setPreUpdate
public void setPreUpdate(PreUpdate value)
Sets the value of the preUpdate property.- Parameters:
value- allowed object isPreUpdate
-
getPostUpdate
public PostUpdate getPostUpdate()
Gets the value of the postUpdate property.- Returns:
- possible object is
PostUpdate
-
setPostUpdate
public void setPostUpdate(PostUpdate value)
Sets the value of the postUpdate property.- Parameters:
value- allowed object isPostUpdate
-
getPostLoad
public PostLoad getPostLoad()
Gets the value of the postLoad property.- Returns:
- possible object is
PostLoad
-
setPostLoad
public void setPostLoad(PostLoad value)
Sets the value of the postLoad property.- Parameters:
value- allowed object isPostLoad
-
getClazz
public String getClazz()
Gets the value of the clazz property.- Returns:
- possible object is
String
-
-