|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Entity
entity
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.
| Nested Class Summary | |
|---|---|
static class |
Entity.EntityIsDescendant
|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.TypeMapping |
|---|
TypeMapping.GeneratorsTransformer, TypeMapping.QueriesTransformer |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
JptResourceTypeReference.ResourceTypeTransformer |
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.TypeMapping |
|---|
GENERATORS_TRANSFORMER, QUERIES_TRANSFORMER |
| Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
RESOURCE_TYPE_TRANSFORMER |
| Method Summary | |
|---|---|
PrimaryKeyJoinColumn |
addSpecifiedPrimaryKeyJoinColumn()
|
PrimaryKeyJoinColumn |
addSpecifiedPrimaryKeyJoinColumn(int index)
|
SecondaryTable |
addSpecifiedSecondaryTable()
Add a specified secondary table to the entity return the object representing it. |
SecondaryTable |
addSpecifiedSecondaryTable(int index)
Add a specified secondary table to the entity return the object representing it. |
void |
clearSpecifiedPrimaryKeyJoinColumns()
Remove all the specified primary key join columns. |
void |
convertDefaultPrimaryKeyJoinColumnsToSpecified()
Add specified primary key join column for each default join column with the same name and referenced column name. |
boolean |
discriminatorColumnIsUndefined()
Return whether a DiscriminatorColumn is undefined for this Entity. |
boolean |
discriminatorValueIsUndefined()
Return whether a DiscriminatorValue is undefined for this Entity. |
AssociationOverrideContainer |
getAssociationOverrideContainer()
|
AttributeOverrideContainer |
getAttributeOverrideContainer()
|
String |
getDefaultCatalog()
Return the entity's default catalog, which depends on the entity's inheritance hierarchy. |
String |
getDefaultDiscriminatorValue()
|
InheritanceType |
getDefaultInheritanceStrategy()
|
String |
getDefaultName()
|
String |
getDefaultSchema()
Return the entity's default schema, which depends on the entity's inheritance hierarchy. |
String |
getDefaultTableName()
Return the entity's default table name, which depends on the entity's inheritance hierarchy. |
Iterable<Entity> |
getDescendants()
If the entity is a root entity, return the entity's descendant entities; if the entity is not a root entity, return an empty collection. |
DiscriminatorColumn |
getDiscriminatorColumn()
|
String |
getDiscriminatorValue()
|
GeneratorContainer |
getGeneratorContainer()
|
PersistentAttribute |
getIdAttribute()
If an entity has a single id attribute, return that attribute. |
InheritanceType |
getInheritanceStrategy()
Return the specified inheritance strategy if present, otherwise return the default inheritance strategy. |
TextRange |
getNameTextRange()
Returns the TextRange of the name property. |
Entity |
getParentEntity()
The first parent in the class hierarchy that is an entity. |
String |
getPrimaryKeyColumnName()
Return the name of the entity's primary key column. |
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends ReadOnlyPrimaryKeyJoinColumn> |
getPrimaryKeyJoinColumns()
|
int |
getPrimaryKeyJoinColumnsSize()
|
QueryContainer |
getQueryContainer()
|
Entity |
getRootEntity()
Return the top of the entity's inheritance hierarchy. |
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends ReadOnlySecondaryTable> |
getSecondaryTables()
Return the secondary tables whether specified or default. |
int |
getSecondaryTablesSize()
Return the number of secondary tables, both specified and default. |
String |
getSpecifiedDiscriminatorValue()
|
InheritanceType |
getSpecifiedInheritanceStrategy()
|
String |
getSpecifiedName()
|
PrimaryKeyJoinColumn |
getSpecifiedPrimaryKeyJoinColumn(int index)
|
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends PrimaryKeyJoinColumn> |
getSpecifiedPrimaryKeyJoinColumns()
|
int |
getSpecifiedPrimaryKeyJoinColumnsSize()
|
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends SecondaryTable> |
getSpecifiedSecondaryTables()
Return a list iterator of the specified secondary tables. |
int |
getSpecifiedSecondaryTablesSize()
Return the number of specified secondary tables. |
Table |
getTable()
Return the table for this entity, either specified or default. |
void |
moveSpecifiedPrimaryKeyJoinColumn(int targetIndex,
int sourceIndex)
|
void |
moveSpecifiedSecondaryTable(int targetIndex,
int sourceIndex)
Move the specified secondary table from the source index to the target index. |
void |
removeSpecifiedPrimaryKeyJoinColumn(int index)
|
void |
removeSpecifiedPrimaryKeyJoinColumn(PrimaryKeyJoinColumn primaryKeyJoinColumn)
|
void |
removeSpecifiedSecondaryTable(int index)
Remove the specified secondary table from the entity. |
void |
removeSpecifiedSecondaryTable(SecondaryTable secondaryTable)
Remove the specified secondary table at the index from the entity. |
AttributeMapping |
resolveAttributeMapping(String name)
Returns the attribute mapping that matches the name. |
void |
setSpecifiedDiscriminatorValue(String value)
|
void |
setSpecifiedInheritanceStrategy(InheritanceType inheritanceType)
|
void |
setSpecifiedName(String name)
|
boolean |
specifiedDiscriminatorColumnIsAllowed()
Return whether a DiscriminatorColumn is allowed for this Entity. |
boolean |
specifiedDiscriminatorValueIsAllowed()
Return whether a DiscriminatorValue is allowed for this Entity. |
boolean |
specifiedTableIsAllowed()
Return whether a Table is allowed for this Entity. |
boolean |
supportsValidationMessages()
Return whether this entity should be validated and have validation messages displayed |
boolean |
tableIsUndefined()
Return whether a Table is undefined for this Entity. |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.IdTypeMapping |
|---|
getIdClassReference |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode |
|---|
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode |
|---|
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference |
|---|
getResourceType |
| Field Detail |
|---|
static final String SPECIFIED_NAME_PROPERTY
static final String DEFAULT_NAME_PROPERTY
static final String SPECIFIED_SECONDARY_TABLES_LIST
static final String SPECIFIED_INHERITANCE_STRATEGY_PROPERTY
static final String DEFAULT_INHERITANCE_STRATEGY_PROPERTY
static final String SPECIFIED_DISCRIMINATOR_VALUE_PROPERTY
static final String DEFAULT_DISCRIMINATOR_VALUE_PROPERTY
static final String SPECIFIED_DISCRIMINATOR_VALUE_IS_ALLOWED_PROPERTY
static final String DISCRIMINATOR_VALUE_IS_UNDEFINED_PROPERTY
static final String SPECIFIED_DISCRIMINATOR_COLUMN_IS_ALLOWED_PROPERTY
static final String DISCRIMINATOR_COLUMN_IS_UNDEFINED_PROPERTY
static final String SPECIFIED_TABLE_IS_ALLOWED_PROPERTY
static final String TABLE_IS_UNDEFINED_PROPERTY
static final String SPECIFIED_PRIMARY_KEY_JOIN_COLUMNS_LIST
static final String ROOT_ENTITY_PROPERTY
static final String DESCENDANTS_COLLECTION
| Method Detail |
|---|
String getSpecifiedName()
void setSpecifiedName(String name)
String getDefaultName()
Table getTable()
String getPrimaryKeyColumnName()
String getDefaultTableName()
String getDefaultSchema()
String getDefaultCatalog()
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends ReadOnlySecondaryTable> getSecondaryTables()
int getSecondaryTablesSize()
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends SecondaryTable> getSpecifiedSecondaryTables()
int getSpecifiedSecondaryTablesSize()
SecondaryTable addSpecifiedSecondaryTable()
SecondaryTable addSpecifiedSecondaryTable(int index)
void removeSpecifiedSecondaryTable(int index)
void removeSpecifiedSecondaryTable(SecondaryTable secondaryTable)
void moveSpecifiedSecondaryTable(int targetIndex,
int sourceIndex)
InheritanceType getInheritanceStrategy()
getInheritanceStrategy in interface TypeMappingInheritanceType getSpecifiedInheritanceStrategy()
void setSpecifiedInheritanceStrategy(InheritanceType inheritanceType)
InheritanceType getDefaultInheritanceStrategy()
Entity getParentEntity()
DiscriminatorColumn getDiscriminatorColumn()
String getDiscriminatorValue()
String getSpecifiedDiscriminatorValue()
void setSpecifiedDiscriminatorValue(String value)
String getDefaultDiscriminatorValue()
boolean specifiedDiscriminatorValueIsAllowed()
boolean discriminatorValueIsUndefined()
boolean specifiedDiscriminatorColumnIsAllowed()
boolean discriminatorColumnIsUndefined()
boolean specifiedTableIsAllowed()
boolean tableIsUndefined()
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends ReadOnlyPrimaryKeyJoinColumn> getPrimaryKeyJoinColumns()
int getPrimaryKeyJoinColumnsSize()
org.eclipse.jpt.common.utility.iterable.ListIterable<? extends PrimaryKeyJoinColumn> getSpecifiedPrimaryKeyJoinColumns()
PrimaryKeyJoinColumn getSpecifiedPrimaryKeyJoinColumn(int index)
int getSpecifiedPrimaryKeyJoinColumnsSize()
PrimaryKeyJoinColumn addSpecifiedPrimaryKeyJoinColumn(int index)
PrimaryKeyJoinColumn addSpecifiedPrimaryKeyJoinColumn()
void removeSpecifiedPrimaryKeyJoinColumn(int index)
void removeSpecifiedPrimaryKeyJoinColumn(PrimaryKeyJoinColumn primaryKeyJoinColumn)
void moveSpecifiedPrimaryKeyJoinColumn(int targetIndex,
int sourceIndex)
void convertDefaultPrimaryKeyJoinColumnsToSpecified()
void clearSpecifiedPrimaryKeyJoinColumns()
AttributeOverrideContainer getAttributeOverrideContainer()
AssociationOverrideContainer getAssociationOverrideContainer()
QueryContainer getQueryContainer()
GeneratorContainer getGeneratorContainer()
Entity getRootEntity()
null. The root
is defined as the persistent type in the inheritance hierarchy
that has no parent. The root will be an entity.
Non-entities in the hierarchy should be ignored; i.e. we skip over them in the search for the root.
getRootEntity in interface TypeMappingIterable<Entity> getDescendants()
NB: An entity A is a "descendant" of another root
entity B if the name of entity A's root entity's type matches
the name of entity B's type. This means entity A can be a "descendant"
of multiple root entities (typically both the orm.xml
and Java root entities for a particular type); despite entity have only
a single "root" entity (typically the orm.xml root entity).
TextRange getNameTextRange()
TextRange of the name property.
boolean supportsValidationMessages()
AttributeMapping resolveAttributeMapping(String name)
PersistentAttribute getIdAttribute()
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||