public class JavaManagedTypeProvider extends java.lang.Object implements IManagedTypeProvider
IManagedTypeProvider
that is wrapping the runtime
representation of a provider of a managed type.Constructor and Description |
---|
JavaManagedTypeProvider(IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
Creates a new
JavaManagedTypeProvider . |
Modifier and Type | Method and Description |
---|---|
IEmbeddable |
addEmbeddable(java.lang.Class<?> type)
Adds the given Java class that is a JPA embeddable.
|
IEntity |
addEntity(java.lang.Class<?> type)
Adds the given Java class that is a JPA entity.
|
IMappedSuperclass |
addMappedSuperclass(java.lang.Class<?> type)
Adds the given Java class that is a JPA mapped superclass.
|
IterableIterator<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. |
JavaTypeRepository |
getTypeRepository()
Returns the type repository for the application.
|
IterableIterator<IManagedType> |
managedTypes()
Returns the managed types available within the context of this provider.
|
public JavaManagedTypeProvider(IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
JavaManagedTypeProvider
.mappingBuilder
- The builder that is responsible to create the persistence.jpa.jpql.spi.IMapping IMapping
wrapping a persistent attribute or propertyjava.lang.NullPointerException
- The IMappingBuilder
cannot be null
public IEmbeddable addEmbeddable(java.lang.Class<?> type)
type
- The embeddable classpublic IEntity addEntity(java.lang.Class<?> type)
type
- The entity classpublic IMappedSuperclass addMappedSuperclass(java.lang.Class<?> type)
type
- The mapped superclass classpublic IterableIterator<IEntity> entities()
entities
in interface IManagedTypeProvider
entities
defined in the persistence contextpublic IEmbeddable getEmbeddable(IType type)
IEmbeddable
with the given IType
.getEmbeddable
in interface IManagedTypeProvider
type
- The IType
of the IEmbeddable
to retrieveIEmbeddable
for the given IType
if it's representing an embeddable;
otherwise null
public IEmbeddable getEmbeddable(java.lang.String typeName)
IEmbeddable
for the given fully qualified type name.getEmbeddable
in interface IManagedTypeProvider
typeName
- The fully qualified type name of the IEmbeddable
to retrieveIEmbeddable
that has the given type name; otherwise null
public IEntity getEntity(java.lang.String typeName)
IEntity
with the given name.getEntity
in interface IManagedTypeProvider
typeName
- The fully qualified type name of the IEntity
to retrieveIEntity
with the given name; otherwise null
IManagedTypeProvider.getEntityNamed(String)
public IEntity getEntityNamed(java.lang.String entityName)
IEntity
with the given entity name.getEntityNamed
in interface IManagedTypeProvider
entityName
- The abstract schema name of the IEntity
to retrieveIEntity
with the given abstract schema name; otherwise null
IManagedTypeProvider.getEntity(String)
public IManagedType getManagedType(IType type)
IManagedType
for the given IType
.getManagedType
in interface IManagedTypeProvider
type
- The type that is used as a managed typeIManagedType
for the given type, if one exists, null
otherwisepublic IManagedType getManagedType(java.lang.String typeName)
IManagedType
for the given fully qualified type name.getManagedType
in interface IManagedTypeProvider
typeName
- The fully qualified type name of the IManagedType
to retrieveIManagedType
for the given type, if one exists, null
otherwisepublic IMappedSuperclass getMappedSuperclass(IType type)
IEmbeddable
with the given IType
.getMappedSuperclass
in interface IManagedTypeProvider
type
- The IType
of the IMappedSuperclass
to retrieveIMappedSuperclass
for the given IType
if it's representing a
mapped superclass; otherwise null
public IMappedSuperclass getMappedSuperclass(java.lang.String typeName)
IMappedSuperclass
for the given fully qualified type name.getMappedSuperclass
in interface IManagedTypeProvider
typeName
- The fully qualified type name of the IMappedSuperclass
to retrieveIMappedSuperclass
that has the given type name; otherwise null
public JavaTypeRepository getTypeRepository()
getTypeRepository
in interface IManagedTypeProvider
ITypes
public IterableIterator<IManagedType> managedTypes()
managedTypes
in interface IManagedTypeProvider
EclipseLink 2.4.2, "build v20130514-5956486" API Reference