|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrmEntity
orm.xml 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.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PRIMARY_KEY_JOIN_COLUMNS_LIST
|
static java.lang.String |
VIRTUAL_SECONDARY_TABLES_LIST
|
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.orm.OrmTypeMapping |
|---|
CLASS_PROPERTY, OVERRIDE_METADATA_COMPLETE_PROPERTY, SPECIFIED_METADATA_COMPLETE_PROPERTY |
| Method Summary | |
|---|---|
OrmPrimaryKeyJoinColumn |
addSpecifiedPrimaryKeyJoinColumn()
|
OrmPrimaryKeyJoinColumn |
addSpecifiedPrimaryKeyJoinColumn(int index)
|
OrmSecondaryTable |
addSpecifiedSecondaryTable()
Add a specified secondary table to the entity return the object representing it. |
OrmSecondaryTable |
addSpecifiedSecondaryTable(int index)
Add a specified secondary table to the entity return the object representing it. |
java.util.ListIterator<ReadOnlyPrimaryKeyJoinColumn> |
defaultPrimaryKeyJoinColumns()
|
OrmAssociationOverrideContainer |
getAssociationOverrideContainer()
|
OrmAttributeOverrideContainer |
getAttributeOverrideContainer()
|
OrmDiscriminatorColumn |
getDiscriminatorColumn()
|
OrmGeneratorContainer |
getGeneratorContainer()
|
OrmIdClassReference |
getIdClassReference()
Return the (aggregate) class reference for configuring and validating id class |
JavaEntity |
getJavaTypeMapping()
Return the Java type mapping corresponding to the orm.xml
type mapping. |
JavaEntity |
getJavaTypeMappingForDefaults()
Check "metadata complete" before returning the Java type mapping. |
OrmQueryContainer |
getQueryContainer()
|
OrmTable |
getTable()
Return the table for this entity, either specified or default. |
XmlEntity |
getXmlTypeMapping()
|
java.util.ListIterator<ReadOnlyPrimaryKeyJoinColumn> |
primaryKeyJoinColumns()
|
java.util.ListIterator<ReadOnlySecondaryTable> |
secondaryTables()
Return the secondary tables whether specified or default. |
boolean |
secondaryTablesAreDefinedInXml()
Return true if there are no virtual secondary tables on the orm entity. |
void |
setSecondaryTablesAreDefinedInXml(boolean defineInXml)
If true, then all virtual secondary tables are added in as specified secondary tables to the xml. |
java.util.ListIterator<OrmPrimaryKeyJoinColumn> |
specifiedPrimaryKeyJoinColumns()
|
java.util.ListIterator<OrmSecondaryTable> |
specifiedSecondaryTables()
Return a list iterator of the specified secondary tables. |
java.util.ListIterator<OrmVirtualSecondaryTable> |
virtualSecondaryTables()
Return the virtual (not specified) secondary tables. |
int |
virtualSecondaryTablesSize()
Return the number of virtual secondary tables. |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.orm.OrmTypeMapping |
|---|
addXmlTypeMappingTo, containsOffset, createDeleteEdit, createMoveTypeEdits, createRenamePackageEdits, createRenameTypeEdits, getAttributesTextRange, getClass_, getClassTextRange, getPersistentType, getSelectionTextRange, getSpecifiedMetadataComplete, getXmlSequence, initializeFrom, isMetadataComplete, isOverrideMetadataComplete, removeXmlTypeMappingFrom, setClass, setSpecifiedMetadataComplete |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.XmlContextNode |
|---|
getValidationTextRange, validate |
| 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 |
|---|
static final java.lang.String VIRTUAL_SECONDARY_TABLES_LIST
static final java.lang.String DEFAULT_PRIMARY_KEY_JOIN_COLUMNS_LIST
| Method Detail |
|---|
XmlEntity getXmlTypeMapping()
getXmlTypeMapping in interface OrmTypeMappingJavaEntity getJavaTypeMapping()
OrmTypeMappingorm.xml
type mapping. Return null if there is no such Java type
mapping; i.e. it does not exist or it is not the same type of type
mapping (entity, mapped superclass, embeddable).
getJavaTypeMapping in interface OrmTypeMappingOrmTypeMapping.getJavaTypeMappingForDefaults()JavaEntity getJavaTypeMappingForDefaults()
OrmTypeMappingorm.xml defaults, if "metadata complete" is
true, return null.
getJavaTypeMappingForDefaults in interface OrmTypeMappingOrmTypeMapping.getJavaTypeMapping()OrmTable getTable()
Entity
getTable in interface EntityOrmIdClassReference getIdClassReference()
Entity
getIdClassReference in interface EntityOrmDiscriminatorColumn getDiscriminatorColumn()
getDiscriminatorColumn in interface Entityjava.util.ListIterator<ReadOnlySecondaryTable> secondaryTables()
Entity
secondaryTables in interface Entityjava.util.ListIterator<OrmSecondaryTable> specifiedSecondaryTables()
Entity
specifiedSecondaryTables in interface EntityOrmSecondaryTable addSpecifiedSecondaryTable()
Entity
addSpecifiedSecondaryTable in interface EntityOrmSecondaryTable addSpecifiedSecondaryTable(int index)
Entity
addSpecifiedSecondaryTable in interface Entityjava.util.ListIterator<OrmVirtualSecondaryTable> virtualSecondaryTables()
int virtualSecondaryTablesSize()
boolean secondaryTablesAreDefinedInXml()
void setSecondaryTablesAreDefinedInXml(boolean defineInXml)
java.util.ListIterator<ReadOnlyPrimaryKeyJoinColumn> primaryKeyJoinColumns()
primaryKeyJoinColumns in interface Entityjava.util.ListIterator<OrmPrimaryKeyJoinColumn> specifiedPrimaryKeyJoinColumns()
specifiedPrimaryKeyJoinColumns in interface EntityOrmPrimaryKeyJoinColumn addSpecifiedPrimaryKeyJoinColumn()
addSpecifiedPrimaryKeyJoinColumn in interface EntityOrmPrimaryKeyJoinColumn addSpecifiedPrimaryKeyJoinColumn(int index)
addSpecifiedPrimaryKeyJoinColumn in interface Entityjava.util.ListIterator<ReadOnlyPrimaryKeyJoinColumn> defaultPrimaryKeyJoinColumns()
OrmAttributeOverrideContainer getAttributeOverrideContainer()
getAttributeOverrideContainer in interface EntityOrmAssociationOverrideContainer getAssociationOverrideContainer()
getAssociationOverrideContainer in interface EntityOrmQueryContainer getQueryContainer()
getQueryContainer in interface EntityOrmGeneratorContainer getGeneratorContainer()
getGeneratorContainer in interface Entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||