org.eclipse.jpt.core.context
Interface Nullable

All Superinterfaces:
AttributeMapping, org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model
All Known Subinterfaces:
BasicMapping, EclipseLinkBasicMapping, EclipseLinkOneToOneMapping, JavaBasicMapping, JavaManyToOneMapping, JavaOneToOneMapping, JavaSingleRelationshipMapping, ManyToOneMapping, OneToOneMapping, OrmBasicMapping, OrmManyToOneMapping, OrmOneToOneMapping, OrmSingleRelationshipMapping, SingleRelationshipMapping

public interface Nullable
extends AttributeMapping

This interface is used for mappings that support the optional element. 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.


Field Summary
static boolean DEFAULT_OPTIONAL
           
static java.lang.String DEFAULT_OPTIONAL_PROPERTY
           
static java.lang.String SPECIFIED_OPTIONAL_PROPERTY
           
 
Method Summary
 java.lang.Boolean getSpecifiedOptional()
           
 boolean isDefaultOptional()
           
 boolean isOptional()
           
 void setSpecifiedOptional(java.lang.Boolean newSpecifiedOptional)
           
 
Methods inherited from interface org.eclipse.jpt.core.context.AttributeMapping
getKey, getName, getPersistentAttribute, getPrimaryKeyColumnName, getTypeMapping, isDefault, isIdMapping, isOverridableAssociationMapping, isOverridableAttributeMapping, isOwnedBy, shouldValidateAgainstDatabase
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 

Field Detail

DEFAULT_OPTIONAL_PROPERTY

static final java.lang.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 java.lang.String SPECIFIED_OPTIONAL_PROPERTY
See Also:
Constant Field Values
Method Detail

isOptional

boolean isOptional()

isDefaultOptional

boolean isDefaultOptional()

getSpecifiedOptional

java.lang.Boolean getSpecifiedOptional()

setSpecifiedOptional

void setSpecifiedOptional(java.lang.Boolean newSpecifiedOptional)