javax.persistence.metamodel.ManagedType - JPA interface
Instances of the type ManagedType
represent entity, mapped superclass, and embeddable types.
- Since:
- JPA 2.0
Return the attribute of the managed type that corresponds to the specified name.
Return the attribute of the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- attribute with given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not present in the managed type
- Since:
- JPA 2.0
Return the attributes of the managed type.
Return the attributes of the managed type.
- Returns:
- attributes of the managed type
- Since:
- JPA 2.0
Return the Collection-valued attribute of the managed type that corresponds to the specified name.
Return the Collection-valued attribute of the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- CollectionAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not present in the managed type
- Since:
- JPA 2.0
Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type.
Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type.
- Parameters:
-
name
- the name of the represented attribute -
elementType
- the element type of the represented attribute
- Returns:
- CollectionAttribute of the given name and element type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not present in the managed type
- Since:
- JPA 2.0
Return the attribute declared by the managed type that corresponds to the specified name.
Return the attribute declared by the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- attribute with given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not declared in the managed type
- Since:
- JPA 2.0
Return the attributes declared by the managed type.
Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes.
- Returns:
- declared attributes of the managed type
- Since:
- JPA 2.0
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name.
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- declared CollectionAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not declared in the managed type
- Since:
- JPA 2.0
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type.
Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type.
- Parameters:
-
name
- the name of the represented attribute -
elementType
- the element type of the represented attribute
- Returns:
- declared
CollectionAttribute
of the given name and element type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not declared in the managed type
- Since:
- JPA 2.0
Return the List-valued attribute declared by the managed type that corresponds to the specified name.
Return the List-valued attribute declared by the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- declared ListAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not declared in the managed type
- Since:
- JPA 2.0
Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type.
Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type.
- Parameters:
-
name
- the name of the represented attribute -
elementType
- the element type of the represented attribute
- Returns:
- declared ListAttribute of the given name and element type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not declared in the managed type
- Since:
- JPA 2.0
Return the Map-valued attribute declared by the managed type that corresponds to the specified name.
Return the Map-valued attribute declared by the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- declared MapAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not declared in the managed type
- Since:
- JPA 2.0
Return the Map-valued attribute declared by the managed type that corresponds to the specified name and Java key and value types.
Return the Map-valued attribute declared by the managed type that corresponds to the specified name and Java key and value types.
- Parameters:
-
name
- the name of the represented attribute -
keyType
- the key type of the represented attribute -
valueType
- the value type of the represented attribute
- Returns:
- declared MapAttribute of the given name and key and value types
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not declared in the managed type
- Since:
- JPA 2.0
Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type.
Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multi-valued attributes.
- Returns:
- declared Collection-, Set-, List-, and Map-valued attributes
- Since:
- JPA 2.0
Return the Set-valued attribute declared by the managed type that corresponds to the specified name.
Return the Set-valued attribute declared by the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- declared SetAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not declared in the managed type
- Since:
- JPA 2.0
Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type.
Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type.
- Parameters:
-
name
- the name of the represented attribute -
elementType
- the element type of the represented attribute
- Returns:
- declared SetAttribute of the given name and element type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not declared in the managed type
- Since:
- JPA 2.0
Return the single-valued attribute declared by the managed type that corresponds to the specified name.
Return the single-valued attribute declared by the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- declared single-valued attribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not declared in the managed type
- Since:
- JPA 2.0
Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type.
Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type.
- Parameters:
-
name
- the name of the represented attribute -
type
- the type of the represented attribute
- Returns:
- declared single-valued attribute of the given name and type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not declared in the managed type
- Since:
- JPA 2.0
Return the single-valued attributes declared by the managed type.
Return the single-valued attributes declared by the managed type. Returns empty set if the managed type has no declared single-valued attributes.
- Returns:
- declared single-valued attributes
- Since:
- JPA 2.0
Return the represented Java type.
Return the represented Java type.
- Returns:
- Java type
- Since:
- JPA 2.0
Return the List-valued attribute of the managed type that corresponds to the specified name.
Return the List-valued attribute of the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- ListAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not present in the managed type
- Since:
- JPA 2.0
Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type.
Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type.
- Parameters:
-
name
- the name of the represented attribute -
elementType
- the element type of the represented attribute
- Returns:
- ListAttribute of the given name and element type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not present in the managed type
- Since:
- JPA 2.0
Return the Map-valued attribute of the managed type that corresponds to the specified name.
Return the Map-valued attribute of the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- MapAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not present in the managed type
- Since:
- JPA 2.0
Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key and value types.
Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key and value types.
- Parameters:
-
name
- the name of the represented attribute -
keyType
- the key type of the represented attribute -
valueType
- the value type of the represented attribute
- Returns:
- MapAttribute of the given name and key and value types
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not present in the managed type
- Since:
- JPA 2.0
Return the persistence type.
Return the persistence type.
- Returns:
- persistence type
- Since:
- JPA 2.0
Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type.
Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes.
- Returns:
- Collection-, Set-, List-, and Map-valued attributes
- Since:
- JPA 2.0
Return the Set-valued attribute of the managed type that corresponds to the specified name.
Return the Set-valued attribute of the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- SetAttribute of the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not present in the managed type
- Since:
- JPA 2.0
Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type.
Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type.
- Parameters:
-
name
- the name of the represented attribute -
elementType
- the element type of the represented attribute
- Returns:
- SetAttribute of the given name and element type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not present in the managed type
- Since:
- JPA 2.0
Return the single-valued attribute of the managed type that corresponds to the specified name.
Return the single-valued attribute of the managed type that corresponds to the specified name.
- Parameters:
-
name
- the name of the represented attribute
- Returns:
- single-valued attribute with the given name
- Throws:
-
IllegalArgumentException
- if attribute of the given name is not present in the managed type
- Since:
- JPA 2.0
Return the single-valued attribute of the managed type that corresponds to the specified name and Java type.
Return the single-valued attribute of the managed type that corresponds to the specified name and Java type.
- Parameters:
-
name
- the name of the represented attribute -
type
- the type of the represented attribute
- Returns:
- single-valued attribute with given name and type
- Throws:
-
IllegalArgumentException
- if attribute of the given name and type is not present in the managed type
- Since:
- JPA 2.0
Return the single-valued attributes of the managed type.
Return the single-valued attributes of the managed type. Returns empty set if the managed type has no single-valued attributes.
- Returns:
- single-valued attributes
- Since:
- JPA 2.0