public interface IManagedTypeProvider
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.
IManagedType| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<IEntity> |
entities()
Returns the collection of possible abstract schema types.
|
IEmbeddable |
getEmbeddable(IType type)
Retrieves the
IEmbeddable with the given IType. |
IEmbeddable |
getEmbeddable(java.lang.String typeName)
Retrieves the
IEmbeddable for the given fully qualified type name. |
IEntity |
getEntity(IType type)
|
IEntity |
getEntity(java.lang.String typeName)
Retrieves the
IEntity with the given name. |
IEntity |
getEntityNamed(java.lang.String entityName)
Retrieves the
IEntity with the given entity name. |
IManagedType |
getManagedType(IType type)
Retrieves the
IManagedType for the given IType. |
IManagedType |
getManagedType(java.lang.String typeName)
Retrieves the
IManagedType for the given fully qualified type name. |
IMappedSuperclass |
getMappedSuperclass(IType type)
Retrieves the
IEmbeddable with the given IType. |
IMappedSuperclass |
getMappedSuperclass(java.lang.String typeName)
Retrieves the
IMappedSuperclass for the given fully qualified type name. |
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.
|
java.lang.Iterable<IEntity> entities()
entities defined in the persistence contextIEmbeddable getEmbeddable(IType type)
IEmbeddable with the given IType.type - The IType of the IEmbeddable to retrieveIEmbeddable for the given IType if it's representing an embeddable;
otherwise nullIEmbeddable getEmbeddable(java.lang.String typeName)
IEmbeddable for the given fully qualified type name.typeName - The fully qualified type name of the IEmbeddable to retrieveIEmbeddable that has the given type name; otherwise nullIEntity getEntity(java.lang.String typeName)
IEntity with the given name.typeName - The fully qualified type name of the IEntity to retrieveIEntity with the given name; otherwise nullgetEntityNamed(String)IEntity getEntityNamed(java.lang.String entityName)
IEntity with the given entity name.entityName - The abstract schema name of the IEntity to retrieveIEntity with the given abstract schema name; otherwise nullgetEntity(String)IManagedType getManagedType(IType type)
IManagedType for the given IType.type - The type that is used as a managed typeIManagedType for the given type, if one exists, null otherwiseIManagedType getManagedType(java.lang.String typeName)
IManagedType for the given fully qualified type name.typeName - The fully qualified type name of the IManagedType to retrieveIManagedType for the given type, if one exists, null otherwiseIMappedSuperclass getMappedSuperclass(IType type)
IEmbeddable with the given IType.type - The IType of the IMappedSuperclass to retrieveIMappedSuperclass for the given IType if it's representing a
mapped superclass; otherwise nullIMappedSuperclass getMappedSuperclass(java.lang.String typeName)
IMappedSuperclass for the given fully qualified type name.typeName - The fully qualified type name of the IMappedSuperclass to retrieveIMappedSuperclass that has the given type name; otherwise nullITypeRepository getTypeRepository()
ITypesjava.lang.Iterable<IManagedType> managedTypes()