org.eclipse.jpt.jpa.core.resource.java
Interface JavaResourcePersistentTypeCache

All Superinterfaces:
JavaResourceNode, JavaResourceNode.Root, JptResourceModel, Model

public interface JavaResourcePersistentTypeCache
extends JavaResourceNode.Root

Java persistent type cache - used to hold "external" types 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode.Root
PERSISTENT_TYPES_COLLECTION
 
Method Summary
 JavaResourcePersistentType addPersistentType(org.eclipse.jdt.core.IType jdtType)
          Add a Java resource persistent type for the specified JDT type to the cache.
 int persistentTypesSize()
          Return the size of the cache's persistent types.
 boolean removePersistentTypes(org.eclipse.core.resources.IFile jarFile)
          Remove all the persistent types associated with the specified JAR file.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode.Root
getAnnotationProvider, persistentTypes, resourceModelChanged
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange, initialize, synchronizeWith
 
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.jpt.common.core.JptResourceModel
addResourceModelListener, getResourceType, removeResourceModelListener
 

Method Detail

persistentTypesSize

int persistentTypesSize()
Return the size of the cache's persistent types.


addPersistentType

JavaResourcePersistentType addPersistentType(org.eclipse.jdt.core.IType jdtType)
Add a Java resource persistent type for the specified JDT type to the cache. Return the new type.


removePersistentTypes

boolean removePersistentTypes(org.eclipse.core.resources.IFile jarFile)
Remove all the persistent types associated with the specified JAR file. Return whether any persistent types were removed.