org.eclipse.jpt.jpa.core.context
Interface IdClassReference

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model, PersistentType.Owner
All Known Subinterfaces:
JavaIdClassReference, OrmIdClassReference

public interface IdClassReference
extends PersistentType.Owner

ID class reference

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_ID_CLASS_NAME_PROPERTY
          Property string associated with changes to the IdClassHolder's default id class name
static java.lang.String ID_CLASS_PROPERTY
          Property string associated with changes to the IdClassHolder's id class.
static java.lang.String SPECIFIED_ID_CLASS_NAME_PROPERTY
          Property string associated with changes to the IdClassHolder's specified id class name
 
Method Summary
 java.lang.String getDefaultIdClassName()
          Return the default name of the id class, null if there is none
 JavaPersistentType getIdClass()
          Return the JavaPersistentType that is resolved from the id class name.
 char getIdClassEnclosingTypeSeparator()
          Return the char to be used for browsing or creating the id class IType.
 java.lang.String getIdClassName()
          Return the name of the id class, taking into consideration the default value if applicable
 java.lang.String getSpecifiedIdClassName()
          Return the specified name of the id class, null if none is specified in the resource model
 boolean isSpecified()
          Return whether the id class has been specified.
 void setSpecifiedIdClassName(java.lang.String value)
          Set the specified name of the id class.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType.Owner
getDefaultPersistentTypeAccess, getOverridePersistentTypeAccess
 
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

SPECIFIED_ID_CLASS_NAME_PROPERTY

static final java.lang.String SPECIFIED_ID_CLASS_NAME_PROPERTY
Property string associated with changes to the IdClassHolder's specified id class name

See Also:
Constant Field Values

DEFAULT_ID_CLASS_NAME_PROPERTY

static final java.lang.String DEFAULT_ID_CLASS_NAME_PROPERTY
Property string associated with changes to the IdClassHolder's default id class name

See Also:
Constant Field Values

ID_CLASS_PROPERTY

static final java.lang.String ID_CLASS_PROPERTY
Property string associated with changes to the IdClassHolder's id class. This will change (potentially) if the id class name changes, or if other changes result in changes in the id class' resolution.

See Also:
Constant Field Values
Method Detail

getIdClassName

java.lang.String getIdClassName()
Return the name of the id class, taking into consideration the default value if applicable


getSpecifiedIdClassName

java.lang.String getSpecifiedIdClassName()
Return the specified name of the id class, null if none is specified in the resource model


setSpecifiedIdClassName

void setSpecifiedIdClassName(java.lang.String value)
Set the specified name of the id class. Use null to remove the id class specification from the resource model


getDefaultIdClassName

java.lang.String getDefaultIdClassName()
Return the default name of the id class, null if there is none


isSpecified

boolean isSpecified()
Return whether the id class has been specified. Generally, this simply means that the id class name has been set, although if a default applies, this should also return true.


getIdClass

JavaPersistentType getIdClass()
Return the JavaPersistentType that is resolved from the id class name. This will be null if the id class name is null or if the class cannot be resolved from that name.


getIdClassEnclosingTypeSeparator

char getIdClassEnclosingTypeSeparator()
Return the char to be used for browsing or creating the id class IType.

See Also:
IType.getFullyQualifiedName(char)