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
           
static java.lang.String TYPE_IS_DATE_OR_CALENDAR_PROPERTY
           
static java.lang.String TYPE_IS_SERIALIZABLE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.core.resource.java.JavaResourcePersistentMember
MAPPING_ANNOTATIONS_COLLECTION, PERSISTABLE_PROPERTY, SUPPORTING_ANNOTATIONS_COLLECTION
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getQualifiedReferenceEntityElementTypeName()
          Return the fully qualified type parameter for use as a target entity.
 java.lang.String getQualifiedReferenceEntityTypeName()
          Return the resolved qualified type name for the attribute if it as valid as a target entity type; i.e.
 java.lang.String getQualifiedTypeName()
          Return the resolved qualified type name for the attribute.
 boolean hasAnyAnnotations()
          Return whether the 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 whether the attribute type is a container: java.util.Collection java.util.Set java.util.List java.util.Map
 boolean typeIsDateOrCalendar()
           
 boolean typeIsSerializable()
           
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourcePersistentMember
addSupportingAnnotation, addSupportingAnnotation, getMappingAnnotation, getMappingAnnotation, getNameTextRange, getNonNullSupportingAnnotation, getNullMappingAnnotation, getSupportingAnnotation, isFor, isFor, isPersistable, isPersisted, mappingAnnotations, mappingAnnotationsSize, moveSupportingAnnotation, removeSupportingAnnotation, removeSupportingAnnotation, resolveTypes, setMappingAnnotation, supportingAnnotations, supportingAnnotations, supportingAnnotationsSize
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getFile, getJpaCompilationUnit, getTextRange, initialize, update
 
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_SERIALIZABLE_PROPERTY

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

TYPE_IS_DATE_OR_CALENDAR_PROPERTY

static final java.lang.String TYPE_IS_DATE_OR_CALENDAR_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()

isForField

boolean isForField()

isForProperty

boolean isForProperty()

typeIsBasic

boolean typeIsBasic()

isFinal

boolean isFinal()

isPublic

boolean isPublic()

typeIsSerializable

boolean typeIsSerializable()

typeIsDateOrCalendar

boolean typeIsDateOrCalendar()

typeIsContainer

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


getQualifiedTypeName

java.lang.String getQualifiedTypeName()
Return the resolved qualified type name for the attribute.


getQualifiedReferenceEntityTypeName

java.lang.String getQualifiedReferenceEntityTypeName()
Return the resolved qualified type name for the attribute if it as valid as a target entity type; i.e. not an array.

See Also:
typeIsContainer()

getQualifiedReferenceEntityElementTypeName

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


hasAnyAnnotations

boolean hasAnyAnnotations()
Return whether the attribute has any mapping or non-mapping annotations (of course only persistence-related annotations).