org.eclipse.jpt.core.context.java
Interface JarFile

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, JpaStructureNode, Model

public interface JarFile
extends JpaContextNode, JpaStructureNode

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.


Field Summary
static java.lang.String JAVA_PERSISTENT_TYPES_COLLECTION
           
 
Method Summary
 PersistentType getPersistentType(java.lang.String typeName)
          Return the persistent type with the specified name.
 java.util.Iterator<JavaPersistentType> javaPersistentTypes()
          Return the JAR file's Java persistent types.
 int javaPersistentTypesSize()
          Return the size of the JAR file's Java persistent types.
 void update(JavaResourcePackageFragmentRoot jrpfr)
          Synchronize the context JAR file to the specified Java package fragment root.
 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
 
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.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
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
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 

Field Detail

JAVA_PERSISTENT_TYPES_COLLECTION

static final java.lang.String JAVA_PERSISTENT_TYPES_COLLECTION
See Also:
Constant Field Values
Method Detail

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