org.eclipse.jpt.core.resource.java
Interface JavaResourcePersistentAttribute

All Superinterfaces:
JavaResourceNode, JavaResourcePersistentMember, Model

public interface JavaResourcePersistentAttribute
extends 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 FINAL_PROPERTY
           
static java.lang.String PUBLIC_PROPERTY
           
static java.lang.String QUALIFIED_REFERENCE_ENTITY_ELEMENT_TYPE_NAME_PROPERTY
           
static java.lang.String QUALIFIED_REFERENCE_ENTITY_TYPE_NAME_PROPERTY
           
static java.lang.String QUALIFIED_TYPE_NAME_PROPERTY
           
static java.lang.String TYPE_IS_BASIC_PROPERTY
           
static java.lang.String TYPE_IS_CONTAINER_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.core.resource.java.JavaResourcePersistentMember
ANNOTATIONS_COLLECTION, MAPPING_ANNOTATIONS_COLLECTION, PERSISTABLE_PROPERTY
 
Method Summary
 Member getMember()
           
 java.lang.String getName()
           
 java.lang.String getQualifiedReferenceEntityElementTypeName()
          Returns the fully qualified type parameter for use as a target entity
 java.lang.String getQualifiedReferenceEntityTypeName()
          Returns the resolved qualfied type name for the attribute if it as valid as a target entity type.
 java.lang.String getQualifiedTypeName()
          Returns the resolved qualfied type name for the attribute
 boolean hasAnyAnnotation()
          Return true if this attribute has any mapping or non-mapping annotations (of course only persistence related annotations)
 boolean isFinal()
           
 boolean isForField()
           
 boolean isForProperty()
           
 boolean isPublic()
           
 boolean typeIsBasic()
           
 boolean typeIsContainer()
          Return true if the attribute type is a container: java.util.Collection java.util.Set java.util.List java.util.Map
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourcePersistentMember
addAnnotation, addAnnotation, annotations, annotations, annotationsSize, getAnnotation, getMappingAnnotation, getMappingAnnotation, getNameTextRange, getNonNullAnnotation, getNullMappingAnnotation, isFor, isFor, isPersistable, isPersisted, mappingAnnotations, mappingAnnotationsSize, move, removeAnnotation, removeAnnotation, resolveTypes, setMappingAnnotation
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getJpaCompilationUnit, getResourceModel, getTextRange, initialize, updateFromJava
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 

Field Detail

TYPE_IS_BASIC_PROPERTY

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

FINAL_PROPERTY

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

PUBLIC_PROPERTY

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

TYPE_IS_CONTAINER_PROPERTY

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

QUALIFIED_TYPE_NAME_PROPERTY

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

QUALIFIED_REFERENCE_ENTITY_TYPE_NAME_PROPERTY

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

QUALIFIED_REFERENCE_ENTITY_ELEMENT_TYPE_NAME_PROPERTY

static final java.lang.String QUALIFIED_REFERENCE_ENTITY_ELEMENT_TYPE_NAME_PROPERTY
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()

getMember

Member getMember()

isForField

boolean isForField()

isForProperty

boolean isForProperty()

typeIsBasic

boolean typeIsBasic()

isFinal

boolean isFinal()

isPublic

boolean isPublic()

typeIsContainer

boolean typeIsContainer()
Return true if the attribute type is a container: java.util.Collection java.util.Set java.util.List java.util.Map

Returns:

getQualifiedTypeName

java.lang.String getQualifiedTypeName()
Returns the resolved qualfied type name for the attribute


getQualifiedReferenceEntityTypeName

java.lang.String getQualifiedReferenceEntityTypeName()
Returns the resolved qualfied type name for the attribute if it as valid as a target entity type. i.e. not an array. see typeIsContainer() to be used with this


getQualifiedReferenceEntityElementTypeName

java.lang.String getQualifiedReferenceEntityElementTypeName()
Returns the fully qualified type parameter for use as a target entity


hasAnyAnnotation

boolean hasAnyAnnotation()
Return true if this attribute has any mapping or non-mapping annotations (of course only persistence related annotations)