|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Persistence
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 to the persistence node and return the object representing it. |
PersistenceUnit |
addPersistenceUnit(int index)
Add a persistence unit to the persistence node at the specified index and return the object representing it. |
boolean |
containsOffset(int textOffset)
Return whether the text representation of this persistence contains the given text offset |
java.util.ListIterator<PersistenceUnit> |
persistenceUnits()
Return an iterator on the list of persistence units. |
int |
persistenceUnitsSize()
Return the size of the persistence unit list. |
void |
removePersistenceUnit(int index)
Remove the persistence unit at the specified index from the persistence node. |
void |
removePersistenceUnit(PersistenceUnit persistenceUnit)
Remove the persistence unit from the persistence node. |
void |
update(XmlPersistence persistence)
|
Methods inherited from interface org.eclipse.jpt.core.context.persistence.PersistenceJpaContextNode |
---|
addToMessages, getValidationTextRange |
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode |
---|
getEntityMappings, getOrmPersistentType, getPersistenceUnit |
Methods inherited from interface org.eclipse.jpt.core.JpaNode |
---|
getJpaProject, getParent, getResource |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode |
---|
dispose, getId, getSelectionTextRange, getStructureNode |
Field Detail |
---|
static final java.lang.String PERSISTENCE_UNITS_LIST
Method Detail |
---|
java.util.ListIterator<PersistenceUnit> persistenceUnits()
int persistenceUnitsSize()
PersistenceUnit addPersistenceUnit()
PersistenceUnit addPersistenceUnit(int index)
void removePersistenceUnit(PersistenceUnit persistenceUnit)
void removePersistenceUnit(int index)
void update(XmlPersistence persistence)
boolean containsOffset(int textOffset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |