Interface IManagedTypeProvider
public interface IManagedTypeProvider
The external representation of the provider of managed types, which provide access to the JPA
domain model.
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 TypeMethodDescriptionentities()Returns the collection of possible abstract schema types.getEmbeddable(String typeName) Retrieves theIEmbeddablefor the given fully qualified type name.getEmbeddable(IType type) Retrieves theIEmbeddablewith the givenIType.Retrieves theIEntitywith the given name.getEntityNamed(String entityName) Retrieves theIEntitywith the given entity name.getManagedType(String typeName) Retrieves theIManagedTypefor the given fully qualified type name.getManagedType(IType type) Retrieves theIManagedTypefor the givenIType.getMappedSuperclass(String typeName) Retrieves theIMappedSuperclassfor the given fully qualified type name.getMappedSuperclass(IType type) Retrieves theIEmbeddablewith the givenIType.Returns the type repository for the application.Returns the managed types available within the context of this provider.
-
Method Details
-
entities
Returns the collection of possible abstract schema types.- Returns:
- The
entitiesdefined in the persistence context - Since:
- 2.4
-
getEmbeddable
Retrieves theIEmbeddablewith the givenIType.- Parameters:
type- TheITypeof theIEmbeddableto retrieve- Returns:
- The
IEmbeddablefor the givenITypeif it's representing an embeddable; otherwisenull - Since:
- 2.4
-
getEmbeddable
Retrieves theIEmbeddablefor the given fully qualified type name.- Parameters:
typeName- The fully qualified type name of theIEmbeddableto retrieve- Returns:
- The
IEmbeddablethat has the given type name; otherwisenull - Since:
- 2.4
-
getEntity
-
getEntity
Retrieves theIEntitywith the given name. -
getEntityNamed
Retrieves theIEntitywith the given entity name. -
getManagedType
Retrieves theIManagedTypefor the givenIType.- Parameters:
type- The type that is used as a managed type- Returns:
- The
IManagedTypefor the given type, if one exists,nullotherwise
-
getManagedType
Retrieves theIManagedTypefor the given fully qualified type name.- Parameters:
typeName- The fully qualified type name of theIManagedTypeto retrieve- Returns:
- The
IManagedTypefor the given type, if one exists,nullotherwise - Since:
- 2.4
-
getMappedSuperclass
Retrieves theIEmbeddablewith the givenIType.- Parameters:
type- TheITypeof theIMappedSuperclassto retrieve- Returns:
- The
IMappedSuperclassfor the givenITypeif it's representing a mapped superclass; otherwisenull - Since:
- 2.4
-
getMappedSuperclass
Retrieves theIMappedSuperclassfor the given fully qualified type name.- Parameters:
typeName- The fully qualified type name of theIMappedSuperclassto retrieve- Returns:
- The
IMappedSuperclassthat has the given type name; otherwisenull - Since:
- 2.4
-
getTypeRepository
ITypeRepository getTypeRepository()Returns the type repository for the application.- Returns:
- The repository of
ITypes
-
managedTypes
Iterable<IManagedType> managedTypes()Returns the managed types available within the context of this provider.- Returns:
- The managed types owned by this provider
-