|
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.Object org.eclipse.persistence.jpa.jpql.FromSubqueryResolver.VirtualMapping
protected class FromSubqueryResolver.VirtualMapping
This virtual IMapping
wraps one of the select items.
Constructor Summary | |
---|---|
protected |
FromSubqueryResolver.VirtualMapping(IManagedType parent,
java.lang.String name,
Resolver resolver)
|
Method Summary | |
---|---|
int |
compareTo(IMapping mapping)
|
int |
getMappingType()
Returns the type of this mapping. |
java.lang.String |
getName()
Returns the name of the persistence property represented by this mapping. |
IManagedType |
getParent()
Returns the parent managed type owning this mapping. |
IType |
getType()
Returns the type of this mapping. |
ITypeDeclaration |
getTypeDeclaration()
Returns the declaration of the Java class, which gives the information about type parameters, dimensionality, etc. |
boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Determines whether the given annotation is present on this type. |
boolean |
isCollection()
Determines whether this IMapping is a collection type mapping. |
boolean |
isProperty()
Determines whether this IMapping is a property type mapping. |
boolean |
isRelationship()
Determines whether this IMapping is a relationship type mapping. |
boolean |
isTransient()
Determines whether this IMapping is a transient mapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FromSubqueryResolver.VirtualMapping(IManagedType parent, java.lang.String name, Resolver resolver)
Method Detail |
---|
public int compareTo(IMapping mapping)
compareTo
in interface java.lang.Comparable<IMapping>
public int getMappingType()
getMappingType
in interface IMapping
IMappingType
when the provider only
supports generic JPApublic java.lang.String getName()
getName
in interface IMapping
public IManagedType getParent()
getParent
in interface IMapping
public IType getType()
@OneToMany
private Collection<Employee> employees;
"Employee" is the type. To retrieve Collection
, IMapping.getTypeDeclaration()
needs to be used, its type will be Collection
and it's generic type will be
Employee
.
getType
in interface IMapping
public ITypeDeclaration getTypeDeclaration()
@OneToMany
private Collection<Employee> employees;
"Collection<Employee>" is the type declaration.
getTypeDeclaration
in interface IMapping
public boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
hasAnnotation
in interface IMapping
annotationType
- The class of the annotation
true
if the annotation is defined on this type; false
otherwisepublic boolean isCollection()
IMapping
is a collection type mapping.
isCollection
in interface IMapping
true
if this IMapping
is a collection mapping;
false
otherwisepublic boolean isProperty()
IMapping
is a property type mapping.
isProperty
in interface IMapping
true
if this IMapping
is a property mapping; false
otherwisepublic boolean isRelationship()
IMapping
is a relationship type mapping.
isRelationship
in interface IMapping
true
if this IMapping
is a relationship mapping;
false
otherwisepublic boolean isTransient()
IMapping
is a transient mapping.
isTransient
in interface IMapping
true
if this IMapping
is a transient mapping;
false
otherwise
|
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 |