public interface IMapping extends java.lang.Comparable<IMapping>
IManagedType| Type | Property and Description |
|---|---|
boolean |
is
Gets the value of the property property.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Gets the value of the property property.
|
boolean |
isRelationship()
Determines whether this
IMapping is a relationship type mapping. |
boolean |
isTransient()
Determines whether this
IMapping is a transient mapping. |
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 annotationtrue 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()
boolean isRelationship()
IMapping is a relationship type mapping.true if this IMapping is a relationship mapping;
false otherwiseEclipseLink 2.4.2, "build v20130514-5956486" API Reference