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.
|
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;
|
java.lang.String |
toString() |
compareTo, getMappingNamed, getProvider, getType, mappings
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMappingNamed, getProvider, getType, mappings
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 propertypublic void accept(IManagedTypeVisitor visitor)
accept
in interface IManagedType
visitor
- The visitor to visit this managed type objectpublic java.lang.String getName()
public IQuery getNamedQuery(java.lang.String queryName)
getNamedQuery
in interface IEntity
queryName
- The name of the JPQL query to retrieveIQuery
representing the JPQL query named with the given name; or
null
if none could be foundpublic java.lang.String toString()
toString
in class java.lang.Object
EclipseLink 2.4.2, "build v20130514-5956486" API Reference