|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface EntityMappings
Context model corresponding to the
XML resource model XmlEntityMappings,
which corresponds to the entity-mappings element
in the orm.xml file.
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 |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.PersistentTypeContainer |
|---|
PersistentTypeContainer.PersistentTypesTransformer |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.ManagedTypeContainer |
|---|
ManagedTypeContainer.ContainsType, ManagedTypeContainer.ManagedTypesTransformer |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode |
|---|
JpaStructureNode.ContextType |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.DeleteTypeRefactoringParticipant |
|---|
DeleteTypeRefactoringParticipant.DeleteTypeEditsTransformer |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant |
|---|
TypeRefactoringParticipant.MoveTypeEditsTransformer, TypeRefactoringParticipant.RenamePackageEditsTransformer, TypeRefactoringParticipant.RenameTypeEditsTransformer |
| Field Summary | |
|---|---|
static String |
DEFAULT_CATALOG_PROPERTY
|
static String |
DEFAULT_SCHEMA_PROPERTY
|
static String |
DESCRIPTION_PROPERTY
|
static String |
MANAGED_TYPES_LIST
|
static String |
PACKAGE_PROPERTY
|
static String |
SEQUENCE_GENERATORS_LIST
|
static String |
SPECIFIED_CATALOG_PROPERTY
|
static String |
SPECIFIED_SCHEMA_PROPERTY
|
static String |
TABLE_GENERATORS_LIST
|
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.PersistentTypeContainer |
|---|
TRANSFORMER |
| Fields inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode |
|---|
CHILDREN_COLLECTION |
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.SpecifiedAccessReference |
|---|
DEFAULT_ACCESS_PROPERTY, SPECIFIED_ACCESS_PROPERTY |
| Method Summary | |
|---|---|
OrmPersistentType |
addPersistentType(String mappingKey,
String className)
|
void |
addPersistentTypes(PersistentType.Config[] typeConfigs,
IProgressMonitor monitor)
Add types to the entity mappings with the specified names and corresponding mapping types. |
OrmSequenceGenerator |
addSequenceGenerator()
|
OrmSequenceGenerator |
addSequenceGenerator(int index)
|
OrmTableGenerator |
addTableGenerator()
|
OrmTableGenerator |
addTableGenerator(int index)
|
void |
changeMapping(OrmPersistentType ormPersistentType,
OrmTypeMapping oldMapping,
OrmTypeMapping newMapping)
|
boolean |
containsManagedType(String typeName)
|
void |
dispose()
|
Catalog |
getDbCatalog()
|
Schema |
getDbSchema()
|
SchemaContainer |
getDbSchemaContainer()
Return the database schema container, which can be either a catalog or, if the database does not support catalogs, the database itself. |
String |
getDefaultCatalog()
|
String |
getDefaultPersistentTypePackage()
Return the default package to be used for persistent types in this context. |
String |
getDefaultSchema()
|
String |
getDescription()
|
OrmManagedType |
getManagedType(String typeName)
Return the managed type with the specified name. |
org.eclipse.jpt.common.utility.iterable.ListIterable<OrmManagedType> |
getManagedTypes()
Covariant override. |
int |
getManagedTypesSize()
|
Iterable<Generator> |
getMappingFileGenerators()
Return all the generators defined in both the entity mappings and its type mappings (but not in any associated Java annotations). |
Iterable<Query> |
getMappingFileQueries()
Return all the queries defined in both the entity mappings and its entities (but not in any associated Java annotations). |
OrmXml |
getOrmXml()
|
String |
getPackage()
"The package subelement specifies the package of the
classes listed within the subelements and attributes of the same mapping
file only. |
OrmXml |
getParent()
covariant override |
OrmPersistenceUnitMetadata |
getPersistenceUnitMetadata()
Covariant override. |
OrmPersistentType |
getPersistentType(String className)
Return the persistent type with the specified name. |
Iterable<OrmPersistentType> |
getPersistentTypes()
Covariant override. |
OrmQueryContainer |
getQueryContainer()
|
org.eclipse.jpt.common.utility.iterable.ListIterable<OrmSequenceGenerator> |
getSequenceGenerators()
|
int |
getSequenceGeneratorsSize()
|
String |
getSpecifiedCatalog()
|
String |
getSpecifiedSchema()
|
org.eclipse.jpt.common.utility.iterable.ListIterable<OrmTableGenerator> |
getTableGenerators()
|
int |
getTableGeneratorsSize()
|
String |
getVersion()
|
org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings |
getXmlEntityMappings()
|
void |
moveSequenceGenerator(int targetIndex,
int sourceIndex)
|
void |
moveTableGenerator(int targetIndex,
int sourceIndex)
|
String |
qualify(String className)
If the specified class name is not qualified (i.e. it does not contain a '.' |
void |
removeManagedType(int index)
|
void |
removeManagedType(OrmManagedType managedType)
|
void |
removeSequenceGenerator(int index)
|
void |
removeSequenceGenerator(OrmSequenceGenerator sequenceGenerator)
|
void |
removeTableGenerator(int index)
|
void |
removeTableGenerator(OrmTableGenerator tableGenerator)
|
JavaResourceAbstractType |
resolveJavaResourceType(String className)
Return the Java resource type for the specified class name found in the JPA project. |
JavaResourceAbstractType |
resolveJavaResourceType(String className,
JavaResourceAnnotatedElement.AstNodeType astNodeType)
Return the Java resource type for the specified class name and astNodeType found in the JPA project. |
IType |
resolveJdtType(String className)
Return the JDT type for the specified class name found in the Java project. |
PersistentType |
resolvePersistentType(String className)
Return the persistent type for the specified class name found in the persistence unit. |
void |
setDescription(String description)
|
void |
setPackage(String package_)
|
void |
setSpecifiedCatalog(String catalog)
|
void |
setSpecifiedSchema(String schema)
|
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.MappingFile.Root |
|---|
getAccess, getCatalog, getSchema |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode |
|---|
addRootStructureNodesTo, containsOffset, getChildren, getChildrenSize, getContextType, getFullTextRange, getSelectionTextRange, getStructureNode, getType |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.PersistentType.Parent |
|---|
getDefaultPersistentTypeAccess, getOverridePersistentTypeAccess |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.SpecifiedAccessReference |
|---|
getDefaultAccess, getSpecifiedAccess, setSpecifiedAccess |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.AccessReference |
|---|
getAccess |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.DeleteTypeRefactoringParticipant |
|---|
createDeleteTypeEdits |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant |
|---|
createMoveTypeEdits, createRenamePackageEdits, createRenameTypeEdits |
| Field Detail |
|---|
static final String DESCRIPTION_PROPERTY
static final String PACKAGE_PROPERTY
static final String SPECIFIED_CATALOG_PROPERTY
static final String DEFAULT_CATALOG_PROPERTY
static final String SPECIFIED_SCHEMA_PROPERTY
static final String DEFAULT_SCHEMA_PROPERTY
static final String MANAGED_TYPES_LIST
static final String SEQUENCE_GENERATORS_LIST
static final String TABLE_GENERATORS_LIST
| Method Detail |
|---|
OrmXml getParent()
MappingFile.Root
getParent in interface JpaContextModelgetParent in interface JpaModelgetParent in interface MappingFile.RootOrmXml getOrmXml()
org.eclipse.jpt.jpa.core.resource.orm.XmlEntityMappings getXmlEntityMappings()
String getVersion()
String getDescription()
void setDescription(String description)
String getPackage()
package subelement specifies the package of the
classes listed within the subelements and attributes of the same mapping
file only. The package subelement is overridden if the fully
qualified class name is specified for a class and the two disagree."
Partial packages are not supported. The package element should only be used
if a class is not qualified (i.e. it does not have a '.')
NB: No mention of how to resolve duplicates in the "default" package:
Bar (in "default" package) vs. foo.Bar
foo and class is specified as
Bar.
void setPackage(String package_)
SchemaContainer getDbSchemaContainer()
String getSpecifiedCatalog()
void setSpecifiedCatalog(String catalog)
String getDefaultCatalog()
Catalog getDbCatalog()
String getSpecifiedSchema()
void setSpecifiedSchema(String schema)
String getDefaultSchema()
Schema getDbSchema()
OrmPersistenceUnitMetadata getPersistenceUnitMetadata()
getPersistenceUnitMetadata in interface MappingFile.RootMappingFilePersistenceUnitMetadata.resourceExists()org.eclipse.jpt.common.utility.iterable.ListIterable<OrmManagedType> getManagedTypes()
getManagedTypes in interface ManagedTypeContainerint getManagedTypesSize()
OrmManagedType getManagedType(String typeName)
ManagedTypeContainernull if the managed type is not found.
If the persistent unit has more than one managed type with the
specified name, return the first one found, using the following
search order:
getManagedType in interface ManagedTypeContainervoid removeManagedType(int index)
void removeManagedType(OrmManagedType managedType)
boolean containsManagedType(String typeName)
Iterable<OrmPersistentType> getPersistentTypes()
getPersistentTypes in interface PersistentTypeContainerOrmPersistentType getPersistentType(String className)
PersistentTypeContainernull if the persistent type is not found.
If the persistent unit has more than one persistent type with the
specified name, return the first one found, using the following
search order:
getPersistentType in interface PersistentTypeContainer
OrmPersistentType addPersistentType(String mappingKey,
String className)
org.eclipse.jpt.common.utility.iterable.ListIterable<OrmSequenceGenerator> getSequenceGenerators()
int getSequenceGeneratorsSize()
OrmSequenceGenerator addSequenceGenerator()
OrmSequenceGenerator addSequenceGenerator(int index)
void removeSequenceGenerator(int index)
void removeSequenceGenerator(OrmSequenceGenerator sequenceGenerator)
void moveSequenceGenerator(int targetIndex,
int sourceIndex)
org.eclipse.jpt.common.utility.iterable.ListIterable<OrmTableGenerator> getTableGenerators()
int getTableGeneratorsSize()
OrmTableGenerator addTableGenerator()
OrmTableGenerator addTableGenerator(int index)
void removeTableGenerator(int index)
void removeTableGenerator(OrmTableGenerator tableGenerator)
void moveTableGenerator(int targetIndex,
int sourceIndex)
OrmQueryContainer getQueryContainer()
Iterable<Query> getMappingFileQueries()
Iterable<Generator> getMappingFileGenerators()
String getDefaultPersistentTypePackage()
void changeMapping(OrmPersistentType ormPersistentType,
OrmTypeMapping oldMapping,
OrmTypeMapping newMapping)
JavaResourceAbstractType resolveJavaResourceType(String className)
'.').
getPackage()
JavaResourceAbstractType resolveJavaResourceType(String className,
JavaResourceAnnotatedElement.AstNodeType astNodeType)
'.').
Return null if invalid or absent or if the astNodeType does not match.
getPackage()PersistentType resolvePersistentType(String className)
'.').
getPackage()IType resolveJdtType(String className)
'.').
getPackage()String qualify(String className)
'.'), prepend the default package name. Member classes must
be qualified with a '$' for this to work correctly.
getPackage()
void addPersistentTypes(PersistentType.Config[] typeConfigs,
IProgressMonitor monitor)
void dispose()
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||