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

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

public interface JavaPersistentAttribute
extends PersistentAttribute, 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.PersistentAttribute
DEFAULT_MAPPING_PROPERTY, NAME_PROPERTY, SPECIFIED_MAPPING_PROPERTY
 
Method Summary
 boolean contains(int offset, org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Return whether the attribute contains the given offset into the text file.
 JavaAttributeMapping getDefaultMapping()
           
 JavaAttributeMapping getMapping()
          Return the attribute's "specified" mapping, or if it is null return the "default" mapping.
 JavaPersistentType getPersistentType()
           
 JavaResourcePersistentAttribute getResourcePersistentAttribute()
           
 JavaAttributeMapping getSpecifiedMapping()
          Return the attribute's "specified" mapping, could be null
 JavaTypeMapping getTypeMapping()
           
 void initializeFromResource(JavaResourcePersistentAttribute resourcePersistentAttribute)
           
 void update(JavaResourcePersistentAttribute resourcePersistentAttribute)
           
 
Methods inherited from interface org.eclipse.jpt.core.context.PersistentAttribute
getDefaultMappingKey, getMappingKey, getName, getPrimaryKeyColumnName, isIdAttribute, isOverridableAssociation, isOverridableAttribute, isVirtual, setSpecifiedMappingKey
 
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

JavaAttributeMapping getMapping()
Description copied from interface: PersistentAttribute
Return the attribute's "specified" mapping, or if it is null return the "default" mapping. WIll not return null.

Specified by:
getMapping in interface PersistentAttribute

getSpecifiedMapping

JavaAttributeMapping getSpecifiedMapping()
Description copied from interface: PersistentAttribute
Return the attribute's "specified" mapping, could be null

Specified by:
getSpecifiedMapping in interface PersistentAttribute

getDefaultMapping

JavaAttributeMapping getDefaultMapping()

getTypeMapping

JavaTypeMapping getTypeMapping()
Specified by:
getTypeMapping in interface PersistentAttribute

getPersistentType

JavaPersistentType getPersistentType()
Specified by:
getPersistentType in interface PersistentAttribute

initializeFromResource

void initializeFromResource(JavaResourcePersistentAttribute resourcePersistentAttribute)

update

void update(JavaResourcePersistentAttribute resourcePersistentAttribute)

getResourcePersistentAttribute

JavaResourcePersistentAttribute getResourcePersistentAttribute()

contains

boolean contains(int offset,
                 org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the attribute contains the given offset into the text file.