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

All Superinterfaces:
AccessHolder, org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaJpaContextNode, JpaContextNode, JpaNode, JpaStructureNode, Model, PersistentType, ReadOnlyAccessHolder
All Known Subinterfaces:
JavaPersistentType2_0

public interface JavaPersistentType
extends PersistentType, JavaJpaContextNode

Context Java persistent type.

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.

Since:
2.0
Version:
2.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
PersistentType.Owner
 
Field Summary
static java.lang.String ATTRIBUTES_LIST
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
MAPPING_PROPERTY, NAME_PROPERTY, SUPER_PERSISTENT_TYPE_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.AccessHolder
DEFAULT_ACCESS_PROPERTY, SPECIFIED_ACCESS_PROPERTY
 
Method Summary
 java.util.ListIterator<JavaPersistentAttribute> attributes()
          Return the persistent type's persistent attributes.
 JavaPersistentAttribute getAttributeFor(JavaResourcePersistentAttribute javaResourcePersistentAttribute)
           
 JavaPersistentAttribute getAttributeNamed(java.lang.String attributeName)
          Return the persistent attribute with the specified name, if it exists locally on the persistent type (as opposed to in its inheritance hierarchy).
 JavaTypeMapping getMapping()
          Return the persistent type's mapping.
 JavaResourcePersistentType getResourcePersistentType()
          Return the Java resource persistent type.
 boolean hasAnyAnnotatedAttributes()
          Return whether any attribute in this persistent type is annotated
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
allAttributeNames, allAttributes, ancestors, attributeNames, attributesSize, getMappingKey, getName, getOwnerDefaultAccess, getOwnerOverrideAccess, getSimpleName, getSuperPersistentType, getValidationTextRange, inheritanceHierarchy, isFor, isIn, isMapped, resolveAttribute, setMappingKey, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
dispose, getId, getResourceType, getSelectionTextRange, getStructureNode
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.AccessHolder
getDefaultAccess, getSpecifiedAccess, setSpecifiedAccess
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyAccessHolder
getAccess
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.java.JavaJpaContextNode
getValidationTextRange, javaCompletionProposals, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaProject, getParent, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart
getResource
 

Field Detail

ATTRIBUTES_LIST

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

getMapping

JavaTypeMapping getMapping()
Description copied from interface: PersistentType
Return the persistent type's mapping. Set the mapping via PersistentType.setMappingKey(String).

Specified by:
getMapping in interface PersistentType

attributes

java.util.ListIterator<JavaPersistentAttribute> attributes()
Description copied from interface: PersistentType
Return the persistent type's persistent attributes.

Specified by:
attributes in interface PersistentType

getAttributeNamed

JavaPersistentAttribute getAttributeNamed(java.lang.String attributeName)
Description copied from interface: PersistentType
Return the persistent attribute with the specified name, if it exists locally on the persistent type (as opposed to in its inheritance hierarchy).

Specified by:
getAttributeNamed in interface PersistentType

hasAnyAnnotatedAttributes

boolean hasAnyAnnotatedAttributes()
Return whether any attribute in this persistent type is annotated


getResourcePersistentType

JavaResourcePersistentType getResourcePersistentType()
Return the Java resource persistent type.


getAttributeFor

JavaPersistentAttribute getAttributeFor(JavaResourcePersistentAttribute javaResourcePersistentAttribute)