Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JpaContextNode, JpaNode, JptResourceTypeReference, ManagedTypeContainer, Model, PersistentTypeContainer

public interface JarFile
extends JpaContextNode, 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer
PersistentTypeContainer.PersistentTypesTransformer
 
Field Summary
static String JAVA_MANAGED_TYPES_COLLECTION
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer
TRANSFORMER
 
Method Summary
 JavaResourcePackageFragmentRoot getJarResourcePackageFragmentRoot()
           
 Iterable<JavaManagedType> getJavaManagedTypes()
          Return the JAR file's Java managed types.
 int getJavaManagedTypesSize()
          Return the size of the JAR file's Java managed types.
 boolean isIn(IFolder folder)
          Return true if this jar file exists in the given folder
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer
getPersistentType, getPersistentTypes
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.persistence.ManagedTypeContainer
getManagedType, getManagedTypes
 

Field Detail

JAVA_MANAGED_TYPES_COLLECTION

static final String JAVA_MANAGED_TYPES_COLLECTION
See Also:
Constant Field Values
Method Detail

getJarResourcePackageFragmentRoot

JavaResourcePackageFragmentRoot getJarResourcePackageFragmentRoot()

getJavaManagedTypes

Iterable<JavaManagedType> getJavaManagedTypes()
Return the JAR file's Java managed types. Return only the types that are annotated with JPA annotations.


getJavaManagedTypesSize

int getJavaManagedTypesSize()
Return the size of the JAR file's Java managed types.


isIn

boolean isIn(IFolder folder)
Return true if this jar file exists in the given folder


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.