|
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.JavaManagedType
public abstract class JavaManagedType
The abstract definition of IManagedType
defined for wrapping the runtime mapped class
object.
Constructor Summary | |
---|---|
JavaManagedType(IManagedTypeProvider provider,
JavaType type,
IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
Creates a new JavaManagedType . |
Method Summary | |
---|---|
protected IMapping |
buildMapping(java.lang.reflect.Member member)
|
int |
compareTo(IManagedType managedType)
|
protected AccessType |
getAccessType()
|
IMapping |
getMappingNamed(java.lang.String name)
Returns the IMapping with the given name. |
IManagedTypeProvider |
getProvider()
Retrieves the owner of this managed type. |
JavaType |
getType()
Returns the external representation of the class used by this managed type. |
protected void |
initializeMappings()
|
protected void |
initializeMappings(java.lang.Class<?> type,
AccessType accessType)
|
protected boolean |
isPersistentAttribute(java.lang.reflect.Field field)
|
protected boolean |
isProperty(java.lang.reflect.Method method)
|
IterableIterator<IMapping> |
mappings()
Returns the collection of mappings defined in this managed type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.persistence.jpa.jpql.spi.IManagedType |
---|
accept |
Constructor Detail |
---|
public JavaManagedType(IManagedTypeProvider provider, JavaType type, IMappingBuilder<java.lang.reflect.Member> mappingBuilder)
JavaManagedType
.
provider
- The provider of JPA managed typestype
- The IType
wrapping the Java typemappingBuilder
- The builder that is responsible to create the IMapping
wrapping
a persistent attribute or propertyMethod Detail |
---|
protected IMapping buildMapping(java.lang.reflect.Member member)
public int compareTo(IManagedType managedType)
compareTo
in interface java.lang.Comparable<IManagedType>
protected AccessType getAccessType()
public IMapping getMappingNamed(java.lang.String name)
IMapping
with the given name.
getMappingNamed
in interface IManagedType
name
- The name of the mapping to retrieve
IMapping
or null
if it could not be foundpublic IManagedTypeProvider getProvider()
getProvider
in interface IManagedType
public JavaType getType()
getType
in interface IManagedType
protected void initializeMappings()
protected void initializeMappings(java.lang.Class<?> type, AccessType accessType)
protected boolean isPersistentAttribute(java.lang.reflect.Field field)
protected boolean isProperty(java.lang.reflect.Method method)
public final IterableIterator<IMapping> mappings()
mappings
defined in this managed type.
mappings
in interface IManagedType
|
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 |