- java.lang.Object
-
- org.eclipse.persistence.sessions.SessionEventAdapter
-
- org.eclipse.persistence.internal.jaxb.SessionEventListener
-
- org.eclipse.persistence.jpa.rs.util.PreLoginMappingAdapter
-
- All Implemented Interfaces:
EventListener,CoreSessionEventListener,SessionEventListener
public class PreLoginMappingAdapter extends org.eclipse.persistence.internal.jaxb.SessionEventListenerThis 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
Fields Modifier and Type Field Description protected SessionjpaSession
-
Constructor Summary
Constructors Constructor Description PreLoginMappingAdapter(Session jpaSession)Instantiates a new pre login mapping adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpreLogin(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, postExecuteCall, postExecuteQuery, postLogin, postLogout, postMergeUnitOfWorkChangeSet, postReleaseClientSession, postReleaseUnitOfWork, postResumeUnitOfWork, postRollbackTransaction, preBeginTransaction, preCalculateUnitOfWorkChangeSet, preCommitTransaction, preCommitUnitOfWork, preDistributedMergeUnitOfWorkChangeSet, preExecuteCall, preExecuteQuery, preLogout, preMergeUnitOfWorkChangeSet, prepareUnitOfWork, preReleaseClientSession, preReleaseConnection, preReleaseExclusiveConnection, preReleaseUnitOfWork, preRollbackTransaction
-
-
-
-
Field Detail
-
jpaSession
protected Session jpaSession
-
-
Constructor Detail
-
PreLoginMappingAdapter
public PreLoginMappingAdapter(Session 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:org.eclipse.persistence.internal.jaxb.SessionEventListenerPUBLIC: This Event is raised before the session logs in.- Specified by:
preLoginin interfaceSessionEventListener- Overrides:
preLoginin classorg.eclipse.persistence.internal.jaxb.SessionEventListener
-
-