IdentifiableType<X>
- Type Parameters:
<X>
- The represented entity or mapped superclass type.
- Super Interfaces:
ManagedType<X>
,Type<X>
Instances of the type
IdentifiableType
represent entity or mapped superclass types. - Since:
- JPA 2.0
Public Methods
- Parameters:
name
- the name of the represented attribute
- Return:
- attribute with given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not present in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Return:
- attributes of the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- CollectionAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not present in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributeelementType
- the element type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- attribute with given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not declared in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
Returns empty set if the managed type has no declared attributes.
- Return:
- declared attributes of the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- declared CollectionAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not declared in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributeelementType
- the element type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
type
- the type of the represented declared id attribute
- Return:
- declared id attribute
- Throws:
- IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or if the identifiable type has an id class
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- declared ListAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not declared in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributeelementType
- the element type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- declared MapAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not declared in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributekeyType
- the key type of the represented attributevalueType
- the value type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
Returns empty set if the managed type has no declared multi-valued attributes.
- Return:
- declared Collection-, Set-, List-, and Map-valued attributes
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- declared SetAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not declared in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributeelementType
- the element type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- declared single-valued attribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not declared in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributetype
- the type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
Returns empty set if the managed type has no declared single-valued attributes.
- Return:
- declared single-valued attributes
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
type
- the type of the represented declared version attribute
- Return:
- declared version attribute
- Throws:
- IllegalArgumentException - if version attribute of the type is not declared in the identifiable type
- Since:
- JPA 2.0
- Parameters:
type
- the type of the represented id attribute
- Return:
- id attribute
- Throws:
- IllegalArgumentException - if id attribute of the given type is not present in the identifiable type or if the identifiable type has an id class
- Since:
- JPA 2.0
- Return:
- id attributes
- Throws:
- IllegalArgumentException - if the identifiable type does not have an id class
- Since:
- JPA 2.0
Type<?> getIdType()
- Return:
- type of id
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- ListAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not present in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributeelementType
- the element type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- MapAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not present in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributekeyType
- the key type of the represented attributevalueType
- the value type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
Returns empty set if the managed type has no multi-valued attributes.
- Return:
- Collection-, Set-, List-, and Map-valued attributes
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- SetAttribute of the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not present in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributeelementType
- the element type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attribute
- Return:
- single-valued attribute with the given name
- Throws:
- IllegalArgumentException - if attribute of the given name is not present in the managed type
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
- Parameters:
name
- the name of the represented attributetype
- the type of the represented attribute
- Return:
- 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
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
Returns empty set if the managed type has no single-valued attributes.
- Return:
- single-valued attributes
- Inherited from:
ManagedType<X>
- Since:
- JPA 2.0
IdentifiableType<?superX> getSupertype()
- Return:
- supertype of identifiable type or null if no such supertype
- Since:
- JPA 2.0
- Parameters:
type
- the type of the represented version attribute
- Return:
- version attribute
- Throws:
- IllegalArgumentException - if version attribute of the given type is not present in the identifiable type
- Since:
- JPA 2.0
boolean hasSingleIdAttribute()
Returns true for a simple id or embedded id; returns false for an idclass.
- Return:
- boolean indicating whether the identifiable type has a single id attribute
- Since:
- JPA 2.0
boolean hasVersionAttribute()
- Return:
- boolean indicating whether the identifiable type has a version attribute
- Since:
- JPA 2.0