X
- The represented entity or mapped superclass type.public interface IdentifiableType<X> extends ManagedType<X>
IdentifiableType
represent entity or
mapped superclass types.Type.PersistenceType
Modifier and Type | Method and Description |
---|---|
<Y> SingularAttribute<X,Y> |
getDeclaredId(java.lang.Class<Y> type)
Return the attribute that corresponds to the id attribute
declared by the entity or mapped superclass.
|
<Y> SingularAttribute<X,Y> |
getDeclaredVersion(java.lang.Class<Y> type)
Return the attribute that corresponds to the version
attribute declared by the entity or mapped superclass.
|
<Y> SingularAttribute<? super X,Y> |
getId(java.lang.Class<Y> type)
Return the attribute that corresponds to the id attribute of
the entity or mapped superclass.
|
java.util.Set<SingularAttribute<? super X,?>> |
getIdClassAttributes()
Return the attributes corresponding to the id class of the
identifiable type.
|
Type<?> |
getIdType()
Return the type that represents the type of the id.
|
IdentifiableType<? super X> |
getSupertype()
Return the identifiable type that corresponds to the most
specific mapped superclass or entity extended by the entity
or mapped superclass.
|
<Y> SingularAttribute<? super X,Y> |
getVersion(java.lang.Class<Y> type)
Return the attribute that corresponds to the version
attribute of the entity or mapped superclass.
|
boolean |
hasSingleIdAttribute()
Whether the identifiable type has a single id attribute.
|
boolean |
hasVersionAttribute()
Whether the identifiable type has a version attribute.
|
getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes
getJavaType, getPersistenceType
<Y> SingularAttribute<? super X,Y> getId(java.lang.Class<Y> type)
type
- the type of the represented id attributejava.lang.IllegalArgumentException
- if id attribute of the given
type is not present in the identifiable type or if
the identifiable type has an id class<Y> SingularAttribute<X,Y> getDeclaredId(java.lang.Class<Y> type)
type
- the type of the represented declared
id attributejava.lang.IllegalArgumentException
- if id attribute of the given
type is not declared in the identifiable type or if
the identifiable type has an id class<Y> SingularAttribute<? super X,Y> getVersion(java.lang.Class<Y> type)
type
- the type of the represented version attributejava.lang.IllegalArgumentException
- if version attribute of the
given type is not present in the identifiable type<Y> SingularAttribute<X,Y> getDeclaredVersion(java.lang.Class<Y> type)
type
- the type of the represented declared version
attributejava.lang.IllegalArgumentException
- if version attribute of the
type is not declared in the identifiable typeIdentifiableType<? super X> getSupertype()
boolean hasSingleIdAttribute()
boolean hasVersionAttribute()
java.util.Set<SingularAttribute<? super X,?>> getIdClassAttributes()
java.lang.IllegalArgumentException
- if the identifiable type
does not have an id classType<?> getIdType()