|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Persistence
Context model corresponding to the XML resource model XmlPersistence,
which corresponds to the persistence element in the
persistence.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.
| Field Summary | |
|---|---|
static java.lang.String |
PERSISTENCE_UNITS_LIST
String constant associated with changes to the persistence units list |
| Method Summary | |
|---|---|
PersistenceUnit |
addPersistenceUnit()
Add a persistence unit and return it. |
PersistenceUnit |
addPersistenceUnit(int index)
Add a persistence unit at the specified index and return it. |
boolean |
containsOffset(int textOffset)
Return whether the text representation of this persistence contains the specified text offset. |
PersistenceXml |
getParent()
Covariant override. |
XmlPersistence |
getXmlPersistence()
Return the resource model object associated with this context model object |
java.util.ListIterator<PersistenceUnit> |
persistenceUnits()
Return the persistence element's persistence units. |
int |
persistenceUnitsSize()
Return the number of persistence units. |
void |
removePersistenceUnit(int index)
Remove the persistence unit at the specified index from the persistence node. |
void |
removePersistenceUnit(PersistenceUnit persistenceUnit)
Remove the specified persistence unit from the persistence node. |
| 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, 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 |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode |
|---|
dispose, getId, getResourceType, getSelectionTextRange, getStructureNode |
| Field Detail |
|---|
static final java.lang.String PERSISTENCE_UNITS_LIST
| Method Detail |
|---|
XmlPersistence getXmlPersistence()
PersistenceXml getParent()
getParent in interface JpaNodejava.util.ListIterator<PersistenceUnit> persistenceUnits()
int persistenceUnitsSize()
PersistenceUnit addPersistenceUnit()
PersistenceUnit addPersistenceUnit(int index)
void removePersistenceUnit(PersistenceUnit persistenceUnit)
void removePersistenceUnit(int index)
boolean containsOffset(int textOffset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||