org.eclipse.jpt.core.jpa2.context
Interface MapsIdDerivedIdentityStrategy2_0

All Superinterfaces:
DerivedIdentityStrategy2_0, org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
JavaMapsIdDerivedIdentityStrategy2_0, OrmMapsIdDerivedIdentityStrategy2_0

public interface MapsIdDerivedIdentityStrategy2_0
extends DerivedIdentityStrategy2_0

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 DEFAULT_VALUE_PROPERTY
          String associated with changes to the default value property of this object
static java.lang.String SPECIFIED_VALUE_PROPERTY
          String associated with changes to the specified value property of this object
 
Method Summary
 java.lang.String getDefaultValue()
          Return the default value (the id which would be used in the absence of a specified value)
 AttributeMapping getResolvedAttributeMappingValue()
          Return a resolved attribute mapping, which may be a mapping on the entity, or a mapping within an embeddable mapping on the entity
 java.lang.Iterable<java.lang.String> getSortedValueChoices()
          Return a sorted iterator of possible value choices
 java.lang.String getSpecifiedValue()
          Return the specified value (the id which has been specified in code) Will return null if no value is specified
 java.lang.String getValue()
          Return the specfied value, or in absence of that, the default value
 void setSpecifiedValue(java.lang.String newValue)
          Set the specified value (the id to specify in code)
 boolean usesDefaultValue()
          Return whether a default value is ever used (in some cases, there can be no default)
 
Methods inherited from interface org.eclipse.jpt.core.jpa2.context.DerivedIdentityStrategy2_0
addStrategy, getDerivedIdentity, getMapping, isSpecified, removeStrategy
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.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.core.IResourcePart
getResource
 

Field Detail

SPECIFIED_VALUE_PROPERTY

static final java.lang.String SPECIFIED_VALUE_PROPERTY
String associated with changes to the specified value property of this object

See Also:
Constant Field Values

DEFAULT_VALUE_PROPERTY

static final java.lang.String DEFAULT_VALUE_PROPERTY
String associated with changes to the default value property of this object

See Also:
Constant Field Values
Method Detail

getSpecifiedValue

java.lang.String getSpecifiedValue()
Return the specified value (the id which has been specified in code) Will return null if no value is specified


setSpecifiedValue

void setSpecifiedValue(java.lang.String newValue)
Set the specified value (the id to specify in code)


usesDefaultValue

boolean usesDefaultValue()
Return whether a default value is ever used (in some cases, there can be no default)


getDefaultValue

java.lang.String getDefaultValue()
Return the default value (the id which would be used in the absence of a specified value)


getValue

java.lang.String getValue()
Return the specfied value, or in absence of that, the default value


getSortedValueChoices

java.lang.Iterable<java.lang.String> getSortedValueChoices()
Return a sorted iterator of possible value choices


getResolvedAttributeMappingValue

AttributeMapping getResolvedAttributeMappingValue()
Return a resolved attribute mapping, which may be a mapping on the entity, or a mapping within an embeddable mapping on the entity