Jakarta Persistence (JPA) Interface
jakarta.persistence.metamodel.MappedSuperclassType<X>
- Type Parameters:
<X>- The represented mapped superclass type
- Super Interfaces:
IdentifiableType<X>,ManagedType<X>,Type<X>
An instance of the type
MappedSuperclassType represents a mapped superclass type. - Since:
- Jakarta Persistence (JPA) 2.0
Public Instance Methods
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- attribute with given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Returns:
- attributes of the managed type.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- CollectionAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- CollectionAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- attribute with given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no declared attributes.
Inherited from
ManagedType<X>- Returns:
- declared attributes of the managed type.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- declared
CollectionAttributeof the given name and element type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- declared CollectionAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
IdentifiableType<X>- Parameters:
type- the type of the represented declared id attribute
- Returns:
- declared id attribute.
- Throws:
- if id attribute of the given type is not declared in the identifiable type or if the identifiable type has an id class.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- declared ListAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- declared ListAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributekeyType- the key type of the represented attributevalueType- the value type of the represented attribute
- Returns:
- declared MapAttribute of the given name and key and value types.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- declared MapAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no declared multivalued attributes.
Inherited from
ManagedType<X>- Returns:
- declared Collection-, Set-, List-, and Map-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- declared SetAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- declared SetAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributetype- the type of the represented attribute
- Returns:
- declared single-valued attribute of the given name and type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- declared single-valued attribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no declared single-valued attributes.
Inherited from
ManagedType<X>- Returns:
- declared single-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
IdentifiableType<X>- Parameters:
type- the type of the represented declared version attribute
- Returns:
- declared version attribute.
- Throws:
- if version attribute of the type is not declared in the identifiable type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
IdentifiableType<X>- Parameters:
type- the type of the represented id attribute
- Returns:
- id attribute.
- Throws:
- if id attribute of the given type is not present in the identifiable type or if the identifiable type has an id class.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
IdentifiableType<X>- Returns:
- id attributes.
- Throws:
- if the identifiable type does not have an id class.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Class<X> getJavaType()Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- ListAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- ListAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributekeyType- the key type of the represented attributevalueType- the value type of the represented attribute
- Returns:
- MapAttribute of the given name and key and value types.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- MapAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no multi-valued attributes.
Inherited from
ManagedType<X>- Returns:
- Collection-, Set-, List-, and Map-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- SetAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- SetAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attributetype- the type of the represented attribute
- Returns:
- single-valued attribute with given name and type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
ManagedType<X>- Parameters:
name- the name of the represented attribute
- Returns:
- single-valued attribute with the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no single-valued attributes.
Inherited from
ManagedType<X>- Returns:
- single-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
IdentifiableType<X>- Returns:
- supertype of identifiable type or null if no such supertype.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
IdentifiableType<X>- Parameters:
type- the type of the represented version attribute
- Returns:
- version attribute.
- Throws:
- if version attribute of the given type is not present in the identifiable type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
boolean hasSingleIdAttribute()Returns true for a simple id or embedded id; returns false for an idclass.
Inherited from
IdentifiableType<X>- Returns:
- boolean indicating whether the identifiable type has a single id attribute.
- Since:
- Jakarta Persistence (JPA) 1.0
boolean hasVersionAttribute()Inherited from
IdentifiableType<X>- Returns:
- boolean indicating whether the identifiable type has a version attribute.
- Since:
- Jakarta Persistence (JPA) 1.0