|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RelationshipMappingAnnotation
Common protocol among javax.persistence.ManyToOne javax.persistence.ManyToMany javax.persistence.OneToMany javax.persistence.OneToOne Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode |
|---|
JavaResourceNode.Root |
| Field Summary | |
|---|---|
static java.lang.String |
CASCADE_ALL_PROPERTY
|
static java.lang.String |
CASCADE_MERGE_PROPERTY
|
static java.lang.String |
CASCADE_PERSIST_PROPERTY
|
static java.lang.String |
CASCADE_REFRESH_PROPERTY
|
static java.lang.String |
CASCADE_REMOVE_PROPERTY
|
static java.lang.String |
FETCH_PROPERTY
|
static java.lang.String |
FULLY_QUALIFIED_TARGET_ENTITY_CLASS_NAME_PROPERTY
|
static java.lang.String |
TARGET_ENTITY_PROPERTY
|
| Method Summary | |
|---|---|
TextRange |
getCascadeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'cascade' element. |
FetchType |
getFetch()
Corresponds to the 'fetch' element of the relationship mapping annotations. |
TextRange |
getFetchTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'fetch' element. |
java.lang.String |
getFullyQualifiedTargetEntityClassName()
Return the fully-qualified target entity class name as resolved by the AST's bindings. |
java.lang.String |
getTargetEntity()
Corresponds to the 'targetEntity' element of the relationship mapping annotations. |
TextRange |
getTargetEntityTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'targetEntity' element. |
boolean |
isCascadeAll()
Corresponds to the 'cascade' element of the relationship annotations. |
boolean |
isCascadeMerge()
Corresponds to the 'cascade' element of the relationship annotations. |
boolean |
isCascadePersist()
Corresponds to the 'cascade' element of the relationship annotations. |
boolean |
isCascadeRefresh()
Corresponds to the 'cascade' element of the relationship annotations. |
boolean |
isCascadeRemove()
Corresponds to the 'cascade' element of the relationship annotations. |
void |
setCascadeAll(boolean all)
Corresponds to the 'cascade' element of the relationship annotations. |
void |
setCascadeMerge(boolean merge)
Corresponds to the 'cascade' element of the relationship annotations. |
void |
setCascadePersist(boolean persist)
Corresponds to the 'cascade' element of the relationship annotations. |
void |
setCascadeRefresh(boolean refresh)
Corresponds to the 'cascade' element of the relationship annotations. |
void |
setCascadeRemove(boolean remove)
Corresponds to the 'cascade' element of the relationship annotations. |
void |
setFetch(FetchType fetch)
Corresponds to the 'fetch' element of the relationship annotations. |
void |
setTargetEntity(java.lang.String targetEntity)
Corresponds to the 'targetEntity' element of the relationship mapping annotations. |
| Methods inherited from interface org.eclipse.jpt.core.resource.java.Annotation |
|---|
getAnnotationName, getAstAnnotation, newAnnotation, removeAnnotation |
| Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode |
|---|
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, synchronizeWith |
| Methods inherited from interface org.eclipse.jpt.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Field Detail |
|---|
static final java.lang.String TARGET_ENTITY_PROPERTY
static final java.lang.String FULLY_QUALIFIED_TARGET_ENTITY_CLASS_NAME_PROPERTY
static final java.lang.String FETCH_PROPERTY
static final java.lang.String CASCADE_ALL_PROPERTY
static final java.lang.String CASCADE_MERGE_PROPERTY
static final java.lang.String CASCADE_PERSIST_PROPERTY
static final java.lang.String CASCADE_REFRESH_PROPERTY
static final java.lang.String CASCADE_REMOVE_PROPERTY
| Method Detail |
|---|
java.lang.String getTargetEntity()
@ManyToMany(targetEntity=Employee.class)
will return "Employee"
void setTargetEntity(java.lang.String targetEntity)
TextRange getTargetEntityTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'targetEntity' element. If the element
does not exist return the TextRange for the relationship mapping annotation.
java.lang.String getFullyQualifiedTargetEntityClassName()
@ManyToMany(targetEntity=Employee.class)
will return "model.Employee" if there is an import for model.Employee.
FetchType getFetch()
void setFetch(FetchType fetch)
TextRange getFetchTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'fetch' element. If the element
does not exist return the TextRange for the relationship mapping annotation.
boolean isCascadeAll()
void setCascadeAll(boolean all)
boolean isCascadeMerge()
void setCascadeMerge(boolean merge)
boolean isCascadePersist()
void setCascadePersist(boolean persist)
boolean isCascadeRefresh()
void setCascadeRefresh(boolean refresh)
boolean isCascadeRemove()
void setCascadeRemove(boolean remove)
TextRange getCascadeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'cascade' element. If the element
does not exist return the TextRange for the relationship mapping annotation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||