|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.tools.spi.java.JavaManagedType org.eclipse.persistence.jpa.jpql.tools.spi.java.JavaEntity
public class JavaEntity
The concrete implementation of IEntity
that is wrapping the runtime representation of a
JPA entity.
Constructor Summary | |
---|---|
JavaEntity(IManagedTypeProvider provider,
JavaType type,
IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
Creates a new JavaEntity . |
Method Summary | ||
---|---|---|
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
|
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()
|
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.spi.java.JavaManagedType |
---|
buildMapping, compareTo, getAccessType, getMappingNamed, getProvider, getType, initializeMappings, initializeMappings, isPersistentAttribute, isProperty, mappings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.persistence.jpa.jpql.tools.spi.IManagedType |
---|
getMappingNamed, getProvider, getType, mappings |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public 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 propertyMethod Detail |
---|
public void accept(IManagedTypeVisitor visitor)
accept
in interface IManagedType
visitor
- 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()
getName
in interface IEntity
public IQuery getNamedQuery(java.lang.String queryName)
getNamedQuery
in interface IEntity
queryName
- The name of the JPQL query to retrieve
IQuery
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
|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |