public abstract class AbstractMapping extends java.lang.Object implements IMapping
IMapping that is wrapping the runtime representation
of a persistent attribute.| Type | Property and Description |
|---|---|
boolean |
is
Gets the value of the property property.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IMapping mapping) |
int |
getMappingType()
Returns the type of this mapping.
|
java.lang.reflect.Member |
getMember()
Returns the Java
Member wrapped by this mapping, which represents a persistent attribute. |
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 |
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. |
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waithasAnnotationpublic boolean isProperty
isProperty in interface IMappingpublic int compareTo(IMapping mapping)
compareTo in interface java.lang.Comparable<IMapping>public int getMappingType()
getMappingType in interface IMappingIMappingType when the provider only
supports generic JPApublic java.lang.reflect.Member getMember()
Member wrapped by this mapping, which represents a persistent attribute.Memberpublic java.lang.String getName()
public IManagedType getParent()
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.
public ITypeDeclaration getTypeDeclaration()
@OneToMany
private Collection<Employee> employees;
"Collection<Employee>" is the type declaration.
getTypeDeclaration in interface IMappingpublic boolean isCollection()
IMapping is a collection type mapping.isCollection in interface IMappingtrue if this IMapping is a collection mapping;
false otherwisepublic boolean isProperty()
isProperty in interface IMappingpublic boolean isRelationship()
IMapping is a relationship type mapping.isRelationship in interface IMappingtrue if this IMapping is a relationship mapping;
false otherwisepublic boolean isTransient()
IMapping is a transient mapping.isTransient in interface IMappingtrue if this IMapping is a transient mapping;
false otherwisepublic java.lang.String toString()
toString in class java.lang.ObjectEclipseLink 2.4.2, "build v20130514-5956486" API Reference