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.
- Version:
- 2.5
- See Also:
IManagedType
- Author:
- Pascal Filion
- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<IEntity>
entities()
Returns the collection of possible abstract schema types.IEmbeddable
getEmbeddable(java.lang.String typeName)
Retrieves theIEmbeddable
for the given fully qualified type name.IEmbeddable
getEmbeddable(IType type)
Retrieves theIEmbeddable
with the givenIType
.IEntity
getEntity(java.lang.String typeName)
Retrieves theIEntity
with the given name.IEntity
getEntity(IType type)
IEntity
getEntityNamed(java.lang.String entityName)
Retrieves theIEntity
with the given entity name.IManagedType
getManagedType(java.lang.String typeName)
Retrieves theIManagedType
for the given fully qualified type name.IManagedType
getManagedType(IType type)
Retrieves theIManagedType
for the givenIType
.IMappedSuperclass
getMappedSuperclass(java.lang.String typeName)
Retrieves theIMappedSuperclass
for the given fully qualified type name.IMappedSuperclass
getMappedSuperclass(IType type)
Retrieves theIEmbeddable
with the givenIType
.ITypeRepository
getTypeRepository()
Returns the type repository for the application.java.lang.Iterable<IManagedType>
managedTypes()
Returns the managed types available within the context of this provider.
-
-
-
Method Detail
-
entities
java.lang.Iterable<IEntity> entities()
Returns the collection of possible abstract schema types.- Returns:
- The
entities
defined in the persistence context
-
getEmbeddable
IEmbeddable getEmbeddable(IType type)
Retrieves theIEmbeddable
with the givenIType
.- Parameters:
type
- TheIType
of theIEmbeddable
to retrieve- Returns:
- The
IEmbeddable
for the givenIType
if it's representing an embeddable; otherwisenull
- Since:
- 2.4
-
getEmbeddable
IEmbeddable getEmbeddable(java.lang.String typeName)
Retrieves theIEmbeddable
for the given fully qualified type name.- Parameters:
typeName
- The fully qualified type name of theIEmbeddable
to retrieve- Returns:
- The
IEmbeddable
that has the given type name; otherwisenull
- Since:
- 2.4
-
getEntity
IEntity getEntity(java.lang.String typeName)
Retrieves theIEntity
with the given name.- Parameters:
typeName
- The fully qualified type name of theIEntity
to retrieve- Returns:
- The
IEntity
with the given name; otherwisenull
- See Also:
getEntityNamed(String)
- Since:
- 2.4
-
getEntityNamed
IEntity getEntityNamed(java.lang.String entityName)
Retrieves theIEntity
with the given entity name.- Parameters:
entityName
- The abstract schema name of theIEntity
to retrieve- Returns:
- The
IEntity
with the given abstract schema name; otherwisenull
- See Also:
getEntity(String)
- Since:
- 2.4
-
getManagedType
IManagedType getManagedType(IType type)
Retrieves theIManagedType
for the givenIType
.- Parameters:
type
- The type that is used as a managed type- Returns:
- The
IManagedType
for the given type, if one exists,null
otherwise
-
getManagedType
IManagedType getManagedType(java.lang.String typeName)
Retrieves theIManagedType
for the given fully qualified type name.- Parameters:
typeName
- The fully qualified type name of theIManagedType
to retrieve- Returns:
- The
IManagedType
for the given type, if one exists,null
otherwise
-
getMappedSuperclass
IMappedSuperclass getMappedSuperclass(IType type)
Retrieves theIEmbeddable
with the givenIType
.- Parameters:
type
- TheIType
of theIMappedSuperclass
to retrieve- Returns:
- The
IMappedSuperclass
for the givenIType
if it's representing a mapped superclass; otherwisenull
- Since:
- 2.4
-
getMappedSuperclass
IMappedSuperclass getMappedSuperclass(java.lang.String typeName)
Retrieves theIMappedSuperclass
for the given fully qualified type name.- Parameters:
typeName
- The fully qualified type name of theIMappedSuperclass
to retrieve- Returns:
- The
IMappedSuperclass
that 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
java.lang.Iterable<IManagedType> managedTypes()
Returns the managed types available within the context of this provider.- Returns:
- The managed types owned by this provider
-
-