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

All Superinterfaces:
JavaResourceNode, JavaResourcePersistentMember, Model

public interface JavaResourcePersistentType
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 ABSTRACT_PROPERTY
           
static java.lang.String ACCESS_PROPERTY
           
static java.lang.String ATTRIBUTES_COLLECTION
           
static java.lang.String NAME_PROPERTY
           
static java.lang.String NESTED_TYPES_COLLECTION
           
static java.lang.String QUALIFIED_NAME_PROPERTY
           
static java.lang.String SUPER_CLASS_QUALIFIED_NAME_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.core.resource.java.JavaResourcePersistentMember
ANNOTATIONS_COLLECTION, MAPPING_ANNOTATIONS_COLLECTION, PERSISTABLE_PROPERTY
 
Method Summary
 java.util.Iterator<JavaResourcePersistentAttribute> attributes()
          Return only the persistable attributes, those that respond true to JavaResourcePersistentMember.isPersistable() This returns fields and properties
 java.util.Iterator<JavaResourcePersistentAttribute> fields()
          Return only the persistable fields, those that respond true to JavaResourcePersistentMember.isPersistable() This returns filters out all properties and only returns fields
 AccessType getAccess()
           
 JavaResourcePersistentType getJavaPersistentTypeResource(java.lang.String fullyQualifiedTypeName)
           
 Member getMember()
           
 java.lang.String getName()
          Return the fully unqualified type name
 java.lang.String getQualifiedName()
          Return the fully qualified type name
 java.lang.String getSuperClassQualifiedName()
           
 boolean hasAnyAttributeAnnotations()
          Return whether any attributes in this persistentType have JPA annotations on them.
 boolean isAbstract()
           
 java.util.Iterator<JavaResourcePersistentType> nestedTypes()
          Return only the immediately nested persistable nestedTypes
 java.util.Iterator<JavaResourcePersistentAttribute> properties()
          Return only the persistable fields, those that respond true to JavaResourcePersistentMember.isPersistable() This returns filters out all fields and only returns properties
 
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

NESTED_TYPES_COLLECTION

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

ATTRIBUTES_COLLECTION

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

QUALIFIED_NAME_PROPERTY

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

NAME_PROPERTY

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

SUPER_CLASS_QUALIFIED_NAME_PROPERTY

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

ACCESS_PROPERTY

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

ABSTRACT_PROPERTY

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

nestedTypes

java.util.Iterator<JavaResourcePersistentType> nestedTypes()
Return only the immediately nested persistable nestedTypes


attributes

java.util.Iterator<JavaResourcePersistentAttribute> attributes()
Return only the persistable attributes, those that respond true to JavaResourcePersistentMember.isPersistable() This returns fields and properties


fields

java.util.Iterator<JavaResourcePersistentAttribute> fields()
Return only the persistable fields, those that respond true to JavaResourcePersistentMember.isPersistable() This returns filters out all properties and only returns fields


properties

java.util.Iterator<JavaResourcePersistentAttribute> properties()
Return only the persistable fields, those that respond true to JavaResourcePersistentMember.isPersistable() This returns filters out all fields and only returns properties


getJavaPersistentTypeResource

JavaResourcePersistentType getJavaPersistentTypeResource(java.lang.String fullyQualifiedTypeName)

getQualifiedName

java.lang.String getQualifiedName()
Return the fully qualified type name


getName

java.lang.String getName()
Return the fully unqualified type name


getSuperClassQualifiedName

java.lang.String getSuperClassQualifiedName()

getAccess

AccessType getAccess()

isAbstract

boolean isAbstract()

getMember

Member getMember()

hasAnyAttributeAnnotations

boolean hasAnyAttributeAnnotations()
Return whether any attributes in this persistentType have JPA annotations on them.