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

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model, NamedColumn, ReadOnlyNamedColumn
All Known Subinterfaces:
JavaDiscriminatorColumn, OrmDiscriminatorColumn

public interface DiscriminatorColumn
extends NamedColumn

discriminator column

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
Version:
2.2

Nested Class Summary
static interface DiscriminatorColumn.Owner
          interface allowing discriminator columns to be used in multiple places (but pretty much just entities)
 
Field Summary
static DiscriminatorType DEFAULT_DISCRIMINATOR_TYPE
           
static java.lang.String DEFAULT_DISCRIMINATOR_TYPE_PROPERTY
           
static int DEFAULT_LENGTH
           
static java.lang.String DEFAULT_LENGTH_PROPERTY
           
static java.lang.String DEFAULT_NAME
           
static java.lang.String SPECIFIED_DISCRIMINATOR_TYPE_PROPERTY
           
static java.lang.String SPECIFIED_LENGTH_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyNamedColumn
COLUMN_DEFINITION_PROPERTY, DEFAULT_NAME_PROPERTY, SPECIFIED_NAME_PROPERTY
 
Method Summary
 DiscriminatorType getDefaultDiscriminatorType()
           
 int getDefaultLength()
           
 DiscriminatorType getDiscriminatorType()
          Return the specified discriminator type if present, otherwise return the default discriminator type.
 int getLength()
          Return the specified length if present, otherwise return the default length.
 DiscriminatorType getSpecifiedDiscriminatorType()
           
 java.lang.Integer getSpecifiedLength()
           
 boolean isResourceSpecified()
          Return whether the column is specified in the resource.
 void setSpecifiedDiscriminatorType(DiscriminatorType newSpecifiedDiscriminatorType)
           
 void setSpecifiedLength(java.lang.Integer value)
           
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.NamedColumn
getDbTable, isResolved, setColumnDefinition, setSpecifiedName
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyNamedColumn
getColumnDefinition, getDefaultName, getName, getSpecifiedName, getTable
 
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

DEFAULT_NAME

static final java.lang.String DEFAULT_NAME
See Also:
Constant Field Values

SPECIFIED_DISCRIMINATOR_TYPE_PROPERTY

static final java.lang.String SPECIFIED_DISCRIMINATOR_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_DISCRIMINATOR_TYPE_PROPERTY

static final java.lang.String DEFAULT_DISCRIMINATOR_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_DISCRIMINATOR_TYPE

static final DiscriminatorType DEFAULT_DISCRIMINATOR_TYPE

SPECIFIED_LENGTH_PROPERTY

static final java.lang.String SPECIFIED_LENGTH_PROPERTY
See Also:
Constant Field Values

DEFAULT_LENGTH_PROPERTY

static final java.lang.String DEFAULT_LENGTH_PROPERTY
See Also:
Constant Field Values

DEFAULT_LENGTH

static final int DEFAULT_LENGTH
See Also:
Constant Field Values
Method Detail

getDiscriminatorType

DiscriminatorType getDiscriminatorType()
Return the specified discriminator type if present, otherwise return the default discriminator type.


getSpecifiedDiscriminatorType

DiscriminatorType getSpecifiedDiscriminatorType()

setSpecifiedDiscriminatorType

void setSpecifiedDiscriminatorType(DiscriminatorType newSpecifiedDiscriminatorType)

getDefaultDiscriminatorType

DiscriminatorType getDefaultDiscriminatorType()

getLength

int getLength()
Return the specified length if present, otherwise return the default length.


getSpecifiedLength

java.lang.Integer getSpecifiedLength()

setSpecifiedLength

void setSpecifiedLength(java.lang.Integer value)

getDefaultLength

int getDefaultLength()

isResourceSpecified

boolean isResourceSpecified()
Return whether the column is specified in the resource.