@Target(TYPE) @Retention(RUNTIME)
public @interface MappedSuperclass{}
public class MappedSuperclass extends Object
Defines the settings and mappings for a mapped superclass. Is allowed to be sparsely populated and used in conjunction with the annotations. Alternatively, the metadata-complete attribute can be used to indicate that no annotations are to be processed If this is the case then the defaulting rules will be recursively applied.
@Target(TYPE) @Retention(RUNTIME)
public @interface MappedSuperclass{}
<p>Java class for mapped-superclass complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="mapped-superclass"> <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="id-class" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}id-class" minOccurs="0"/> <element name="exclude-default-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="exclude-superclass-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="entity-listeners" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}entity-listeners" 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"/> <element name="attributes" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}attributes" minOccurs="0"/> </sequence> <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="access" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}access-type" /> <attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected AccessType |
access |
protected Attributes |
attributes |
protected String |
clazz |
protected String |
description |
protected EntityListeners |
entityListeners |
protected EmptyType |
excludeDefaultListeners |
protected EmptyType |
excludeSuperclassListeners |
protected IdClass |
idClass |
protected Boolean |
metadataComplete |
protected PostLoad |
postLoad |
protected PostPersist |
postPersist |
protected PostRemove |
postRemove |
protected PostUpdate |
postUpdate |
protected PrePersist |
prePersist |
protected PreRemove |
preRemove |
protected PreUpdate |
preUpdate |
| Constructor and Description |
|---|
MappedSuperclass() |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
Attributes |
getAttributes()
Gets the value of the attributes property.
|
String |
getClazz()
Gets the value of the clazz property.
|
String |
getDescription()
Gets the value of the description property.
|
EntityListeners |
getEntityListeners()
Gets the value of the entityListeners property.
|
EmptyType |
getExcludeDefaultListeners()
Gets the value of the excludeDefaultListeners property.
|
EmptyType |
getExcludeSuperclassListeners()
Gets the value of the excludeSuperclassListeners property.
|
IdClass |
getIdClass()
Gets the value of the idClass property.
|
PostLoad |
getPostLoad()
Gets the value of the postLoad property.
|
PostPersist |
getPostPersist()
Gets the value of the postPersist property.
|
PostRemove |
getPostRemove()
Gets the value of the postRemove property.
|
PostUpdate |
getPostUpdate()
Gets the value of the postUpdate property.
|
PrePersist |
getPrePersist()
Gets the value of the prePersist property.
|
PreRemove |
getPreRemove()
Gets the value of the preRemove property.
|
PreUpdate |
getPreUpdate()
Gets the value of the preUpdate property.
|
Boolean |
isMetadataComplete()
Gets the value of the metadataComplete property.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setAttributes(Attributes value)
Sets the value of the attributes property.
|
void |
setClazz(String value)
Sets the value of the clazz property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.
|
void |
setExcludeDefaultListeners(EmptyType value)
Sets the value of the excludeDefaultListeners property.
|
void |
setExcludeSuperclassListeners(EmptyType value)
Sets the value of the excludeSuperclassListeners property.
|
void |
setIdClass(IdClass value)
Sets the value of the idClass property.
|
void |
setMetadataComplete(Boolean value)
Sets the value of the metadataComplete property.
|
void |
setPostLoad(PostLoad value)
Sets the value of the postLoad property.
|
void |
setPostPersist(PostPersist value)
Sets the value of the postPersist property.
|
void |
setPostRemove(PostRemove value)
Sets the value of the postRemove property.
|
void |
setPostUpdate(PostUpdate value)
Sets the value of the postUpdate property.
|
void |
setPrePersist(PrePersist value)
Sets the value of the prePersist property.
|
void |
setPreRemove(PreRemove value)
Sets the value of the preRemove property.
|
void |
setPreUpdate(PreUpdate value)
Sets the value of the preUpdate property.
|
protected String description
protected IdClass idClass
protected EmptyType excludeDefaultListeners
protected EmptyType excludeSuperclassListeners
protected EntityListeners entityListeners
protected PrePersist prePersist
protected PostPersist postPersist
protected PreRemove preRemove
protected PostRemove postRemove
protected PreUpdate preUpdate
protected PostUpdate postUpdate
protected PostLoad postLoad
protected Attributes attributes
protected String clazz
protected AccessType access
protected Boolean metadataComplete
public String getDescription()
Gets the value of the description property.
Stringpublic void setDescription(String value)
Sets the value of the description property.
value - allowed object is
Stringpublic IdClass getIdClass()
Gets the value of the idClass property.
IdClasspublic void setIdClass(IdClass value)
Sets the value of the idClass property.
value - allowed object is
IdClasspublic EmptyType getExcludeDefaultListeners()
Gets the value of the excludeDefaultListeners property.
EmptyTypepublic void setExcludeDefaultListeners(EmptyType value)
Sets the value of the excludeDefaultListeners property.
value - allowed object is
EmptyTypepublic EmptyType getExcludeSuperclassListeners()
Gets the value of the excludeSuperclassListeners property.
EmptyTypepublic void setExcludeSuperclassListeners(EmptyType value)
Sets the value of the excludeSuperclassListeners property.
value - allowed object is
EmptyTypepublic EntityListeners getEntityListeners()
Gets the value of the entityListeners property.
EntityListenerspublic void setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.
value - allowed object is
EntityListenerspublic PrePersist getPrePersist()
Gets the value of the prePersist property.
PrePersistpublic void setPrePersist(PrePersist value)
Sets the value of the prePersist property.
value - allowed object is
PrePersistpublic PostPersist getPostPersist()
Gets the value of the postPersist property.
PostPersistpublic void setPostPersist(PostPersist value)
Sets the value of the postPersist property.
value - allowed object is
PostPersistpublic PreRemove getPreRemove()
Gets the value of the preRemove property.
PreRemovepublic void setPreRemove(PreRemove value)
Sets the value of the preRemove property.
value - allowed object is
PreRemovepublic PostRemove getPostRemove()
Gets the value of the postRemove property.
PostRemovepublic void setPostRemove(PostRemove value)
Sets the value of the postRemove property.
value - allowed object is
PostRemovepublic PreUpdate getPreUpdate()
Gets the value of the preUpdate property.
PreUpdatepublic void setPreUpdate(PreUpdate value)
Sets the value of the preUpdate property.
value - allowed object is
PreUpdatepublic PostUpdate getPostUpdate()
Gets the value of the postUpdate property.
PostUpdatepublic void setPostUpdate(PostUpdate value)
Sets the value of the postUpdate property.
value - allowed object is
PostUpdatepublic PostLoad getPostLoad()
Gets the value of the postLoad property.
PostLoadpublic void setPostLoad(PostLoad value)
Sets the value of the postLoad property.
value - allowed object is
PostLoadpublic Attributes getAttributes()
Gets the value of the attributes property.
Attributespublic void setAttributes(Attributes value)
Sets the value of the attributes property.
value - allowed object is
Attributespublic String getClazz()
Gets the value of the clazz property.
Stringpublic void setClazz(String value)
Sets the value of the clazz property.
value - allowed object is
Stringpublic AccessType getAccess()
Gets the value of the access property.
AccessTypepublic void setAccess(AccessType value)
Sets the value of the access property.
value - allowed object is
AccessTypepublic Boolean isMetadataComplete()
Gets the value of the metadataComplete property.
BooleanCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.