public class JavaEntity extends JavaManagedType implements IEntity
IEntity that is wrapping the runtime representation of a
JPA entity.| Constructor and Description |
|---|
JavaEntity(IManagedTypeProvider provider,
JavaType type,
IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
Creates a new
JavaEntity. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IManagedTypeVisitor visitor)
Visits this managed type with the given visitor.
|
protected java.lang.String |
buildName() |
protected java.util.Map<java.lang.String,IQuery> |
buildQueries() |
protected IQuery |
buildQuery(NamedQuery namedQuery) |
protected <T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.Class<T> annotationType) |
java.lang.String |
getName()
Returns the name of this entity.
|
IQuery |
getNamedQuery(java.lang.String queryName)
Returns the external form of the given named query;
|
protected boolean |
hasAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.String annotationType) |
protected void |
initializeQueries() |
java.lang.String |
toString() |
buildMapping, compareTo, getAccessType, getMappingNamed, getProvider, getType, initializeMappings, initializeMappings, isPersistentAttribute, isProperty, mappingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMappingNamed, getProvider, getType, mappingspublic JavaEntity(IManagedTypeProvider provider, JavaType type, IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
JavaEntity.provider - The provider of JPA managed typestype - The IType wrapping the Java typemappingBuilder - The builder that is responsible to create the persistence.jpa.jpql.spi.IMapping IMapping wrapping a persistent attribute or propertypublic void accept(IManagedTypeVisitor visitor)
accept in interface IManagedTypevisitor - The visitor to visit this managed type objectprotected java.lang.String buildName()
protected java.util.Map<java.lang.String,IQuery> buildQueries()
protected IQuery buildQuery(NamedQuery namedQuery)
protected <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.Class<T> annotationType)
public java.lang.String getName()
public IQuery getNamedQuery(java.lang.String queryName)
getNamedQuery in interface IEntityqueryName - The name of the JPQL query to retrieveIQuery representing the JPQL query named with the given name; or
null if none could be foundprotected boolean hasAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.String annotationType)
protected void initializeQueries()
public java.lang.String toString()
toString in class java.lang.Object