Module org.eclipse.persistence.core
Class Context.ContextState<ABSTRACT_SESSION extends CoreAbstractSession,DESCRIPTOR extends Descriptor,PROJECT extends CoreProject,SESSION extends CoreSession,SESSION_EVENT_LISTENER extends CoreSessionEventListener>
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.Context.ContextState<ABSTRACT_SESSION,DESCRIPTOR,PROJECT,SESSION,SESSION_EVENT_LISTENER>
-
- Enclosing class:
- Context<ABSTRACT_SESSION extends CoreAbstractSession,DESCRIPTOR extends Descriptor<?,?,?,?,?,NAMESPACE_RESOLVER,?,?,?,?>,FIELD extends Field,NAMESPACE_RESOLVER extends NamespaceResolver,PROJECT extends CoreProject,SESSION extends CoreSession,SESSION_EVENT_LISTENER extends CoreSessionEventListener>
public static class Context.ContextState<ABSTRACT_SESSION extends CoreAbstractSession,DESCRIPTOR extends Descriptor,PROJECT extends CoreProject,SESSION extends CoreSession,SESSION_EVENT_LISTENER extends CoreSessionEventListener> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Contextcontextprotected Map<XPathFragment,DESCRIPTOR>descriptorsByGlobalTypeprotected Map<XPathQName,DESCRIPTOR>descriptorsByQNameprotected SESSIONsession
-
Constructor Summary
Constructors Modifier Constructor Description protectedContextState()protectedContextState(Context context, PROJECT project, ClassLoader classLoader, Collection<SESSION_EVENT_LISTENER> sessionEventListeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescriptorByQName(QName qName, DESCRIPTOR descriptor)protected SESSIONgetSession()protected ABSTRACT_SESSIONgetSession(DESCRIPTOR descriptor)INTERNAL: Return the session corresponding to this Descriptor.protected ABSTRACT_SESSIONgetSession(Class<?> clazz)INTERNAL: Return the session corresponding to this class.protected ABSTRACT_SESSIONgetSession(Object object)INTERNAL: Return the session corresponding to this object.protected voidpreLogin(PROJECT project, ClassLoader classLoader)protected voidsetupSession(SESSION session)voidstoreDescriptorByQName(DESCRIPTOR descriptor, CorePlatform platform, Set<DESCRIPTOR> processedDescriptors)INTERNAL:voidstoreDescriptorsByQName(CoreSession session)
-
-
-
Field Detail
-
context
protected Context context
-
descriptorsByQName
protected Map<XPathQName,DESCRIPTOR extends Descriptor> descriptorsByQName
-
descriptorsByGlobalType
protected Map<XPathFragment,DESCRIPTOR extends Descriptor> descriptorsByGlobalType
-
session
protected SESSION extends CoreSession session
-
-
Constructor Detail
-
ContextState
protected ContextState()
-
ContextState
protected ContextState(Context context, PROJECT project, ClassLoader classLoader, Collection<SESSION_EVENT_LISTENER> sessionEventListeners)
-
-
Method Detail
-
addDescriptorByQName
public void addDescriptorByQName(QName qName, DESCRIPTOR descriptor)
-
preLogin
protected void preLogin(PROJECT project, ClassLoader classLoader)
-
getSession
protected SESSION getSession()
-
getSession
protected ABSTRACT_SESSION getSession(Class<?> clazz)
INTERNAL: Return the session corresponding to this class. Since the class may be mapped by more that one of the projects used to create the Context, this method will return the first match.
-
getSession
protected ABSTRACT_SESSION getSession(DESCRIPTOR descriptor)
INTERNAL: Return the session corresponding to this Descriptor. Since the class may be mapped by more that one of the projects used to create the Context, this method will return the first match.
-
getSession
protected ABSTRACT_SESSION getSession(Object object)
INTERNAL: Return the session corresponding to this object. Since the object may be mapped by more that one of the projects used to create the Context, this method will return the first match.
-
setupSession
protected void setupSession(SESSION session)
-
storeDescriptorByQName
public void storeDescriptorByQName(DESCRIPTOR descriptor, CorePlatform platform, Set<DESCRIPTOR> processedDescriptors)
INTERNAL:
-
storeDescriptorsByQName
public void storeDescriptorsByQName(CoreSession session)
-
-