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

public Class FileBasedProjectCache

extends Object
implements ProjectCache
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.metadata.ProjectCache
Imports
java.io.File, .FileOutputStream, .ObjectOutputStream, java.util.Map, org.eclipse.persistence.config.PersistenceUnitProperties, org.eclipse.persistence.logging.SessionLog, org.eclipse.persistence.sessions.Project

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

Constructor Summary

AccessConstructor and Description
public
FileBasedProjectCache()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

object for the given name, null if not found
getConfigPropertyLogDebug
(final String
property name
propertyName
,
Map<String, ?>
properties
properties
,
SessionLog
logger
log
)

Check the provided map for an object with the given name.

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

Implements org.eclipse.persistence.jpa.metadata.ProjectCache.retrieveProject.

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)

Implements org.eclipse.persistence.jpa.metadata.ProjectCache.storeProject.

PUBLIC: This method is responsible for caching a project instance representing the application metadata.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FileBasedProjectCacheback to summary
public FileBasedProjectCache()

Default constructor.

Method Detail

getConfigPropertyLogDebugback to summary
public Object getConfigPropertyLogDebug(final String propertyName, Map<String, ?> 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:String

property name

properties:Map<String, ?>

properties

log:SessionLog

logger

Returns:Object

object for the given name, null if not found

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

Implements org.eclipse.persistence.jpa.metadata.ProjectCache.retrieveProject.

Doc from org.eclipse.persistence.jpa.metadata.ProjectCache.retrieveProject.

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.

Annotations
@Override
storeProjectback to summary
public void storeProject(Project project, Map<String, ?> properties, SessionLog log)

Implements org.eclipse.persistence.jpa.metadata.ProjectCache.storeProject.

Doc from org.eclipse.persistence.jpa.metadata.ProjectCache.storeProject.

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

Annotations
@Override