|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
X
- The represented type.public interface ManagedType<X>
Instances of the type ManagedType
represent entity, mapped
superclass, and embeddable types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Type |
---|
Type.PersistenceType |
Method Summary | ||
---|---|---|
Attribute<? super X,?> |
getAttribute(String name)
Return the attribute of the managed type that corresponds to the specified name. |
|
Set<Attribute<? super X,?>> |
getAttributes()
Return the attributes of the managed type. |
|
CollectionAttribute<? super X,?> |
getCollection(String name)
Return the Collection-valued attribute of the managed type that corresponds to the specified name. |
|
|
getCollection(String name,
Class<E> elementType)
Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type. |
|
Attribute<X,?> |
getDeclaredAttribute(String name)
Return the attribute declared by the managed type that corresponds to the specified name. |
|
Set<Attribute<X,?>> |
getDeclaredAttributes()
Return the attributes declared by the managed type. |
|
CollectionAttribute<X,?> |
getDeclaredCollection(String name)
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredCollection(String name,
Class<E> elementType)
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type. |
|
ListAttribute<X,?> |
getDeclaredList(String name)
Return the List-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredList(String name,
Class<E> elementType)
Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type. |
|
MapAttribute<X,?,?> |
getDeclaredMap(String name)
Return the Map-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredMap(String name,
Class<K> keyType,
Class<V> valueType)
Return the Map-valued attribute declared by the managed type that corresponds to the specified name and Java key and value types. |
|
Set<PluralAttribute<X,?,?>> |
getDeclaredPluralAttributes()
Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type. |
|
SetAttribute<X,?> |
getDeclaredSet(String name)
Return the Set-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredSet(String name,
Class<E> elementType)
Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type. |
|
SingularAttribute<X,?> |
getDeclaredSingularAttribute(String name)
Return the single-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredSingularAttribute(String name,
Class<Y> type)
Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type. |
|
Set<SingularAttribute<X,?>> |
getDeclaredSingularAttributes()
Return the single-valued attributes declared by the managed type. |
|
ListAttribute<? super X,?> |
getList(String name)
Return the List-valued attribute of the managed type that corresponds to the specified name. |
|
|
getList(String name,
Class<E> elementType)
Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type. |
|
MapAttribute<? super X,?,?> |
getMap(String name)
Return the Map-valued attribute of the managed type that corresponds to the specified name. |
|
|
getMap(String name,
Class<K> keyType,
Class<V> valueType)
Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key and value types. |
|
Set<PluralAttribute<? super X,?,?>> |
getPluralAttributes()
Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type. |
|
SetAttribute<? super X,?> |
getSet(String name)
Return the Set-valued attribute of the managed type that corresponds to the specified name. |
|
|
getSet(String name,
Class<E> elementType)
Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type. |
|
SingularAttribute<? super X,?> |
getSingularAttribute(String name)
Return the single-valued attribute of the managed type that corresponds to the specified name. |
|
|
getSingularAttribute(String name,
Class<Y> type)
Return the single-valued attribute of the managed type that corresponds to the specified name and Java type. |
|
Set<SingularAttribute<? super X,?>> |
getSingularAttributes()
Return the single-valued attributes of the managed type. |
Methods inherited from interface javax.persistence.metamodel.Type |
---|
getJavaType, getPersistenceType |
Method Detail |
---|
Set<Attribute<? super X,?>> getAttributes()
Set<Attribute<X,?>> getDeclaredAttributes()
<Y> SingularAttribute<? super X,Y> getSingularAttribute(String name, Class<Y> type)
name
- the name of the represented attributetype
- the type of the represented attribute
IllegalArgumentException
- if attribute of the given
name and type is not present in the managed type<Y> SingularAttribute<X,Y> getDeclaredSingularAttribute(String name, Class<Y> type)
name
- the name of the represented attributetype
- the type of the represented attribute
IllegalArgumentException
- if attribute of the given
name and type is not declared in the managed typeSet<SingularAttribute<? super X,?>> getSingularAttributes()
Set<SingularAttribute<X,?>> getDeclaredSingularAttributes()
<E> CollectionAttribute<? super X,E> getCollection(String name, Class<E> elementType)
name
- the name of the represented attributeelementType
- the element type of the represented
attribute
IllegalArgumentException
- if attribute of the given
name and type is not present in the managed type<E> CollectionAttribute<X,E> getDeclaredCollection(String name, Class<E> elementType)
name
- the name of the represented attributeelementType
- the element type of the represented
attribute
CollectionAttribute
of the given name and
element type
IllegalArgumentException
- if attribute of the given
name and type is not declared in the managed type<E> SetAttribute<? super X,E> getSet(String name, Class<E> elementType)
name
- the name of the represented attributeelementType
- the element type of the represented
attribute
IllegalArgumentException
- if attribute of the given
name and type is not present in the managed type<E> SetAttribute<X,E> getDeclaredSet(String name, Class<E> elementType)
name
- the name of the represented attributeelementType
- the element type of the represented
attribute
IllegalArgumentException
- if attribute of the given
name and type is not declared in the managed type<E> ListAttribute<? super X,E> getList(String name, Class<E> elementType)
name
- the name of the represented attributeelementType
- the element type of the represented
attribute
IllegalArgumentException
- if attribute of the given
name and type is not present in the managed type<E> ListAttribute<X,E> getDeclaredList(String name, Class<E> elementType)
name
- the name of the represented attributeelementType
- the element type of the represented
attribute
IllegalArgumentException
- if attribute of the given
name and type is not declared in the managed type<K,V> MapAttribute<? super X,K,V> getMap(String name, Class<K> keyType, Class<V> valueType)
name
- the name of the represented attributekeyType
- the key type of the represented attributevalueType
- the value type of the represented attribute
IllegalArgumentException
- if attribute of the given
name and type is not present in the managed type<K,V> MapAttribute<X,K,V> getDeclaredMap(String name, Class<K> keyType, Class<V> valueType)
name
- the name of the represented attributekeyType
- the key type of the represented attributevalueType
- the value type of the represented attribute
IllegalArgumentException
- if attribute of the given
name and type is not declared in the managed typeSet<PluralAttribute<? super X,?,?>> getPluralAttributes()
Set<PluralAttribute<X,?,?>> getDeclaredPluralAttributes()
Attribute<? super X,?> getAttribute(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not present in the managed typeAttribute<X,?> getDeclaredAttribute(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not declared in the managed typeSingularAttribute<? super X,?> getSingularAttribute(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not present in the managed typeSingularAttribute<X,?> getDeclaredSingularAttribute(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not declared in the managed typeCollectionAttribute<? super X,?> getCollection(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not present in the managed typeCollectionAttribute<X,?> getDeclaredCollection(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not declared in the managed typeSetAttribute<? super X,?> getSet(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not present in the managed typeSetAttribute<X,?> getDeclaredSet(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not declared in the managed typeListAttribute<? super X,?> getList(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not present in the managed typeListAttribute<X,?> getDeclaredList(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not declared in the managed typeMapAttribute<? super X,?,?> getMap(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not present in the managed typeMapAttribute<X,?,?> getDeclaredMap(String name)
name
- the name of the represented attribute
IllegalArgumentException
- if attribute of the given
name is not declared in the managed type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |