|
EclipseLink 2.5.0, build 'v20130110-d839ca4' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.sessions.SessionEventAdapter
org.eclipse.persistence.internal.jaxb.SessionEventListener
org.eclipse.persistence.jpa.rs.util.PreLoginMappingAdapter
public class PreLoginMappingAdapter
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.
| 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 | |
|---|---|
protected static void |
convertMappingToXMLChoiceMapping(ClassDescriptor jaxbDescriptor,
DatabaseMapping jpaMapping,
java.lang.ClassLoader cl)
Build an XMLChoiceObjectMapping based on a particular mapping and replace that mapping with the newly created XMLChoiceObjectMapping in jaxbDescriptor. |
protected static void |
convertMappingToXMLInverseReferenceMapping(ClassDescriptor jaxbDescriptor,
DatabaseMapping mapping,
java.lang.String mappedBy)
Build an XMLInverseMapping based on a particular mapping and replace that mapping with the newly created XMLInverseMapping in jaxbDescriptor |
static void |
copyAccessorToMapping(DatabaseMapping originMapping,
DatabaseMapping targetMapping)
Update the targetMapping to have the same accessor as the originMapping |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.persistence.internal.sessions.AbstractSession jpaSession
| Constructor Detail |
|---|
public PreLoginMappingAdapter(org.eclipse.persistence.internal.sessions.AbstractSession jpaSession)
jpaSession - the jpa session| Method Detail |
|---|
public void preLogin(SessionEvent event)
SessionEventAdapter
preLogin in interface SessionEventListenerpreLogin in class org.eclipse.persistence.internal.jaxb.SessionEventListener
public static void copyAccessorToMapping(DatabaseMapping originMapping,
DatabaseMapping targetMapping)
originMapping - targetMapping -
protected static void convertMappingToXMLInverseReferenceMapping(ClassDescriptor jaxbDescriptor,
DatabaseMapping mapping,
java.lang.String mappedBy)
jaxbDescriptor - mapping - mappedBy -
protected static void convertMappingToXMLChoiceMapping(ClassDescriptor jaxbDescriptor,
DatabaseMapping jpaMapping,
java.lang.ClassLoader cl)
jaxbDescriptor - the jaxb descriptorjpaMapping - the jpa mappingcl - the classloader
|
EclipseLink 2.5.0, build 'v20130110-d839ca4' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||