org.eclipse.jpt.core.context.java
Interface JavaPersistentType

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, JavaJpaContextNode, JpaContextNode, JpaNode, JpaStructureNode, Model, PersistentType

public interface JavaPersistentType
extends PersistentType, JavaJpaContextNode

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
 
Fields inherited from interface org.eclipse.jpt.core.context.PersistentType
ACCESS_PROPERTY, MAPPING_PROPERTY, NAME_PROPERTY, PARENT_PERSISTENT_TYPE_PROPERTY, SPECIFIED_ATTRIBUTES_LIST
 
Method Summary
 java.util.ListIterator<JavaPersistentAttribute> attributes()
          Return a read-only iterator of the contained PersistentAttribute
 JavaPersistentAttribute getAttributeNamed(java.lang.String attributeName)
          Return the attribute named attributeName if it exists locally on this type
 JavaTypeMapping getMapping()
           
 boolean hasAnyAttributeMappingAnnotations()
          Return whether any attribute in this persistent type contains a mapping annotation
 PersistentAttribute resolveAttribute(java.lang.String attributeName)
          Resolve and return the attribute named attributeName if it is distinct and exists within the context of this type
 void update(JavaResourcePersistentType persistentTypeResource)
           
 
Methods inherited from interface org.eclipse.jpt.core.context.PersistentType
addToMessages, allAttributeNames, allAttributes, attributeNames, attributesSize, getAccess, getMappingKey, getName, getParentPersistentType, inheritanceHierarchy, isMapped, setMappingKey
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getEntityMappings, getOrmPersistentType, getPersistenceUnit
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
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
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode
dispose, getId, getSelectionTextRange, getStructureNode
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
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
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.context.java.JavaJpaContextNode
addToMessages, getValidationTextRange, javaCompletionProposals
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getEntityMappings, getOrmPersistentType, getPersistenceUnit
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
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
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getMapping

JavaTypeMapping getMapping()
Specified by:
getMapping in interface PersistentType

attributes

java.util.ListIterator<JavaPersistentAttribute> attributes()
Description copied from interface: PersistentType
Return a read-only iterator of the contained PersistentAttribute

Specified by:
attributes in interface PersistentType

getAttributeNamed

JavaPersistentAttribute getAttributeNamed(java.lang.String attributeName)
Description copied from interface: PersistentType
Return the attribute named attributeName if it exists locally on this type

Specified by:
getAttributeNamed in interface PersistentType

resolveAttribute

PersistentAttribute resolveAttribute(java.lang.String attributeName)
Resolve and return the attribute named attributeName if it is distinct and exists within the context of this type

Specified by:
resolveAttribute in interface PersistentType

hasAnyAttributeMappingAnnotations

boolean hasAnyAttributeMappingAnnotations()
Return whether any attribute in this persistent type contains a mapping annotation

Returns:

update

void update(JavaResourcePersistentType persistentTypeResource)