org.eclipse.jpt.jpa.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. This 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

Field Summary
static java.lang.String JAVA_PERSISTENT_TYPES_COLLECTION
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer
TRANSFORMER
 
Method Summary
 JavaResourcePackageFragmentRoot getJarResourcePackageFragmentRoot()
           
 boolean isIn(org.eclipse.core.resources.IFolder folder)
          Return true if this jar file exists in the given folder
 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 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.jpa.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
dispose, getId, getResourceType, getSelectionTextRange, getStructureNode
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaProject, getParent, 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.context.persistence.PersistentTypeContainer
getPersistentType, getPersistentTypes
 

Field Detail

JAVA_PERSISTENT_TYPES_COLLECTION

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

getJarResourcePackageFragmentRoot

JavaResourcePackageFragmentRoot getJarResourcePackageFragmentRoot()

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.


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


isIn

boolean isIn(org.eclipse.core.resources.IFolder folder)
Return true if this jar file exists in the given folder