public class

JPACacheProvider

extends Object
implements PersistenceCacheProvider
java.lang.Object
   ↳ vars.jpa.JPACacheProvider

Class Overview

Provides a method to clear the 2nd level cache used by Hibernate JPA. This is specific to Hibernate and will need to be rewritten if using s different JPA provider. In the future we can modify it to use JPA 2.0 cache API.

Summary

Public Constructors
JPACacheProvider(EntityManagerFactory annoEmf, EntityManagerFactory kbEmf, EntityManagerFactory miscEmf)
Public Methods
void clear()
Clear the second level cache
void evict(AnnotationObject entity)
void evict(KnowledgebaseObject entity)
[Expand]
Inherited Methods
From class java.lang.Object
From interface vars.PersistenceCacheProvider

Public Constructors

public JPACacheProvider (EntityManagerFactory annoEmf, EntityManagerFactory kbEmf, EntityManagerFactory miscEmf)

Public Methods

public void clear ()

Clear the second level cache

public void evict (AnnotationObject entity)

public void evict (KnowledgebaseObject entity)