|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.jpa.jpql.spi.java.JavaManagedTypeProvider
public class JavaManagedTypeProvider
The concrete implementation of IManagedTypeProvider
that is wrapping the runtime
representation of a provider of a managed type.
Constructor Summary | |
---|---|
JavaManagedTypeProvider(IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
Creates a new JavaManagedTypeProvider . |
Method Summary | |
---|---|
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. |
protected IEmbeddable |
buildEmbeddable(java.lang.Class<?> type)
|
protected IEntity |
buildEntity(java.lang.Class<?> type)
|
protected IMappedSuperclass |
buildMappedSuperclass(java.lang.Class<?> type)
|
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)
Retrieves the IEntity with the given IType . |
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. |
protected IMappingBuilder<java.lang.reflect.Member> |
getMappingBuilder()
|
JavaTypeRepository |
getTypeRepository()
Returns the type repository for the application. |
protected void |
initialize()
Initializes this provider. |
IterableIterator<IManagedType> |
managedTypes()
Returns the managed types available within the context of this provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 property
java.lang.NullPointerException
- The IMappingBuilder
cannot be null
Method Detail |
---|
public IEmbeddable addEmbeddable(java.lang.Class<?> type)
type
- The embeddable class
public IEntity addEntity(java.lang.Class<?> type)
type
- The entity class
public IMappedSuperclass addMappedSuperclass(java.lang.Class<?> type)
type
- The mapped superclass class
protected IEmbeddable buildEmbeddable(java.lang.Class<?> type)
protected IEntity buildEntity(java.lang.Class<?> type)
protected IMappedSuperclass buildMappedSuperclass(java.lang.Class<?> type)
public 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 retrieve
IEmbeddable
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 retrieve
IEmbeddable
that has the given type name; otherwise null
public IEntity getEntity(IType type)
IEntity
with the given IType
.
getEntity
in interface IManagedTypeProvider
type
- The IType
of the IEntity
to retrieve
IEntity
for the given IType
if it's representing an entity;
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 retrieve
IEntity
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 retrieve
IEntity
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 type
IManagedType
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 retrieve
IManagedType
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 retrieve
IMappedSuperclass
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 retrieve
IMappedSuperclass
that has the given type name; otherwise null
protected IMappingBuilder<java.lang.reflect.Member> getMappingBuilder()
public JavaTypeRepository getTypeRepository()
getTypeRepository
in interface IManagedTypeProvider
ITypes
protected void initialize()
public IterableIterator<IManagedType> managedTypes()
managedTypes
in interface IManagedTypeProvider
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |