org.eclipse.jpt.jpa.core.jpa2.context
Interface DerivedIdentity2_0

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
JavaDerivedIdentity2_0, OrmDerivedIdentity2_0

public interface DerivedIdentity2_0
extends JpaContextNode

Derived identity

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.3
Version:
2.3

Field Summary
static java.lang.String PREDOMINANT_DERIVED_IDENTITY_STRATEGY_PROPERTY
          String associated with changes to the predominant derived identity strategy property.
 
Method Summary
 IdDerivedIdentityStrategy2_0 getIdDerivedIdentityStrategy()
          Return the mapping's ID strategy.
 SingleRelationshipMapping2_0 getMapping()
          Return the associated single relationship mapping.
 MapsIdDerivedIdentityStrategy2_0 getMapsIdDerivedIdentityStrategy()
          Return the mapping's "maps ID" strategy.
 DerivedIdentityStrategy2_0 getPredominantDerivedIdentityStrategy()
          Return the mapping's predominant strategy.
 void setIdDerivedIdentityStrategy()
          Configure the mapping so it has an ID strategy.
 void setMapsIdDerivedIdentityStrategy()
          Configure the mapping so it has a "maps ID" strategy.
 void setNullDerivedIdentityStrategy()
          Configure the mapping so it has no strategy.
 void unsetIdDerivedIdentityStrategy()
          Clear the mapping's ID strategy.
 void unsetMapsIdDerivedIdentityStrategy()
          Clear the mapping's "maps ID" strategy.
 boolean usesIdDerivedIdentityStrategy()
          Return whether the mapping uses an ID strategy.
 boolean usesMapsIdDerivedIdentityStrategy()
          Return whether the mapping uses a "maps ID" strategy.
 boolean usesNullDerivedIdentityStrategy()
          Return whether the mapping has no strategy.
 
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

PREDOMINANT_DERIVED_IDENTITY_STRATEGY_PROPERTY

static final java.lang.String PREDOMINANT_DERIVED_IDENTITY_STRATEGY_PROPERTY
String associated with changes to the predominant derived identity strategy property.

See Also:
Constant Field Values
Method Detail

getMapping

SingleRelationshipMapping2_0 getMapping()
Return the associated single relationship mapping.


getPredominantDerivedIdentityStrategy

DerivedIdentityStrategy2_0 getPredominantDerivedIdentityStrategy()
Return the mapping's predominant strategy.


usesNullDerivedIdentityStrategy

boolean usesNullDerivedIdentityStrategy()
Return whether the mapping has no strategy.


setNullDerivedIdentityStrategy

void setNullDerivedIdentityStrategy()
Configure the mapping so it has no strategy. This will remove all other strategies.


getIdDerivedIdentityStrategy

IdDerivedIdentityStrategy2_0 getIdDerivedIdentityStrategy()
Return the mapping's ID strategy.


usesIdDerivedIdentityStrategy

boolean usesIdDerivedIdentityStrategy()
Return whether the mapping uses an ID strategy.


setIdDerivedIdentityStrategy

void setIdDerivedIdentityStrategy()
Configure the mapping so it has an ID strategy. This will remove all other strategies.


unsetIdDerivedIdentityStrategy

void unsetIdDerivedIdentityStrategy()
Clear the mapping's ID strategy. This will not set any other strategy; so whichever other strategy is present (or the null strategy) will apply.


getMapsIdDerivedIdentityStrategy

MapsIdDerivedIdentityStrategy2_0 getMapsIdDerivedIdentityStrategy()
Return the mapping's "maps ID" strategy.


usesMapsIdDerivedIdentityStrategy

boolean usesMapsIdDerivedIdentityStrategy()
Return whether the mapping uses a "maps ID" strategy.


setMapsIdDerivedIdentityStrategy

void setMapsIdDerivedIdentityStrategy()
Configure the mapping so it has a "maps ID" strategy. This will remove all other strategies.


unsetMapsIdDerivedIdentityStrategy

void unsetMapsIdDerivedIdentityStrategy()
Clear the mapping's "maps ID" strategy. This will not set any other strategy; so whichever other strategy is present (or the null strategy) will apply.