Top Description Methods
org.eclipse.persistence.jpa.metadata

public Interface ProjectCache

Known Direct Implementers
org.eclipse.persistence.jpa.metadata.FileBasedProjectCache
Imports
java.util.Map, org.eclipse.persistence.config.PersistenceUnitProperties, org.eclipse.persistence.logging.SessionLog, org.eclipse.persistence.sessions.Project

Purpose: Interface used to support caching the project generated from metadata avoiding costs associated processing the same metadata over multiple deployments.
Author
cdelahunt
Since
EclipseLink 2.4.1
See Also
PersistenceUnitProperties#PROJECT_CACHE

Method Summary

Modifier and TypeMethod and Description
public Project
retrieveProject(Map<String, ?> properties, ClassLoader loader, SessionLog log)

PUBLIC: This method is responsible for returning the cached metadata as represented by a Project instance.

public void
storeProject(Project project, Map<String, ?> properties, SessionLog log)

PUBLIC: This method is responsible for caching a project instance representing the application metadata.

Method Detail

retrieveProjectback to summary
public Project retrieveProject(Map<String, ?> properties, ClassLoader loader, SessionLog log)

PUBLIC: This method is responsible for returning the cached metadata as represented by a Project instance. This instance will have limited processing performed to turn string instances into classes during deployment. The classloader provided is the application loader. Please note that using it to load application classes (Entities) may prevent them from being dynamically woven.

Since
EclipseLink 2.4.1
storeProjectback to summary
public void storeProject(Project project, Map<String, ?> properties, SessionLog log)

PUBLIC: This method is responsible for caching a project instance representing the application metadata.

Since
EclipseLink 2.4.1