org.eclipse.jpt.core.context.java
Interface JarFile
- All Superinterfaces:
- org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, JpaStructureNode, Model, PersistentTypeContainer
public interface JarFile
- extends JpaContextNode, JpaStructureNode, PersistentTypeContainer
A JAR file identified by a persistence.xml jar-file element.
Holds persistent types corresponding to all the "persistable" types
discovered in the JAR.
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.
- Since:
- 2.2
- Version:
- 2.3
| Methods inherited from interface org.eclipse.jpt.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.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 |
JAVA_PERSISTENT_TYPES_COLLECTION
static final java.lang.String JAVA_PERSISTENT_TYPES_COLLECTION
- See Also:
- Constant Field Values
javaPersistentTypes
java.util.Iterator<JavaPersistentType> javaPersistentTypes()
- Return the JAR file's Java persistent types.
Return only the types that are annotated with JPA annotations.
javaPersistentTypesSize
int javaPersistentTypesSize()
- Return the size of the JAR file's Java persistent types.
getPersistentType
PersistentType getPersistentType(java.lang.String typeName)
- Return the persistent type with the specified name.
Return null if the persistent type is not found.
update
void update(JavaResourcePackageFragmentRoot jrpfr)
- Synchronize the context JAR file to the specified Java package fragment
root.
- See Also:
JpaProject.update()
validate
void validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
- Add to the list of current validation messages