X
- The represented type.public interface ManagedType<X> extends Type<X>
ManagedType
represent entity, mapped
superclass, and embeddable types.Type.PersistenceType
Modifier and Type | Method and Description |
---|---|
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.
|
<E> CollectionAttribute<? super X,E> |
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.
|
<E> CollectionAttribute<X,E> |
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.
|
<E> ListAttribute<X,E> |
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.
|
<K,V> MapAttribute<X,K,V> |
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.
|
<E> SetAttribute<X,E> |
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.
|
<Y> SingularAttribute<X,Y> |
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.
|
<E> ListAttribute<? super X,E> |
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.
|
<K,V> MapAttribute<? super X,K,V> |
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.
|
<E> SetAttribute<? super X,E> |
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.
|
<Y> SingularAttribute<? super X,Y> |
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.
|
getJavaType, getPersistenceType
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 attributeIllegalArgumentException
- 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 attributeIllegalArgumentException
- 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
attributeIllegalArgumentException
- 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
attributeCollectionAttribute
of the given name and
element typeIllegalArgumentException
- 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
attributeIllegalArgumentException
- 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
attributeIllegalArgumentException
- 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
attributeIllegalArgumentException
- 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
attributeIllegalArgumentException
- 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 attributeIllegalArgumentException
- 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 attributeIllegalArgumentException
- 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 attributeIllegalArgumentException
- if attribute of the given
name is not present in the managed typeAttribute<X,?> getDeclaredAttribute(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not declared in the managed typeSingularAttribute<? super X,?> getSingularAttribute(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not present in the managed typeSingularAttribute<X,?> getDeclaredSingularAttribute(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not declared in the managed typeCollectionAttribute<? super X,?> getCollection(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not present in the managed typeCollectionAttribute<X,?> getDeclaredCollection(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not declared in the managed typeSetAttribute<? super X,?> getSet(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not present in the managed typeSetAttribute<X,?> getDeclaredSet(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not declared in the managed typeListAttribute<? super X,?> getList(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not present in the managed typeListAttribute<X,?> getDeclaredList(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not declared in the managed typeMapAttribute<? super X,?,?> getMap(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not present in the managed typeMapAttribute<X,?,?> getDeclaredMap(String name)
name
- the name of the represented attributeIllegalArgumentException
- if attribute of the given
name is not declared in the managed typeCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.