Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.eclipselink.core.context.orm
Interface EclipseLinkOrmPersistentType

All Superinterfaces:
AccessReference, DeleteTypeRefactoringParticipant, EclipseLinkAccessMethodsContainer, EclipseLinkSpecifiedAccessMethodsContainer, IAdaptable, JpaContextModel, JpaModel, JpaStructureNode, JptResourceTypeReference, ManagedType, MetamodelSourceType2_0, Model, OrmManagedType, OrmPersistentType, PersistentType, PersistentType2_0, SpecifiedAccessReference, TypeRefactoringParticipant

public interface EclipseLinkOrmPersistentType
extends OrmPersistentType, PersistentType2_0, EclipseLinkSpecifiedAccessMethodsContainer

eclipselink-orm.xml persistent type:


Nested Class Summary
static class EclipseLinkOrmPersistentType.IsDynamic
           
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.DeleteTypeRefactoringParticipant
DeleteTypeRefactoringParticipant.DeleteTypeEditsTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant
TypeRefactoringParticipant.MoveTypeEditsTransformer, TypeRefactoringParticipant.RenamePackageEditsTransformer, TypeRefactoringParticipant.RenameTypeEditsTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.jpa2.context.PersistentType2_0
PersistentType2_0.MetamodelTypeTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
PersistentType.AttributesTransformer, PersistentType.Config, PersistentType.MappingTransformer, PersistentType.OverriddenPersistentTypeTransformer, PersistentType.Parent
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.ManagedType
ManagedType.NameTransformer
 
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.jpa2.context.MetamodelSourceType2_0
MetamodelSourceType2_0.MetamodelSourceTypeComparator, MetamodelSourceType2_0.Synchronizer
 
Field Summary
static String DYNAMIC_PROPERTY
           
static org.eclipse.jpt.common.utility.predicate.Predicate<EclipseLinkOrmPersistentType> IS_DYNAMIC
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.orm.OrmPersistentType
DEFAULT_ATTRIBUTES_LIST, SPECIFIED_ATTRIBUTES_LIST
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.orm.OrmManagedType
CLASS_PROPERTY, JAVA_MANAGED_TYPE_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.jpa.core.jpa2.context.PersistentType2_0
DECLARING_TYPE_NAME_PROPERTY, METAMODEL_TYPE_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
ATTRIBUTES_TRANSFORMER, MAPPING_PROPERTY, MAPPING_TRANSFORMER, OVERRIDDEN_PERSISTENT_TYPE_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.ManagedType
NAME_PROPERTY, NAME_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
STRUCTURE_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.jpa.core.jpa2.context.MetamodelSourceType2_0
COMPARATOR
 
Fields inherited from interface org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkSpecifiedAccessMethodsContainer
DEFAULT_GET_METHOD, DEFAULT_GET_METHOD_PROPERTY, DEFAULT_SET_METHOD, DEFAULT_SET_METHOD_PROPERTY, SPECIFIED_GET_METHOD_PROPERTY, SPECIFIED_SET_METHOD_PROPERTY
 
Method Summary
 OrmSpecifiedPersistentAttribute addVirtualAttribute(String attributeName, String mappingKey, String attributeType, String targetType)
          Add a virtual attribute with the given attribute name and mapping key.
 EclipseLinkOrmTypeMapping getMapping()
          Return the persistent type's mapping.
 boolean isDynamic()
          The dynamic state is only based on the JavaResourceType being null.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.orm.OrmPersistentType
addAttributeToXml, addAttributeToXml, changeMapping, getAttributeNamed, getAttributes, getDefaultAttributes, getDefaultAttributesSize, getJavaPersistentType, getSpecifiedAttributes, getSpecifiedAttributesSize, getStructureType, getXmlManagedType, removeAttributeFromXml
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.orm.OrmManagedType
addXmlManagedTypeTo, dispose, getClass_, getDefaultPackage, getJavaManagedType, getParent, getXmlSequence, removeXmlManagedTypeFrom, setClass
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.DeleteTypeRefactoringParticipant
createDeleteTypeEdits
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant
createMoveTypeEdits, createRenamePackageEdits, createRenameTypeEdits
 
Methods inherited from interface org.eclipse.jpt.jpa.core.jpa2.context.PersistentType2_0
getDeclaringTypeName, getMetamodelType
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType
getAllAttributeNames, getAllAttributes, getAncestors, getAttributeNames, getAttributesSize, getAttributeTypeBinding, getInheritanceHierarchy, getManagedTypeType, getMappingKey, getOverriddenPersistentType, getSuperPersistentType, isMapped, resolveAttribute, setMappingKey
 
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.JpaStructureNode
addRootStructureNodesTo, containsOffset, getContextType, getFullTextRange, getSelectionTextRange, getStructureChildren, getStructureChildrenSize, 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.jpa2.context.MetamodelSourceType2_0
getAttributes, getJpaProject, getMetamodelFile, getName, getSuperPersistentType, isManaged, printBodySourceOn, synchronizeMetamodel
 
Methods inherited from interface org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkSpecifiedAccessMethodsContainer
getDefaultGetMethod, getDefaultSetMethod, getSpecifiedGetMethod, getSpecifiedSetMethod, setSpecifiedGetMethod, setSpecifiedSetMethod
 
Methods inherited from interface org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkAccessMethodsContainer
getGetMethod, getSetMethod
 

Field Detail

DYNAMIC_PROPERTY

static final String DYNAMIC_PROPERTY
See Also:
Constant Field Values

IS_DYNAMIC

static final org.eclipse.jpt.common.utility.predicate.Predicate<EclipseLinkOrmPersistentType> IS_DYNAMIC
Method Detail

isDynamic

boolean isDynamic()
The dynamic state is only based on the JavaResourceType being null. The access type should be VIRTUAL, but we will use validation to check this


addVirtualAttribute

OrmSpecifiedPersistentAttribute addVirtualAttribute(String attributeName,
                                                    String mappingKey,
                                                    String attributeType,
                                                    String targetType)
Add a virtual attribute with the given attribute name and mapping key. 'attributeType' and 'targetType' could be null depending on the mapping type.

See Also:
XmlAttributeMapping.setVirtualAttributeTypes(String, String), OrmAttributeMappingDefinition.isSingleRelationshipMapping(), OrmAttributeMappingDefinition.isCollectionMapping()

getMapping

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

Specified by:
getMapping in interface OrmPersistentType
Specified by:
getMapping in interface PersistentType

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.