org.eclipse.jpt.jpa.core.context
Interface OptionalMapping
- All Superinterfaces:
- AttributeMapping, IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, Model
- All Known Subinterfaces:
- BasicMapping, EclipseLinkBasicMapping, EclipseLinkManyToOneMapping, EclipseLinkManyToOneMapping2_0, EclipseLinkOneToOneMapping, EclipseLinkOneToOneMapping2_0, JavaBasicMapping, JavaManyToOneMapping, JavaOneToOneMapping, JavaSingleRelationshipMapping, JavaSingleRelationshipMapping2_0, ManyToOneMapping, ManyToOneMapping2_0, OneToOneMapping, OneToOneMapping2_0, OrmBasicMapping, OrmManyToOneMapping, OrmOneToOneMapping, OrmSingleRelationshipMapping, OrmSingleRelationshipMapping2_0, SingleRelationshipMapping, SingleRelationshipMapping2_0
public interface OptionalMapping
- extends AttributeMapping
JPA attribute mapping that is optional (e.g. basic, single relationship).
From the JPA spec:
Whether the value of the field or property may be null. This is a hint
and is disregarded for primitive types; it may be used in schema generation.
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.0
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.AttributeMapping |
getAllMappingNames, getAllOverridableAssociationMappingNames, getAllOverridableAttributeMappingNames, getGenerators, getKey, getName, getPersistentAttribute, getPrimaryKeyColumnName, getTypeMapping, isDefault, isOverridableAssociationMapping, isOverridableAttributeMapping, isOwnedBy, isRelationshipOwner, resolveAttributeMapping, resolveOverriddenColumn, resolveOverriddenRelationship, validatesAgainstDatabase |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel |
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate |
DEFAULT_OPTIONAL_PROPERTY
static final String DEFAULT_OPTIONAL_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_OPTIONAL
static final boolean DEFAULT_OPTIONAL
- See Also:
- Constant Field Values
SPECIFIED_OPTIONAL_PROPERTY
static final String SPECIFIED_OPTIONAL_PROPERTY
- See Also:
- Constant Field Values
isOptional
boolean isOptional()
isDefaultOptional
boolean isDefaultOptional()
getSpecifiedOptional
Boolean getSpecifiedOptional()
setSpecifiedOptional
void setSpecifiedOptional(Boolean newSpecifiedOptional)
Copyright (c) 2012 Oracle. All rights reserved.