JPA Method
in javax.persistence.EntityManagerFactory

Cache getCache()


Access the cache that is associated with the entity manager factory (the "second level cache").
Return:
instance of the Cache interface or null if no cache is in use
Throws:
IllegalStateException - if the entity manager factory has been closed
Since:
JPA 2.0