org.eclipse.jpt.core.context
Interface OneToOneMapping

All Superinterfaces:
AttributeMapping, Fetchable, org.eclipse.core.runtime.IAdaptable, JpaContextNode, JpaNode, Model, NonOwningMapping, Nullable, RelationshipMapping, SingleRelationshipMapping
All Known Subinterfaces:
JavaOneToOneMapping, OrmOneToOneMapping

public interface OneToOneMapping
extends SingleRelationshipMapping, NonOwningMapping

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 PRIMAY_KEY_JOIN_COLUMNS_LIST
           
 
Fields inherited from interface org.eclipse.jpt.core.context.SingleRelationshipMapping
DEFAULT_FETCH_TYPE, DEFAULT_JOIN_COLUMN, SPECIFIED_JOIN_COLUMNS_LIST
 
Fields inherited from interface org.eclipse.jpt.core.context.RelationshipMapping
DEFAULT_TARGET_ENTITY_PROPERTY, RESOLVED_TARGET_ENTITY_PROPERTY, SPECIFIED_TARGET_ENTITY_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.core.context.Fetchable
DEFAULT_FETCH_PROPERTY, SPECIFIED_FETCH_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.core.context.Nullable
DEFAULT_OPTIONAL, DEFAULT_OPTIONAL_PROPERTY, SPECIFIED_OPTIONAL_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.core.context.NonOwningMapping
MAPPED_BY_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.core.context.RelationshipMapping
DEFAULT_TARGET_ENTITY_PROPERTY, RESOLVED_TARGET_ENTITY_PROPERTY, SPECIFIED_TARGET_ENTITY_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.core.context.Fetchable
DEFAULT_FETCH_PROPERTY, SPECIFIED_FETCH_PROPERTY
 
Method Summary
 PrimaryKeyJoinColumn addPrimaryKeyJoinColumn(int index)
          Add a specified join column to the join table return the object representing it.
 boolean containsPrimaryKeyJoinColumns()
           
 void movePrimaryKeyJoinColumn(int targetIndex, int sourceIndex)
          Move the specified join column from the source index to the target index.
<T extends PrimaryKeyJoinColumn>
java.util.ListIterator<T>
primaryKeyJoinColumns()
          Return a list iterator of the primary key join columns.
 int primaryKeyJoinColumnsSize()
          Return the number of join columns, both specified and default.
 void removePrimaryKeyJoinColumn(int index)
          Remove the specified join column from the join table.
 void removePrimaryKeyJoinColumn(PrimaryKeyJoinColumn primaryKeyJoinColumn)
          Remove the specified join column at the index from the join table.
 
Methods inherited from interface org.eclipse.jpt.core.context.SingleRelationshipMapping
addSpecifiedJoinColumn, containsSpecifiedJoinColumns, getDefaultJoinColumn, joinColumns, joinColumnsSize, moveSpecifiedJoinColumn, removeSpecifiedJoinColumn, removeSpecifiedJoinColumn, specifiedJoinColumns, specifiedJoinColumnsSize
 
Methods inherited from interface org.eclipse.jpt.core.context.RelationshipMapping
getCascade, getDefaultTargetEntity, getEntity, getResolvedTargetEntity, getSpecifiedTargetEntity, getTargetEntity, isRelationshipOwner, setSpecifiedTargetEntity, targetEntityIsValid
 
Methods inherited from interface org.eclipse.jpt.core.context.Fetchable
getDefaultFetch, getFetch, getSpecifiedFetch, setSpecifiedFetch
 
Methods inherited from interface org.eclipse.jpt.core.context.Nullable
getDefaultOptional, getOptional, getSpecifiedOptional, setSpecifiedOptional
 
Methods inherited from interface org.eclipse.jpt.core.context.NonOwningMapping
candidateMappedByAttributeNames, getMappedBy, mappedByIsValid, setMappedBy
 
Methods inherited from interface org.eclipse.jpt.core.context.RelationshipMapping
getCascade, getDefaultTargetEntity, getEntity, getResolvedTargetEntity, getSpecifiedTargetEntity, getTargetEntity, isRelationshipOwner, setSpecifiedTargetEntity, targetEntityIsValid
 
Methods inherited from interface org.eclipse.jpt.core.context.Fetchable
getDefaultFetch, getFetch, getSpecifiedFetch, setSpecifiedFetch
 

Field Detail

PRIMAY_KEY_JOIN_COLUMNS_LIST

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

primaryKeyJoinColumns

<T extends PrimaryKeyJoinColumn> java.util.ListIterator<T> primaryKeyJoinColumns()
Return a list iterator of the primary key join columns. This will not be null.


primaryKeyJoinColumnsSize

int primaryKeyJoinColumnsSize()
Return the number of join columns, both specified and default.


addPrimaryKeyJoinColumn

PrimaryKeyJoinColumn addPrimaryKeyJoinColumn(int index)
Add a specified join column to the join table return the object representing it.


removePrimaryKeyJoinColumn

void removePrimaryKeyJoinColumn(int index)
Remove the specified join column from the join table.


removePrimaryKeyJoinColumn

void removePrimaryKeyJoinColumn(PrimaryKeyJoinColumn primaryKeyJoinColumn)
Remove the specified join column at the index from the join table.


movePrimaryKeyJoinColumn

void movePrimaryKeyJoinColumn(int targetIndex,
                              int sourceIndex)
Move the specified join column from the source index to the target index.


containsPrimaryKeyJoinColumns

boolean containsPrimaryKeyJoinColumns()