EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.rs.util
Class PreLoginMappingAdapter

java.lang.Object
  extended by org.eclipse.persistence.sessions.SessionEventAdapter
      extended by org.eclipse.persistence.internal.jaxb.SessionEventListener
          extended by org.eclipse.persistence.jpa.rs.util.PreLoginMappingAdapter
All Implemented Interfaces:
java.util.EventListener, SessionEventListener

public class PreLoginMappingAdapter
extends org.eclipse.persistence.internal.jaxb.SessionEventListener

This adapter alters the way the JAXBContext handles relationships for an existing persistence unit. It changes non-private relationship mappings to be read-only and replaces those mappings with a mapping to a weaved-in list of relationships that will produce links.

Author:
tware

Field Summary
protected  org.eclipse.persistence.internal.sessions.AbstractSession jpaSession
           
 
Constructor Summary
PreLoginMappingAdapter(org.eclipse.persistence.internal.sessions.AbstractSession jpaSession)
          Instantiates a new pre login mapping adapter.
 
Method Summary
 void preLogin(SessionEvent event)
          PUBLIC: This Event is raised before the session logs in.
 
Methods inherited from class org.eclipse.persistence.internal.jaxb.SessionEventListener
setShouldValidateInstantiationPolicy
 
Methods inherited from class org.eclipse.persistence.sessions.SessionEventAdapter
missingDescriptor, moreRowsDetected, noRowsModified, outputParametersDetected, postAcquireClientSession, postAcquireConnection, postAcquireExclusiveConnection, postAcquireUnitOfWork, postBeginTransaction, postCalculateUnitOfWorkChangeSet, postCommitTransaction, postCommitUnitOfWork, postConnect, postDistributedMergeUnitOfWorkChangeSet, postExecuteQuery, postLogin, postLogout, postMergeUnitOfWorkChangeSet, postReleaseClientSession, postReleaseUnitOfWork, postResumeUnitOfWork, postRollbackTransaction, preBeginTransaction, preCalculateUnitOfWorkChangeSet, preCommitTransaction, preCommitUnitOfWork, preDistributedMergeUnitOfWorkChangeSet, preExecuteQuery, preLogout, preMergeUnitOfWorkChangeSet, prepareUnitOfWork, preReleaseClientSession, preReleaseConnection, preReleaseExclusiveConnection, preReleaseUnitOfWork, preRollbackTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jpaSession

protected org.eclipse.persistence.internal.sessions.AbstractSession jpaSession
Constructor Detail

PreLoginMappingAdapter

public PreLoginMappingAdapter(org.eclipse.persistence.internal.sessions.AbstractSession jpaSession)
Instantiates a new pre login mapping adapter.

Parameters:
jpaSession - the jpa session
Method Detail

preLogin

public void preLogin(SessionEvent event)
Description copied from class: SessionEventAdapter
PUBLIC: This Event is raised before the session logs in.

Specified by:
preLogin in interface SessionEventListener
Overrides:
preLogin in class org.eclipse.persistence.internal.jaxb.SessionEventListener

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference