Package org.apache.openejb.jee.jpa
Class MappedSuperclass
- java.lang.Object
-
- org.apache.openejb.jee.jpa.MappedSuperclass
-
public class MappedSuperclass extends Object implements Mapping, Keyable<String>
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{}Java class for mapped-superclass complex type.
The following schema fragment specifies the expected content contained within this class.
<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://java.sun.com/xml/ns/persistence/orm}id-class" minOccurs="0"/> <element name="exclude-default-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="exclude-superclass-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="entity-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}entity-listeners" minOccurs="0"/> <element name="pre-persist" type="{http://java.sun.com/xml/ns/persistence/orm}pre-persist" minOccurs="0"/> <element name="post-persist" type="{http://java.sun.com/xml/ns/persistence/orm}post-persist" minOccurs="0"/> <element name="pre-remove" type="{http://java.sun.com/xml/ns/persistence/orm}pre-remove" minOccurs="0"/> <element name="post-remove" type="{http://java.sun.com/xml/ns/persistence/orm}post-remove" minOccurs="0"/> <element name="pre-update" type="{http://java.sun.com/xml/ns/persistence/orm}pre-update" minOccurs="0"/> <element name="post-update" type="{http://java.sun.com/xml/ns/persistence/orm}post-update" minOccurs="0"/> <element name="post-load" type="{http://java.sun.com/xml/ns/persistence/orm}post-load" minOccurs="0"/> <element name="attributes" type="{http://java.sun.com/xml/ns/persistence/orm}attributes" minOccurs="0"/> </sequence> <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" /> <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTypeaccessprotected Attributesattributesprotected Stringclazzprotected Stringdescriptionprotected EntityListenersentityListenersprotected EmptyTypeexcludeDefaultListenersprotected EmptyTypeexcludeSuperclassListenersprotected IdClassidClassprotected BooleanmetadataCompleteprotected PostLoadpostLoadprotected PostPersistpostPersistprotected PostRemovepostRemoveprotected PostUpdatepostUpdateprotected PrePersistprePersistprotected PreRemovepreRemoveprotected PreUpdatepreUpdate
-
Constructor Summary
Constructors Constructor Description MappedSuperclass()MappedSuperclass(String clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(Field field)AccessTypegetAccess()Gets the value of the access property.AttributesgetAttributes()Gets the value of the attributes property.StringgetClazz()Gets the value of the clazz property.StringgetDescription()Gets the value of the description property.EntityListenersgetEntityListeners()Gets the value of the entityListeners property.IdClassgetIdClass()Gets the value of the idClass property.StringgetKey()Gets the immutable key for this object.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.booleanisExcludeDefaultListeners()Gets the value of the excludeDefaultListeners property.booleanisExcludeSuperclassListeners()Gets the value of the excludeSuperclassListeners property.BooleanisMetadataComplete()Gets the value of the metadataComplete property.voidsetAccess(AccessType value)Sets the value of the access property.voidsetAttributes(Attributes value)Sets the value of the attributes property.voidsetClazz(String value)Sets the value of the clazz property.voidsetDescription(String value)Sets the value of the description property.voidsetEntityListeners(EntityListeners value)Sets the value of the entityListeners property.voidsetExcludeDefaultListeners(boolean value)Sets the value of the excludeDefaultListeners property.voidsetExcludeSuperclassListeners(boolean value)Sets the value of the excludeSuperclassListeners property.voidsetIdClass(IdClass value)Sets the value of the idClass property.voidsetMetadataComplete(Boolean value)Sets the value of the metadataComplete 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
-
idClass
protected IdClass idClass
-
excludeDefaultListeners
protected EmptyType excludeDefaultListeners
-
excludeSuperclassListeners
protected EmptyType excludeSuperclassListeners
-
entityListeners
protected EntityListeners entityListeners
-
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
-
attributes
protected Attributes attributes
-
access
protected AccessType access
-
clazz
protected String clazz
-
metadataComplete
protected Boolean metadataComplete
-
-
Constructor Detail
-
MappedSuperclass
public MappedSuperclass()
-
MappedSuperclass
public MappedSuperclass(String clazz)
-
-
Method Detail
-
getDescription
public String getDescription()
Gets the value of the description property.- Specified by:
getDescriptionin interfaceMapping- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Specified by:
setDescriptionin interfaceMapping- Parameters:
value- allowed object isString
-
getIdClass
public IdClass getIdClass()
Gets the value of the idClass property.- Specified by:
getIdClassin interfaceMapping- Returns:
- possible object is
IdClass
-
setIdClass
public void setIdClass(IdClass value)
Sets the value of the idClass property.- Specified by:
setIdClassin interfaceMapping- Parameters:
value- allowed object isIdClass
-
isExcludeDefaultListeners
public boolean isExcludeDefaultListeners()
Gets the value of the excludeDefaultListeners property.- Specified by:
isExcludeDefaultListenersin interfaceMapping- Returns:
- possible object is
boolean
-
setExcludeDefaultListeners
public void setExcludeDefaultListeners(boolean value)
Sets the value of the excludeDefaultListeners property.- Specified by:
setExcludeDefaultListenersin interfaceMapping- Parameters:
value- allowed object isboolean
-
isExcludeSuperclassListeners
public boolean isExcludeSuperclassListeners()
Gets the value of the excludeSuperclassListeners property.- Specified by:
isExcludeSuperclassListenersin interfaceMapping- Returns:
- possible object is
boolean
-
setExcludeSuperclassListeners
public void setExcludeSuperclassListeners(boolean value)
Sets the value of the excludeSuperclassListeners property.- Specified by:
setExcludeSuperclassListenersin interfaceMapping- Parameters:
value- allowed object isboolean
-
getEntityListeners
public EntityListeners getEntityListeners()
Gets the value of the entityListeners property.- Specified by:
getEntityListenersin interfaceMapping- Returns:
- possible object is
EntityListeners
-
setEntityListeners
public void setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.- Specified by:
setEntityListenersin interfaceMapping- Parameters:
value- allowed object isEntityListeners
-
getPrePersist
public PrePersist getPrePersist()
Gets the value of the prePersist property.- Specified by:
getPrePersistin interfaceMapping- Returns:
- possible object is
PrePersist
-
setPrePersist
public void setPrePersist(PrePersist value)
Sets the value of the prePersist property.- Specified by:
setPrePersistin interfaceMapping- Parameters:
value- allowed object isPrePersist
-
getPostPersist
public PostPersist getPostPersist()
Gets the value of the postPersist property.- Specified by:
getPostPersistin interfaceMapping- Returns:
- possible object is
PostPersist
-
setPostPersist
public void setPostPersist(PostPersist value)
Sets the value of the postPersist property.- Specified by:
setPostPersistin interfaceMapping- Parameters:
value- allowed object isPostPersist
-
getPreRemove
public PreRemove getPreRemove()
Gets the value of the preRemove property.- Specified by:
getPreRemovein interfaceMapping- Returns:
- possible object is
PreRemove
-
setPreRemove
public void setPreRemove(PreRemove value)
Sets the value of the preRemove property.- Specified by:
setPreRemovein interfaceMapping- Parameters:
value- allowed object isPreRemove
-
getPostRemove
public PostRemove getPostRemove()
Gets the value of the postRemove property.- Specified by:
getPostRemovein interfaceMapping- Returns:
- possible object is
PostRemove
-
setPostRemove
public void setPostRemove(PostRemove value)
Sets the value of the postRemove property.- Specified by:
setPostRemovein interfaceMapping- Parameters:
value- allowed object isPostRemove
-
getPreUpdate
public PreUpdate getPreUpdate()
Gets the value of the preUpdate property.- Specified by:
getPreUpdatein interfaceMapping- Returns:
- possible object is
PreUpdate
-
setPreUpdate
public void setPreUpdate(PreUpdate value)
Sets the value of the preUpdate property.- Specified by:
setPreUpdatein interfaceMapping- Parameters:
value- allowed object isPreUpdate
-
getPostUpdate
public PostUpdate getPostUpdate()
Gets the value of the postUpdate property.- Specified by:
getPostUpdatein interfaceMapping- Returns:
- possible object is
PostUpdate
-
setPostUpdate
public void setPostUpdate(PostUpdate value)
Sets the value of the postUpdate property.- Specified by:
setPostUpdatein interfaceMapping- Parameters:
value- allowed object isPostUpdate
-
getPostLoad
public PostLoad getPostLoad()
Gets the value of the postLoad property.- Specified by:
getPostLoadin interfaceMapping- Returns:
- possible object is
PostLoad
-
setPostLoad
public void setPostLoad(PostLoad value)
Sets the value of the postLoad property.- Specified by:
setPostLoadin interfaceMapping- Parameters:
value- allowed object isPostLoad
-
getAttributes
public Attributes getAttributes()
Gets the value of the attributes property.- Specified by:
getAttributesin interfaceMapping- Returns:
- possible object is
Attributes
-
setAttributes
public void setAttributes(Attributes value)
Sets the value of the attributes property.- Specified by:
setAttributesin interfaceMapping- Parameters:
value- allowed object isAttributes
-
getAccess
public AccessType getAccess()
Gets the value of the access property.- Specified by:
getAccessin interfaceMapping- Returns:
- possible object is
AccessType
-
setAccess
public void setAccess(AccessType value)
Sets the value of the access property.- Specified by:
setAccessin interfaceMapping- Parameters:
value- allowed object isAccessType
-
getClazz
public String getClazz()
Gets the value of the clazz property.
-
setClazz
public void setClazz(String value)
Sets the value of the clazz property.
-
isMetadataComplete
public Boolean isMetadataComplete()
Gets the value of the metadataComplete property.- Specified by:
isMetadataCompletein interfaceMapping- Returns:
- possible object is
Boolean
-
setMetadataComplete
public void setMetadataComplete(Boolean value)
Sets the value of the metadataComplete property.- Specified by:
setMetadataCompletein interfaceMapping- Parameters:
value- allowed object isBoolean
-
-