org.eclipse.jpt.core.context
Interface BaseEmbeddedMapping

All Superinterfaces:
AttributeMapping, AttributeOverride.Owner, BaseOverride.Owner, org.eclipse.core.runtime.IAdaptable, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
EmbeddedIdMapping, EmbeddedMapping, JavaBaseEmbeddedMapping, JavaEmbeddedIdMapping, JavaEmbeddedMapping, OrmBaseEmbeddedMapping, OrmEmbeddedIdMapping, OrmEmbeddedMapping

public interface BaseEmbeddedMapping
extends AttributeMapping, AttributeOverride.Owner

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
static java.lang.String SPECIFIED_ATTRIBUTE_OVERRIDES_LIST
           
static java.lang.String VIRTUAL_ATTRIBUTE_OVERRIDES_LIST
           
 
Method Summary
<T extends AttributeOverride>
java.util.ListIterator<T>
attributeOverrides()
          Return a list iterator of the attribute overrides whether specified or virtual.
 int attributeOverridesSize()
          Return the number of attribute overrides, both specified and default.
 AttributeOverride getAttributeOverrideNamed(java.lang.String name)
          Return the attribute overrides, whether specified or default, with the given name.
 void moveSpecifiedAttributeOverride(int targetIndex, int sourceIndex)
          Move the specified attribute override from the source index to the target index.
<T extends AttributeOverride>
java.util.ListIterator<T>
specifiedAttributeOverrides()
          Return a list iterator of the specified attribute overrides.
 int specifiedAttributeOverridesSize()
          Return the number of specified attribute overrides.
<T extends AttributeOverride>
java.util.ListIterator<T>
virtualAttributeOverrides()
          Return a list iterator of the virtual attribute overrides.
 int virtualAttributeOverridesSize()
          Return the number of virtual attribute overrides.
 
Methods inherited from interface org.eclipse.jpt.core.context.AttributeMapping
getKey, getPersistentAttribute, getPrimaryKeyColumnName, getTypeMapping, isDefault, isIdMapping, isOverridableAssociationMapping, isOverridableAttributeMapping
 
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.context.AttributeOverride.Owner
getColumnMapping
 
Methods inherited from interface org.eclipse.jpt.core.context.BaseOverride.Owner
getTypeMapping, isVirtual, setVirtual
 

Field Detail

SPECIFIED_ATTRIBUTE_OVERRIDES_LIST

static final java.lang.String SPECIFIED_ATTRIBUTE_OVERRIDES_LIST
See Also:
Constant Field Values

VIRTUAL_ATTRIBUTE_OVERRIDES_LIST

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

attributeOverrides

<T extends AttributeOverride> java.util.ListIterator<T> attributeOverrides()
Return a list iterator of the attribute overrides whether specified or virtual. This will not be null.


attributeOverridesSize

int attributeOverridesSize()
Return the number of attribute overrides, both specified and default.


specifiedAttributeOverrides

<T extends AttributeOverride> java.util.ListIterator<T> specifiedAttributeOverrides()
Return a list iterator of the specified attribute overrides. This will not be null.


specifiedAttributeOverridesSize

int specifiedAttributeOverridesSize()
Return the number of specified attribute overrides.


virtualAttributeOverrides

<T extends AttributeOverride> java.util.ListIterator<T> virtualAttributeOverrides()
Return a list iterator of the virtual attribute overrides. This will not be null.


virtualAttributeOverridesSize

int virtualAttributeOverridesSize()
Return the number of virtual attribute overrides.


moveSpecifiedAttributeOverride

void moveSpecifiedAttributeOverride(int targetIndex,
                                    int sourceIndex)
Move the specified attribute override from the source index to the target index.


getAttributeOverrideNamed

AttributeOverride getAttributeOverrideNamed(java.lang.String name)
Return the attribute overrides, whether specified or default, with the given name.