Class MappedSuperclass

  • All Implemented Interfaces:
    Mapping, Keyable<String>

    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>
     
    • 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:
        getDescription in interface Mapping
        Returns:
        possible object is String
      • setDescription

        public void setDescription​(String value)
        Sets the value of the description property.
        Specified by:
        setDescription in interface Mapping
        Parameters:
        value - allowed object is String
      • getIdClass

        public IdClass getIdClass()
        Gets the value of the idClass property.
        Specified by:
        getIdClass in interface Mapping
        Returns:
        possible object is IdClass
      • setIdClass

        public void setIdClass​(IdClass value)
        Sets the value of the idClass property.
        Specified by:
        setIdClass in interface Mapping
        Parameters:
        value - allowed object is IdClass
      • isExcludeDefaultListeners

        public boolean isExcludeDefaultListeners()
        Gets the value of the excludeDefaultListeners property.
        Specified by:
        isExcludeDefaultListeners in interface Mapping
        Returns:
        possible object is boolean
      • setExcludeDefaultListeners

        public void setExcludeDefaultListeners​(boolean value)
        Sets the value of the excludeDefaultListeners property.
        Specified by:
        setExcludeDefaultListeners in interface Mapping
        Parameters:
        value - allowed object is boolean
      • isExcludeSuperclassListeners

        public boolean isExcludeSuperclassListeners()
        Gets the value of the excludeSuperclassListeners property.
        Specified by:
        isExcludeSuperclassListeners in interface Mapping
        Returns:
        possible object is boolean
      • setExcludeSuperclassListeners

        public void setExcludeSuperclassListeners​(boolean value)
        Sets the value of the excludeSuperclassListeners property.
        Specified by:
        setExcludeSuperclassListeners in interface Mapping
        Parameters:
        value - allowed object is boolean
      • setPrePersist

        public void setPrePersist​(PrePersist value)
        Sets the value of the prePersist property.
        Specified by:
        setPrePersist in interface Mapping
        Parameters:
        value - allowed object is PrePersist
      • setPreRemove

        public void setPreRemove​(PreRemove value)
        Sets the value of the preRemove property.
        Specified by:
        setPreRemove in interface Mapping
        Parameters:
        value - allowed object is PreRemove
      • setPostRemove

        public void setPostRemove​(PostRemove value)
        Sets the value of the postRemove property.
        Specified by:
        setPostRemove in interface Mapping
        Parameters:
        value - allowed object is PostRemove
      • setPreUpdate

        public void setPreUpdate​(PreUpdate value)
        Sets the value of the preUpdate property.
        Specified by:
        setPreUpdate in interface Mapping
        Parameters:
        value - allowed object is PreUpdate
      • setPostUpdate

        public void setPostUpdate​(PostUpdate value)
        Sets the value of the postUpdate property.
        Specified by:
        setPostUpdate in interface Mapping
        Parameters:
        value - allowed object is PostUpdate
      • getPostLoad

        public PostLoad getPostLoad()
        Gets the value of the postLoad property.
        Specified by:
        getPostLoad in interface Mapping
        Returns:
        possible object is PostLoad
      • setPostLoad

        public void setPostLoad​(PostLoad value)
        Sets the value of the postLoad property.
        Specified by:
        setPostLoad in interface Mapping
        Parameters:
        value - allowed object is PostLoad
      • setAttributes

        public void setAttributes​(Attributes value)
        Sets the value of the attributes property.
        Specified by:
        setAttributes in interface Mapping
        Parameters:
        value - allowed object is Attributes
      • setAccess

        public void setAccess​(AccessType value)
        Sets the value of the access property.
        Specified by:
        setAccess in interface Mapping
        Parameters:
        value - allowed object is AccessType
      • getClazz

        public String getClazz()
        Gets the value of the clazz property.
        Specified by:
        getClazz in interface Mapping
        Returns:
        possible object is String
      • setClazz

        public void setClazz​(String value)
        Sets the value of the clazz property.
        Specified by:
        setClazz in interface Mapping
        Parameters:
        value - allowed object is String
      • isMetadataComplete

        public Boolean isMetadataComplete()
        Gets the value of the metadataComplete property.
        Specified by:
        isMetadataComplete in interface Mapping
        Returns:
        possible object is Boolean
      • setMetadataComplete

        public void setMetadataComplete​(Boolean value)
        Sets the value of the metadataComplete property.
        Specified by:
        setMetadataComplete in interface Mapping
        Parameters:
        value - allowed object is Boolean
      • getKey

        public String getKey()
        Description copied from interface: Keyable
        Gets the immutable key for this object.
        Specified by:
        getKey in interface Keyable<String>
        Returns:
        gets the immutable key for this object