Dali Provisional API
Release 3.2

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

All Superinterfaces:
AccessReference, IAdaptable, JavaElementReference, JavaManagedType, JpaContextModel, JpaModel, JpaStructureNode, JptResourceTypeReference, ManagedType, Model, PersistentType, SpecifiedAccessReference

public interface JavaPersistentType
extends PersistentType, JavaManagedType

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
PersistentType.AttributesTransformer, PersistentType.Config, PersistentType.MappingTransformer, PersistentType.OverriddenPersistentTypeTransformer, PersistentType.Parent, PersistentType.SuperPersistentTypeTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
JpaStructureNode.ContextType
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaModel
JpaModel.JpaVersionIsCompatibleWith
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.ManagedType
ManagedType.NameTransformer
 
Field Summary
static String ATTRIBUTES_LIST
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
ATTRIBUTES_TRANSFORMER, MAPPING_PROPERTY, MAPPING_TRANSFORMER, OVERRIDDEN_PERSISTENT_TYPE_TRANSFORMER, SUPER_PERSISTENT_TYPE_PROPERTY, SUPER_PERSISTENT_TYPE_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
CHILDREN_COLLECTION
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.SpecifiedAccessReference
DEFAULT_ACCESS_PROPERTY, SPECIFIED_ACCESS_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.ManagedType
NAME_PROPERTY, NAME_TRANSFORMER
 
Method Summary
 JavaSpecifiedPersistentAttribute getAttributeFor(JavaResourceAttribute javaResourceAttribute)
           
 JavaSpecifiedPersistentAttribute getAttributeNamed(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).
 org.eclipse.jpt.common.utility.iterable.ListIterable<JavaSpecifiedPersistentAttribute> getAttributes()
          Return the persistent type's persistent attributes.
 JavaTypeMapping getMapping()
          Return the persistent type's mapping.
 Class<? extends JavaPersistentType> getType()
          Return the managed type's type.
 boolean hasAnyAnnotatedAttributes()
          Return whether any attribute in this persistent type is annotated
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
getAllAttributeNames, getAllAttributes, getAncestors, getAttributeNames, getAttributesSize, getAttributeTypeBinding, getInheritanceHierarchy, getMappingKey, getOverriddenPersistentType, getSuperPersistentType, isMapped, resolveAttribute, setMappingKey
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
addRootStructureNodesTo, containsOffset, getChildren, getChildrenSize, getContextType, getFullTextRange, getSelectionTextRange, getStructureNode
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.SpecifiedAccessReference
getDefaultAccess, getSpecifiedAccess, setSpecifiedAccess
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.AccessReference
getAccess
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ManagedType
getJavaResourceType, getName, getSimpleName, getTypeQualifiedName, isFor, isIn
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.java.JavaElementReference
getJavaElement
 

Field Detail

ATTRIBUTES_LIST

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

getType

Class<? extends JavaPersistentType> getType()
Description copied from interface: ManagedType
Return the managed type's type.

Specified by:
getType in interface JavaManagedType
Specified by:
getType in interface JpaStructureNode
Specified by:
getType in interface ManagedType
Specified by:
getType in interface PersistentType
See Also:
OrmManagedTypeDefinition.getContextType(), JavaManagedTypeDefinition.getType()

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

getAttributes

org.eclipse.jpt.common.utility.iterable.ListIterable<JavaSpecifiedPersistentAttribute> getAttributes()
Description copied from interface: PersistentType
Return the persistent type's persistent attributes.

Specified by:
getAttributes in interface PersistentType

getAttributeNamed

JavaSpecifiedPersistentAttribute getAttributeNamed(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


getAttributeFor

JavaSpecifiedPersistentAttribute getAttributeFor(JavaResourceAttribute javaResourceAttribute)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.