|
EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference | |||||||||
| 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 |
| Nested classes/interfaces inherited from interface javax.persistence.metamodel.Bindable |
|---|
Bindable.BindableType |
| Method Summary | ||
|---|---|---|
Attribute<? super X,?> |
getAttribute(java.lang.String name)
Return the non-collection-valued attribute of the managed type that corresponds to the specified name in the represented type. |
|
|
getAttribute(java.lang.String name,
java.lang.Class<Y> type)
Return the non-collection-valued attribute of the managed type that corresponds to the specified name and Java type in the represented type. |
|
java.util.Set<Attribute<? super X,?>> |
getAttributes()
Return the non-collection-valued attributes of the managed type. |
|
Collection<? super X,?> |
getCollection(java.lang.String name)
Return the Collection-valued attribute of the managed type that corresponds to the specified name. |
|
|
getCollection(java.lang.String name,
java.lang.Class<E> elementType)
Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type. |
|
java.util.Set<AbstractCollection<? super X,?,?>> |
getCollections()
Return all collection-valued attributes of the managed type. |
|
Attribute<X,?> |
getDeclaredAttribute(java.lang.String name)
Return the declared non-collection-valued attribute of the managed type that corresponds to the specified name in the represented type. |
|
|
getDeclaredAttribute(java.lang.String name,
java.lang.Class<Y> type)
Return the declared non-collection-valued attribute of the managed type that corresponds to the specified name and Java type in the represented type. |
|
java.util.Set<Attribute<X,?>> |
getDeclaredAttributes()
Return the non-collection-valued attributes declared by the managed type. |
|
Collection<X,?> |
getDeclaredCollection(java.lang.String name)
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredCollection(java.lang.String name,
java.lang.Class<E> elementType)
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type. |
|
java.util.Set<AbstractCollection<X,?,?>> |
getDeclaredCollections()
Return all collection-valued attributes declared by the managed type. |
|
List<X,?> |
getDeclaredList(java.lang.String name)
Return the List-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredList(java.lang.String name,
java.lang.Class<E> elementType)
Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type. |
|
Map<X,?,?> |
getDeclaredMap(java.lang.String name)
Return the Map-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredMap(java.lang.String name,
java.lang.Class<K> keyType,
java.lang.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<X,?> |
getDeclaredSet(java.lang.String name)
Return the Set-valued attribute declared by the managed type that corresponds to the specified name. |
|
|
getDeclaredSet(java.lang.String name,
java.lang.Class<E> elementType)
Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type. |
|
List<? super X,?> |
getList(java.lang.String name)
Return the List-valued attribute of the managed type that corresponds to the specified name. |
|
|
getList(java.lang.String name,
java.lang.Class<E> elementType)
Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type. |
|
Map<? super X,?,?> |
getMap(java.lang.String name)
Return the Map-valued attribute of the managed type that corresponds to the specified name. |
|
|
getMap(java.lang.String name,
java.lang.Class<K> keyType,
java.lang.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<? super X,?> |
getSet(java.lang.String name)
Return the Set-valued attribute of the managed type that corresponds to the specified name. |
|
|
getSet(java.lang.String name,
java.lang.Class<E> elementType)
Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type. |
|
| Methods inherited from interface javax.persistence.metamodel.Type |
|---|
getJavaType, getPersistenceType |
| Methods inherited from interface javax.persistence.metamodel.Bindable |
|---|
getBindableType, getJavaType |
| Method Detail |
|---|
<Y> Attribute<? super X,Y> getAttribute(java.lang.String name,
java.lang.Class<Y> type)
name - the name of the represented attributetype - the type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<Y> Attribute<X,Y> getDeclaredAttribute(java.lang.String name,
java.lang.Class<Y> type)
name - the name of the represented attributetype - the type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed typejava.util.Set<Attribute<? super X,?>> getAttributes()
java.util.Set<Attribute<X,?>> getDeclaredAttributes()
<E> Collection<? super X,E> getCollection(java.lang.String name,
java.lang.Class<E> elementType)
name - the name of the represented attributeelementType - the element type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<E> Set<? super X,E> getSet(java.lang.String name,
java.lang.Class<E> elementType)
name - the name of the represented attributeelementType - the element type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<E> List<? super X,E> getList(java.lang.String name,
java.lang.Class<E> elementType)
name - the name of the represented attributeelementType - the element type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<K,V> Map<? super X,K,V> getMap(java.lang.String name,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
name - the name of the represented attributekeyType - the key type of the represented attributevalueType - the value type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<E> Collection<X,E> getDeclaredCollection(java.lang.String name,
java.lang.Class<E> elementType)
name - the name of the represented attributeelementType - the element type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<E> Set<X,E> getDeclaredSet(java.lang.String name,
java.lang.Class<E> elementType)
name - the name of the represented attributeelementType - the element type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<E> List<X,E> getDeclaredList(java.lang.String name,
java.lang.Class<E> elementType)
name - the name of the represented attributeelementType - the element type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed type
<K,V> Map<X,K,V> getDeclaredMap(java.lang.String name,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
name - the name of the represented attributekeyType - the key type of the represented attributevalueType - the value type of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name and type is not present in the
managed typejava.util.Set<AbstractCollection<? super X,?,?>> getCollections()
java.util.Set<AbstractCollection<X,?,?>> getDeclaredCollections()
Attribute<? super X,?> getAttribute(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeAttribute<X,?> getDeclaredAttribute(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeCollection<? super X,?> getCollection(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeSet<? super X,?> getSet(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeList<? super X,?> getList(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeMap<? super X,?,?> getMap(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeCollection<X,?> getDeclaredCollection(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeSet<X,?> getDeclaredSet(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeList<X,?> getDeclaredList(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
typeMap<X,?,?> getDeclaredMap(java.lang.String name)
name - the name of the represented attribute
java.lang.IllegalArgumentException - if attribute of the given name is not present in the managed
type
|
EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||