|
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 | ||||||||
public interface IMapping
The external representation of a mapping, which represents a single persistence property of a managed type.
IManagedType| Method Summary | |
|---|---|
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 interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
int getMappingType()
IMappingType when the provider only
supports generic JPAjava.lang.String getName()
IManagedType getParent()
IType getType()
@OneToMany
private Collection<Employee> employees;
"Employee" is the type. To retrieve Collection, getTypeDeclaration()
needs to be used, its type will be Collection and it's generic type will be
Employee.
ITypeDeclaration getTypeDeclaration()
@OneToMany
private Collection<Employee> employees;
"Collection<Employee>" is the type declaration.
boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType - The class of the annotation
true if the annotation is defined on this type; false
otherwiseboolean isCollection()
IMapping is a collection type mapping.
true if this IMapping is a collection mapping;
false otherwiseboolean isProperty()
IMapping is a property type mapping.
true if this IMapping is a property mapping; false
otherwiseboolean isRelationship()
IMapping is a relationship type mapping.
true if this IMapping is a relationship mapping;
false otherwiseboolean isTransient()
IMapping is a transient mapping.
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 | ||||||||