|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavaResourcePersistentMember
Java source code or binary persistent member. 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 |
MAPPING_ANNOTATIONS_COLLECTION
|
static java.lang.String |
PERSISTABLE_PROPERTY
|
static java.lang.String |
SUPPORTING_ANNOTATIONS_COLLECTION
|
| Method Summary | |
|---|---|
Annotation |
addSupportingAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Add a new supporting nestable annotation with the specified name. |
Annotation |
addSupportingAnnotation(java.lang.String annotationName)
Add a supporting annotation with the specified name. |
Annotation |
getMappingAnnotation()
Return the member's mapping annotation. |
Annotation |
getMappingAnnotation(java.lang.String annotationName)
Return the mapping annotation with the specified name. |
TextRange |
getNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the text range for the member's name. |
Annotation |
getNonNullSupportingAnnotation(java.lang.String annotationName)
Return the specified supporting annotation. |
Annotation |
getSupportingAnnotation(java.lang.String annotationName)
Return the specified supporting annotation. |
boolean |
isFor(java.lang.String memberName,
int occurrence)
Return whether the Java resource persistent member is for the specified member. |
boolean |
isPersistable()
Return whether the underlying JDT member is persistable according to the JPA spec. |
boolean |
isPersisted()
Return whether the underlying JDT member is currently annotated as being persistent (equivalent to "is mapped"). |
java.util.Iterator<Annotation> |
mappingAnnotations()
Return the member's mapping annotations. |
int |
mappingAnnotationsSize()
Return the number of mapping annotations. |
void |
moveSupportingAnnotation(int targetIndex,
int sourceIndex,
java.lang.String containerAnnotationName)
Move the supporting nestable annotation found in the specified container annotation at the specified source index to the specified target index. |
void |
removeSupportingAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Remove the specified supporting nestable annotation. |
void |
removeSupportingAnnotation(java.lang.String annotationName)
Remove the specified supporting annotation. |
void |
resolveTypes(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Resolve type information that could be dependent on changes elsewhere in the workspace. |
Annotation |
setMappingAnnotation(java.lang.String annotationName)
Change the mapping annotation. |
java.util.Iterator<Annotation> |
supportingAnnotations()
Return the member's supporting annotations. |
java.util.ListIterator<NestableAnnotation> |
supportingAnnotations(java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Return the specified supporting nested annotations. |
int |
supportingAnnotationsSize()
Return the number of supporting annotations. |
| Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode |
|---|
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, update |
| Field Detail |
|---|
static final java.lang.String MAPPING_ANNOTATIONS_COLLECTION
static final java.lang.String SUPPORTING_ANNOTATIONS_COLLECTION
static final java.lang.String PERSISTABLE_PROPERTY
| Method Detail |
|---|
java.util.Iterator<Annotation> mappingAnnotations()
supportingAnnotations()int mappingAnnotationsSize()
Annotation getMappingAnnotation()
Annotation getMappingAnnotation(java.lang.String annotationName)
Annotation setMappingAnnotation(java.lang.String annotationName)
java.util.Iterator<Annotation> supportingAnnotations()
mappingAnnotations()int supportingAnnotationsSize()
java.util.ListIterator<NestableAnnotation> supportingAnnotations(java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Annotation getSupportingAnnotation(java.lang.String annotationName)
Annotation getNonNullSupportingAnnotation(java.lang.String annotationName)
Annotation addSupportingAnnotation(java.lang.String annotationName)
void removeSupportingAnnotation(java.lang.String annotationName)
Annotation addSupportingAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
void moveSupportingAnnotation(int targetIndex,
int sourceIndex,
java.lang.String containerAnnotationName)
void removeSupportingAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
boolean isPersistable()
boolean isPersisted()
boolean isFor(java.lang.String memberName,
int occurrence)
TextRange getNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
void resolveTypes(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||