|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MappingFileRef
This is the context model corresponding to the persistence resource model XmlMappingFileRef, which corresponds to the 'mapping-file' tag in the persistence.xml. 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 |
FILE_NAME_PROPERTY
String constant associated with changes to the file name. |
static java.lang.String |
MAPPING_FILE_PROPERTY
String constant associated with changes to the mapping file. |
| Method Summary | |
|---|---|
boolean |
containsOffset(int textOffset)
Return whether the text representation of the mapping file contains the specified text offset. |
java.lang.String |
getFileName()
Return the file name of the mapping file ref. |
MappingFile |
getMappingFile()
Return the mapping file ref's mapping file corresponding to the file name. |
MappingFilePersistenceUnitDefaults |
getPersistenceUnitDefaults()
Return the mapping file's persistence unit defaults. |
PersistentType |
getPersistentType(java.lang.String typeName)
Return the persistent type, as listed in the mapping file, with the specified name. |
boolean |
isImplied()
Return whether the mapping file ref is "implied" by, or explicitly specified in, the persistence.xml. |
boolean |
persistenceUnitDefaultsExists()
Return whether the mapping file's persistence unit defaults exist. |
void |
setFileName(java.lang.String fileName)
Set the file name of the mapping file ref. |
void |
update(XmlMappingFileRef mappingFileRef)
Update the MappingFileRef context model object to match the XmlMappingFileRef resource model object. |
| Methods inherited from interface org.eclipse.jpt.core.context.XmlContextNode |
|---|
getValidationTextRange, validate |
| 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.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jpt.core.IResourcePart |
|---|
getResource |
| Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode |
|---|
dispose, getContentType, getId, getSelectionTextRange, getStructureNode |
| Field Detail |
|---|
static final java.lang.String FILE_NAME_PROPERTY
static final java.lang.String MAPPING_FILE_PROPERTY
| Method Detail |
|---|
java.lang.String getFileName()
void setFileName(java.lang.String fileName)
MappingFile getMappingFile()
void update(XmlMappingFileRef mappingFileRef)
JpaProject.update()
boolean isImplied()
MappingFilePersistenceUnitDefaults getPersistenceUnitDefaults()
boolean persistenceUnitDefaultsExists()
PersistentType getPersistentType(java.lang.String typeName)
boolean containsOffset(int textOffset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||