| Constructor and Description |
|---|
MetamodelImpl(MetaDataRepository repos)
Constructs a model with the current content of the supplied non-null repository.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
classForName(String name,
String[] imports)
Resolve the type represented by the given class name.
|
<X> javax.persistence.metamodel.EmbeddableType<X> |
embeddable(Class<X> clazz)
Return the metamodel embeddable type representing the embeddable class.
|
<X> javax.persistence.metamodel.EntityType<X> |
entity(Class<X> clazz)
Return the metamodel entity type representing the entity.
|
<X> javax.persistence.metamodel.EntityType<X> |
entityImpl(Class<X> clazz) |
AggregateListener |
getAggregateListener(String tag)
Return the function listener for the given tag, or null if none.
|
OpenJPAConfiguration |
getConfiguration()
Return the OpenJPA configuration.
|
Set<javax.persistence.metamodel.EmbeddableType<?>> |
getEmbeddables()
Return the metamodel embeddable types.
|
Set<javax.persistence.metamodel.EntityType<?>> |
getEntities()
Return the metamodel entity types.
|
FilterListener |
getFilterListener(String tag)
Return the filter listener for the given tag, or null if none.
|
Set<javax.persistence.metamodel.ManagedType<?>> |
getManagedTypes()
Return the metamodel managed types.
|
static javax.persistence.metamodel.Type.PersistenceType |
getPersistenceType(ClassMetaData meta) |
QueryContext |
getQueryContext()
The
QueryContext for which this resolver was created |
MetaDataRepository |
getRepository() |
<X> javax.persistence.metamodel.Type<X> |
getType(Class<X> cls)
Return the type representing the basic, entity, mapped superclass, or embeddable class.
|
<X> javax.persistence.metamodel.ManagedType<X> |
managedType(Class<X> clazz)
Return the metamodel managed type representing the
entity, mapped superclass, or embeddable class.
|
<X> void |
populate(AbstractManagedType<X> type)
Populate the static fields of the canonical type.
|
<T> Set<T> |
unmodifiableSet(Collection<T> coll) |
public MetamodelImpl(MetaDataRepository repos)
public MetaDataRepository getRepository()
public <X> javax.persistence.metamodel.EmbeddableType<X> embeddable(Class<X> clazz)
embeddable in interface javax.persistence.metamodel.Metamodelcls - the type of the represented embeddable classIllegalArgumentException - if not an embeddable classpublic <X> javax.persistence.metamodel.EntityType<X> entity(Class<X> clazz)
entity in interface javax.persistence.metamodel.Metamodelcls - the type of the represented entityIllegalArgumentException - if not an entitypublic <X> javax.persistence.metamodel.EntityType<X> entityImpl(Class<X> clazz)
public Set<javax.persistence.metamodel.EmbeddableType<?>> getEmbeddables()
getEmbeddables in interface javax.persistence.metamodel.Metamodelpublic Set<javax.persistence.metamodel.EntityType<?>> getEntities()
getEntities in interface javax.persistence.metamodel.Metamodelpublic Set<javax.persistence.metamodel.ManagedType<?>> getManagedTypes()
getManagedTypes in interface javax.persistence.metamodel.Metamodelpublic <X> javax.persistence.metamodel.ManagedType<X> managedType(Class<X> clazz)
managedType in interface javax.persistence.metamodel.Metamodelcls - the type of the represented managed classIllegalArgumentException - if not a managed classpublic <X> javax.persistence.metamodel.Type<X> getType(Class<X> cls)
cls - the type of the represented managed classIllegalArgumentException - if not a managed classpublic static javax.persistence.metamodel.Type.PersistenceType getPersistenceType(ClassMetaData meta)
public <T> Set<T> unmodifiableSet(Collection<T> coll)
public <X> void populate(AbstractManagedType<X> type)
public Class classForName(String name, String[] imports)
ResolverclassForName in interface Resolverpublic AggregateListener getAggregateListener(String tag)
ResolvergetAggregateListener in interface Resolverpublic OpenJPAConfiguration getConfiguration()
ResolvergetConfiguration in interface Resolverpublic FilterListener getFilterListener(String tag)
ResolvergetFilterListener in interface Resolverpublic QueryContext getQueryContext()
ResolverQueryContext for which this resolver was createdgetQueryContext in interface ResolverCopyright © 2006–2022 Apache Software Foundation. All rights reserved.