Class JaxbEntityListener
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.spi.JaxbEntityListener
-
- All Implemented Interfaces:
java.io.Serializable,LifecycleCallbackContainer
public class JaxbEntityListener extends java.lang.Object implements java.io.Serializable, LifecycleCallbackContainer
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="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-persist" minOccurs="0"/> <element name="post-persist" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-persist" minOccurs="0"/> <element name="pre-remove" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-remove" minOccurs="0"/> <element name="post-remove" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-remove" minOccurs="0"/> <element name="pre-update" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}pre-update" minOccurs="0"/> <element name="post-update" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}post-update" minOccurs="0"/> <element name="post-load" type="{http://xmlns.jcp.org/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>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringclazzprotected java.lang.Stringdescriptionprotected JaxbPostLoadpostLoadprotected JaxbPostPersistpostPersistprotected JaxbPostRemovepostRemoveprotected JaxbPostUpdatepostUpdateprotected JaxbPrePersistprePersistprotected JaxbPreRemovepreRemoveprotected JaxbPreUpdatepreUpdate
-
Constructor Summary
Constructors Constructor Description JaxbEntityListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClazz()Gets the value of the clazz property.java.lang.StringgetDescription()Gets the value of the description property.JaxbPostLoadgetPostLoad()Gets the value of the postLoad property.JaxbPostPersistgetPostPersist()Gets the value of the postPersist property.JaxbPostRemovegetPostRemove()Gets the value of the postRemove property.JaxbPostUpdategetPostUpdate()Gets the value of the postUpdate property.JaxbPrePersistgetPrePersist()Gets the value of the prePersist property.JaxbPreRemovegetPreRemove()Gets the value of the preRemove property.JaxbPreUpdategetPreUpdate()Gets the value of the preUpdate property.voidsetClazz(java.lang.String value)Sets the value of the clazz property.voidsetDescription(java.lang.String value)Sets the value of the description property.voidsetPostLoad(JaxbPostLoad value)Sets the value of the postLoad property.voidsetPostPersist(JaxbPostPersist value)Sets the value of the postPersist property.voidsetPostRemove(JaxbPostRemove value)Sets the value of the postRemove property.voidsetPostUpdate(JaxbPostUpdate value)Sets the value of the postUpdate property.voidsetPrePersist(JaxbPrePersist value)Sets the value of the prePersist property.voidsetPreRemove(JaxbPreRemove value)Sets the value of the preRemove property.voidsetPreUpdate(JaxbPreUpdate value)Sets the value of the preUpdate property.
-
-
-
Field Detail
-
description
protected java.lang.String description
-
prePersist
protected JaxbPrePersist prePersist
-
postPersist
protected JaxbPostPersist postPersist
-
preRemove
protected JaxbPreRemove preRemove
-
postRemove
protected JaxbPostRemove postRemove
-
preUpdate
protected JaxbPreUpdate preUpdate
-
postUpdate
protected JaxbPostUpdate postUpdate
-
postLoad
protected JaxbPostLoad postLoad
-
clazz
protected java.lang.String clazz
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Gets the value of the description property.- Specified by:
getDescriptionin interfaceLifecycleCallbackContainer- Returns:
- possible object is
String
-
setDescription
public void setDescription(java.lang.String value)
Sets the value of the description property.- Specified by:
setDescriptionin interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isString
-
getPrePersist
public JaxbPrePersist getPrePersist()
Gets the value of the prePersist property.- Specified by:
getPrePersistin interfaceLifecycleCallbackContainer- Returns:
- possible object is
JaxbPrePersist
-
setPrePersist
public void setPrePersist(JaxbPrePersist value)
Sets the value of the prePersist property.- Specified by:
setPrePersistin interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isJaxbPrePersist
-
getPostPersist
public JaxbPostPersist getPostPersist()
Gets the value of the postPersist property.- Specified by:
getPostPersistin interfaceLifecycleCallbackContainer- Returns:
- possible object is
JaxbPostPersist
-
setPostPersist
public void setPostPersist(JaxbPostPersist value)
Sets the value of the postPersist property.- Specified by:
setPostPersistin interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isJaxbPostPersist
-
getPreRemove
public JaxbPreRemove getPreRemove()
Gets the value of the preRemove property.- Specified by:
getPreRemovein interfaceLifecycleCallbackContainer- Returns:
- possible object is
JaxbPreRemove
-
setPreRemove
public void setPreRemove(JaxbPreRemove value)
Sets the value of the preRemove property.- Specified by:
setPreRemovein interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isJaxbPreRemove
-
getPostRemove
public JaxbPostRemove getPostRemove()
Gets the value of the postRemove property.- Specified by:
getPostRemovein interfaceLifecycleCallbackContainer- Returns:
- possible object is
JaxbPostRemove
-
setPostRemove
public void setPostRemove(JaxbPostRemove value)
Sets the value of the postRemove property.- Specified by:
setPostRemovein interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isJaxbPostRemove
-
getPreUpdate
public JaxbPreUpdate getPreUpdate()
Gets the value of the preUpdate property.- Specified by:
getPreUpdatein interfaceLifecycleCallbackContainer- Returns:
- possible object is
JaxbPreUpdate
-
setPreUpdate
public void setPreUpdate(JaxbPreUpdate value)
Sets the value of the preUpdate property.- Specified by:
setPreUpdatein interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isJaxbPreUpdate
-
getPostUpdate
public JaxbPostUpdate getPostUpdate()
Gets the value of the postUpdate property.- Specified by:
getPostUpdatein interfaceLifecycleCallbackContainer- Returns:
- possible object is
JaxbPostUpdate
-
setPostUpdate
public void setPostUpdate(JaxbPostUpdate value)
Sets the value of the postUpdate property.- Specified by:
setPostUpdatein interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isJaxbPostUpdate
-
getPostLoad
public JaxbPostLoad getPostLoad()
Gets the value of the postLoad property.- Specified by:
getPostLoadin interfaceLifecycleCallbackContainer- Returns:
- possible object is
JaxbPostLoad
-
setPostLoad
public void setPostLoad(JaxbPostLoad value)
Sets the value of the postLoad property.- Specified by:
setPostLoadin interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isJaxbPostLoad
-
getClazz
public java.lang.String getClazz()
Gets the value of the clazz property.- Specified by:
getClazzin interfaceLifecycleCallbackContainer- Returns:
- possible object is
String
-
setClazz
public void setClazz(java.lang.String value)
Sets the value of the clazz property.- Specified by:
setClazzin interfaceLifecycleCallbackContainer- Parameters:
value- allowed object isString
-
-