|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassRef
This is the context model corresponding to the persistence resource model XmlJavaClassRef, which corresponds to the 'class' tag in the persistence.xml. This is also used this for "implied" class refs; i.e. class refs that are not explicitly listed 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 |
CLASS_NAME_PROPERTY
String constant associated with changes to the class name |
static java.lang.String |
JAVA_PERSISTENT_TYPE_PROPERTY
String constant associated with changes to the java persistent type |
| Method Summary | |
|---|---|
boolean |
containsOffset(int textOffset)
Return whether the text representation of this persistence unit contains the given text offset |
java.lang.String |
getClassName()
Return the class name of the class ref. |
JavaPersistentType |
getJavaPersistentType()
Return the JavaPersistentType that corresponds to this IClassRef. |
boolean |
isFor(java.lang.String typeName)
Return whether the class ref is a reference to the specified type. |
boolean |
isVirtual()
Return true if the mapping file ref is "virtual"; return false if the mapping file ref is represented by an entry in the persistence.xml file. |
void |
setClassName(java.lang.String className)
Set the class name of the class ref. |
void |
update(java.lang.String className)
Update the ClassRef context model object to match the className. |
void |
update(XmlJavaClassRef classRef)
Update the ClassRef context model object to match the XmlJavaClassRef 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.JpaStructureNode |
|---|
dispose, getContentType, getId, getSelectionTextRange, getStructureNode |
| Methods inherited from interface org.eclipse.jpt.core.context.PersistentType.Owner |
|---|
getDefaultPersistentTypeAccess, getOverridePersistentTypeAccess |
| Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode |
|---|
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, postUpdate |
| Field Detail |
|---|
static final java.lang.String CLASS_NAME_PROPERTY
static final java.lang.String JAVA_PERSISTENT_TYPE_PROPERTY
| Method Detail |
|---|
boolean isFor(java.lang.String typeName)
boolean isVirtual()
java.lang.String getClassName()
void setClassName(java.lang.String className)
JavaPersistentType getJavaPersistentType()
void update(XmlJavaClassRef classRef)
JpaProject.update()
void update(java.lang.String className)
JpaProject.update()
boolean containsOffset(int textOffset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||