| 
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01  | 
||||||||
| 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 | |
|---|---|
 IMappingType | 
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.  | 
| Methods inherited from interface java.lang.Comparable | 
|---|
compareTo | 
| Method Detail | 
|---|
IMappingType getMappingType()
java.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 otherwise
  | 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||