|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavaResourcePersistentMember
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.
| Field Summary | |
|---|---|
static java.lang.String |
MAPPING_ANNOTATIONS_COLLECTION
|
static java.lang.String |
PERSISTABLE_PROPERTY
|
static java.lang.String |
SUPPORTING_ANNOTATIONS_COLLECTION
|
| Method Summary | |
|---|---|
JavaResourceNode |
addSupportingAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Add a new supporting nestable annotation with the specified name. |
JavaResourceNode |
addSupportingAnnotation(java.lang.String annotationName)
Add a supporting annotation with the specified name. |
JavaResourceNode |
getMappingAnnotation()
Return the member's mapping annotation. |
JavaResourceNode |
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. |
JavaResourceNode |
getNonNullSupportingAnnotation(java.lang.String annotationName)
Return the specified supporting annotation. |
JavaResourceNode |
getNullMappingAnnotation(java.lang.String annotationName)
Return a null mapping annotation with the specified name. |
JavaResourceNode |
getSupportingAnnotation(java.lang.String annotationName)
Return the specified supporting annotation. |
boolean |
isFor(MethodSignature methodSignature,
int occurrence)
Return whether the Java resource persistent member is for the specified method. |
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 other files being added or removed. |
void |
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, getJpaCompilationUnit, 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()
JavaResourceNode getMappingAnnotation()
JavaResourceNode getMappingAnnotation(java.lang.String annotationName)
void setMappingAnnotation(java.lang.String annotationName)
JavaResourceNode getNullMappingAnnotation(java.lang.String annotationName)
AnnotationDefinition.buildNullAnnotation(JavaResourcePersistentMember,
org.eclipse.jpt.core.utility.jdt.Member)
java.util.Iterator<Annotation> supportingAnnotations()
mappingAnnotations()int supportingAnnotationsSize()
java.util.ListIterator<NestableAnnotation> supportingAnnotations(java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
JavaResourceNode getSupportingAnnotation(java.lang.String annotationName)
JavaResourceNode getNonNullSupportingAnnotation(java.lang.String annotationName)
JavaResourceNode addSupportingAnnotation(java.lang.String annotationName)
void removeSupportingAnnotation(java.lang.String annotationName)
JavaResourceNode addSupportingAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
void removeSupportingAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
void moveSupportingAnnotation(int targetIndex,
int sourceIndex,
java.lang.String containerAnnotationName)
boolean isPersistable()
boolean isPersisted()
boolean isFor(java.lang.String memberName,
int occurrence)
boolean isFor(MethodSignature methodSignature,
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 | |||||||||