EntityType
- Type Parameters:
 <X>- The represented entity type.
- Super Interfaces:
 Bindable<X>,IdentifiableType<X>,ManagedType<X>,Type<X>
 An instance of 
EntityType represents an plain type. - Since:
 - JPA 2.0
 
Public Methods
- 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
 
- Inherited from:
 IdentifiableType<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
 
- Inherited from:
 IdentifiableType<X>
- 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
 
- Inherited from:
 IdentifiableType<X>
- Since:
 - JPA 2.0
 
- Return:
 - id attributes
 
- Throws:
 - IllegalArgumentException - if the identifiable type does not have an id class
 
- Inherited from:
 IdentifiableType<X>
- Since:
 - JPA 2.0
 
String getName()
- Return:
 - entity name
 
- Since:
 - JPA 2.0
 
- Return:
 - supertype of identifiable type or null if no such supertype
 
- Inherited from:
 IdentifiableType<X>
- 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
 
- Inherited from:
 IdentifiableType<X>
- 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
 
- Inherited from:
 IdentifiableType<X>
- Since:
 - JPA 2.0
 
boolean hasVersionAttribute()
- Return:
 - boolean indicating whether the identifiable type has a version attribute
 
- Inherited from:
 IdentifiableType<X>
- Since:
 - JPA 2.0