Interface IManagedType
- All Superinterfaces:
Comparable<IManagedType>
- All Known Subinterfaces:
IEmbeddable
,IEntity
,IMappedSuperclass
- All Known Implementing Classes:
CollectionValuedFieldResolver.MapManagedType
,FromSubqueryResolver.VirtualManagedType
,StateFieldPathExpressionStateObject.MapManagedType
The external representation of a managed type, which is a JPA persistent object.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- Since:
- 2.3
- Version:
- 2.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IManagedTypeVisitor visitor) Visits this managed type with the given visitor.getMappingNamed
(String name) Returns theIMapping
with the given name.Retrieves the owner of this managed type.getType()
Returns the external representation of the class used by this managed type.mappings()
Returns the collection ofmappings
defined in this managed type.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
accept
Visits this managed type with the given visitor.- Parameters:
visitor
- The visitor to visit this managed type object
-
getMappingNamed
Returns theIMapping
with the given name.- Parameters:
name
- The name of the mapping to retrieve- Returns:
- Either the
IMapping
ornull
if it could not be found
-
getProvider
IManagedTypeProvider getProvider()Retrieves the owner of this managed type.- Returns:
- The external form holding onto the JPA managed types
-
getType
IType getType()Returns the external representation of the class used by this managed type.- Returns:
- The external representation of the class used by this managed type
-
mappings
Returns the collection ofmappings
defined in this managed type.- Returns:
- The collection of persistent fields and properties of this managed type
-