EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference

org.eclipse.persistence.jpa.metadata
Class FileBasedProjectCache

java.lang.Object
  extended by org.eclipse.persistence.jpa.metadata.FileBasedProjectCache
All Implemented Interfaces:
ProjectCache

public class FileBasedProjectCache
extends java.lang.Object
implements ProjectCache

Purpose: Support serializing/deserializing a project representing application metadata to/from a file.


Constructor Summary
FileBasedProjectCache()
           
 
Method Summary
 java.lang.Object getConfigPropertyLogDebug(java.lang.String propertyName, java.util.Map properties, SessionLog log)
          Check the provided map for an object with the given name.
 Project retrieveProject(java.util.Map properties, java.lang.ClassLoader loader, SessionLog log)
          PUBLIC: This method is responsible for returning the cached metadata as represented by a Project instance.
 void storeProject(Project project, java.util.Map properties, SessionLog log)
          PUBLIC: This method is responsible for caching a project instance representing the application metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBasedProjectCache

public FileBasedProjectCache()
Method Detail

retrieveProject

public Project retrieveProject(java.util.Map properties,
                               java.lang.ClassLoader loader,
                               SessionLog log)
Description copied from interface: ProjectCache
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.

Specified by:
retrieveProject in interface ProjectCache

storeProject

public void storeProject(Project project,
                         java.util.Map properties,
                         SessionLog log)
Description copied from interface: ProjectCache
PUBLIC: This method is responsible for caching a project instance representing the application metadata.

Specified by:
storeProject in interface ProjectCache

getConfigPropertyLogDebug

public java.lang.Object getConfigPropertyLogDebug(java.lang.String propertyName,
                                                  java.util.Map properties,
                                                  SessionLog log)
Check the provided map for an object with the given name. If that object is not available, check the System properties. Log the value returned if logging is enabled at the FINEST level

Parameters:
propertyName -
map -
log -
Returns:

EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference