JPA Interface

MappedSuperclassType

Type Parameters:
<X> - The represented entity type
Super Interfaces:
IdentifiableType<X>, ManagedType<X>, Type<X>

Instances of the type MappedSuperclassType represent mapped superclass types.
Since:
JPA 2.0

Public Methods

SingularAttribute<X,Y> getDeclaredId(Class<Y> type)
Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass.
Parameters:
type - the type of the represented declared id attribute
Return:
declared id attribute
Throws:
IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or if the identifiable type has an id class
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass.
Parameters:
type - the type of the represented declared version attribute
Return:
declared version attribute
Throws:
IllegalArgumentException - if version attribute of the type is not declared in the identifiable type
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
SingularAttribute<?superX,Y> getId(Class<Y> type)
Return the attribute that corresponds to the id attribute of the entity or mapped superclass.
Parameters:
type - the type of the represented id attribute
Return:
id attribute
Throws:
IllegalArgumentException - if id attribute of the given type is not present in the identifiable type or if the identifiable type has an id class
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
Return the attributes corresponding to the id class of the identifiable type.
Return:
id attributes
Throws:
IllegalArgumentException - if the identifiable type does not have an id class
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
Type<?> getIdType()
Return the type that represents the type of the id.
Return:
type of id
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
IdentifiableType<?superX> getSupertype()
Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass.
Return:
supertype of identifiable type or null if no such supertype
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
SingularAttribute<?superX,Y> getVersion(Class<Y> type)
Return the attribute that corresponds to the version attribute of the entity or mapped superclass.
Parameters:
type - the type of the represented version attribute
Return:
version attribute
Throws:
IllegalArgumentException - if version attribute of the given type is not present in the identifiable type
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
Whether the identifiable type has a single id attribute.
Returns true for a simple id or embedded id; returns false for an idclass.
Return:
boolean indicating whether the identifiable type has a single id attribute
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0
Whether the identifiable type has a version attribute.
Return:
boolean indicating whether the identifiable type has a version attribute
Inherited from:
IdentifiableType<X>
Since:
JPA 2.0