Jakarta Persistence (JPA) Interface
jakarta.persistence.metamodel.ManagedType<X>
- Type Parameters:
<X>- The represented type.
- Super Interfaces:
Type<X>
Instances of the type
ManagedType represent entity, mapped superclass, and embeddable types. - Since:
- Jakarta Persistence (JPA) 2.0
Public Instance Methods
- Parameters:
name- the name of the represented attribute
- Returns:
- attribute with given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Returns:
- attributes of the managed type.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- CollectionAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- CollectionAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- attribute with given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no declared attributes.
- Returns:
- declared attributes of the managed type.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- declared
CollectionAttributeof the given name and element type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- declared CollectionAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- declared ListAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- declared ListAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributekeyType- the key type of the represented attributevalueType- the value type of the represented attribute
- Returns:
- declared MapAttribute of the given name and key and value types.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- declared MapAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no declared multivalued attributes.
- Returns:
- declared Collection-, Set-, List-, and Map-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- declared SetAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- declared SetAttribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributetype- the type of the represented attribute
- Returns:
- declared single-valued attribute of the given name and type.
- Throws:
- if attribute of the given name and type is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- declared single-valued attribute of the given name.
- Throws:
- if attribute of the given name is not declared in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no declared single-valued attributes.
- Returns:
- declared single-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0
Class<X> getJavaType()- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- ListAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- ListAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributekeyType- the key type of the represented attributevalueType- the value type of the represented attribute
- Returns:
- MapAttribute of the given name and key and value types.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- MapAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no multi-valued attributes.
- Returns:
- Collection-, Set-, List-, and Map-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributeelementType- the element type of the represented attribute
- Returns:
- SetAttribute of the given name and element type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- SetAttribute of the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attributetype- the type of the represented attribute
- Returns:
- single-valued attribute with given name and type.
- Throws:
- if attribute of the given name and type is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
name- the name of the represented attribute
- Returns:
- single-valued attribute with the given name.
- Throws:
- if attribute of the given name is not present in the managed type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
Returns empty set if the managed type has no single-valued attributes.
- Returns:
- single-valued attributes.
- Since:
- Jakarta Persistence (JPA) 1.0