org.eclipse.jpt.jpa.core.resource.java
Interface JavaResourcePersistentMember

All Superinterfaces:
JavaResourceAnnotatedElement, JavaResourceNode, Model
All Known Subinterfaces:
JavaResourcePersistentAttribute, JavaResourcePersistentType, JavaResourcePersistentType2_0

public interface JavaResourcePersistentMember
extends JavaResourceAnnotatedElement

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.

Since:
2.0
Version:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
static java.lang.String FINAL_PROPERTY
           
static Filter<JavaResourcePersistentMember> PERSISTABLE_MEMBER_FILTER
           
static java.lang.String PERSISTABLE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceAnnotatedElement
ANNOTATIONS_COLLECTION
 
Method Summary
 boolean isFinal()
          Return whether the type is final.
 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.
 void resolveTypes(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Resolve type information that could be dependent on changes elsewhere in the workspace.
 Annotation setPrimaryAnnotation(java.lang.String primaryAnnotationName, java.lang.Iterable<java.lang.String> supportingAnnotationNames)
          Set the specified primary annotation as the first annotation and remove all known persistence annotations (i.e.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceAnnotatedElement
addAnnotation, addAnnotation, addStandAloneAnnotation, annotations, annotations, annotationsSize, getAnnotation, getNameTextRange, getNonNullAnnotation, isAnnotated, moveAnnotation, removeAnnotation, removeAnnotation
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange, initialize, synchronizeWith
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 

Field Detail

PERSISTABLE_PROPERTY

static final java.lang.String PERSISTABLE_PROPERTY
See Also:
Constant Field Values

FINAL_PROPERTY

static final java.lang.String FINAL_PROPERTY
See Also:
Constant Field Values

PERSISTABLE_MEMBER_FILTER

static final Filter<JavaResourcePersistentMember> PERSISTABLE_MEMBER_FILTER
Method Detail

setPrimaryAnnotation

Annotation setPrimaryAnnotation(java.lang.String primaryAnnotationName,
                                java.lang.Iterable<java.lang.String> supportingAnnotationNames)
Set the specified primary annotation as the first annotation and remove all known persistence annotations (i.e. do not remove non-persistence annotations) not included in the specified list of supporting annotations. The specified primary annotation name can be null and, if the list of supporting annotations is empty, all the persistence annotations will be removed.


isPersistable

boolean isPersistable()
Return whether the underlying JDT member is persistable according to the JPA spec.


isFinal

boolean isFinal()
Return whether the type is final.


isFor

boolean isFor(java.lang.String memberName,
              int occurrence)
Return whether the Java resource persistent member is for the specified member.


resolveTypes

void resolveTypes(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Resolve type information that could be dependent on changes elsewhere in the workspace.