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

All Superinterfaces:
JavaResourceNode, JavaResourceNode.Root, JpaResourceModel, 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
static java.lang.String 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.core.resource.java.JavaResourceNode.Root
getAnnotationProvider, persistentTypes, resourceModelChanged
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, update
 
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.jpt.core.JpaResourceModel
addResourceModelListener, removeResourceModelListener
 

Field Detail

PERSISTENT_TYPES_COLLECTION

static final java.lang.String PERSISTENT_TYPES_COLLECTION
See Also:
Constant Field Values
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.