|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.oxm.XMLContext.XMLContextState
public static class XMLContext.XMLContextState
Field Summary | |
---|---|
private java.util.Map |
descriptorsByGlobalType |
private java.util.Map |
descriptorsByQName |
private boolean |
hasDocumentPreservation |
private java.util.List |
sessions |
private XMLContext |
xmlContext |
Constructor Summary | |
---|---|
private |
XMLContext.XMLContextState(XMLContext xmlContext, java.util.Collection projects, java.lang.ClassLoader classLoader) |
private |
XMLContext.XMLContextState(XMLContext xmlContext, Project project, java.lang.ClassLoader classLoader, SessionEventListener sessionEventListener) |
private |
XMLContext.XMLContextState(XMLContext xmlContext, java.lang.String sessionNames, java.lang.ClassLoader classLoader, java.lang.String xmlResource) |
Method Summary | |
---|---|
private void |
addDescriptorByQName(javax.xml.namespace.QName qName, XMLDescriptor descriptor) |
private void |
addSession(DatabaseSession sessionToAdd) INTERNAL: Add and initialize a new session to the list of sessions associated with this XMLContext. |
private DatabaseSession |
buildSession(java.lang.String sessionName, java.lang.ClassLoader classLoader, XMLSessionConfigLoader sessionLoader) |
private XMLDescriptor |
getDescriptor(javax.xml.namespace.QName qName) INTERNAL: Return the XMLDescriptor with the default root mapping matching the QName parameter. |
private XMLDescriptor |
getDescriptorByGlobalType(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment) INTERNAL: Return the XMLDescriptor mapped to the global type matching the XPathFragment parameter. |
private org.eclipse.persistence.internal.sessions.AbstractSession |
getReadSession(java.lang.Class clazz) INTERNAL: Return the session corresponding to this class. |
private org.eclipse.persistence.internal.sessions.AbstractSession |
getReadSession(java.lang.Object object) INTERNAL: Return the session corresponding to this object. |
private org.eclipse.persistence.internal.sessions.AbstractSession |
getReadSession(XMLDescriptor xmlDescriptor) INTERNAL: Return the session corresponding to this XMLDescriptor. |
private org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.Class clazz) INTERNAL: Return the session corresponding to this class. |
private DatabaseSession |
getSession(int index) INTERNAL: XMLContext xmlContext = new XMLContext("path0:path1"); |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.Object object) INTERNAL: Return the session corresponding to this object. |
private org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(XMLDescriptor xmlDescriptor) INTERNAL: Return the session corresponding to this XMLDescriptor. |
private java.util.List |
getSessions() INTERNAL: Return the EclipseLink session used to marshal. |
private boolean |
hasDocumentPreservation() INTERNAL: Return true if any session held onto by this context has a document preservation policy that requires unmarshalling from a Node. |
private void |
setupDocumentPreservationPolicy(DatabaseSession session) |
private void |
storeXMLDescriptorByQName(XMLDescriptor xmlDescriptor) INTERNAL: |
private void |
storeXMLDescriptorsByQName(DatabaseSession session) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private XMLContext xmlContext
private java.util.List sessions
private java.util.Map descriptorsByQName
private java.util.Map descriptorsByGlobalType
private boolean hasDocumentPreservation
Constructor Detail |
---|
private XMLContext.XMLContextState(XMLContext xmlContext, java.util.Collection projects, java.lang.ClassLoader classLoader)
private XMLContext.XMLContextState(XMLContext xmlContext, Project project, java.lang.ClassLoader classLoader, SessionEventListener sessionEventListener)
private XMLContext.XMLContextState(XMLContext xmlContext, java.lang.String sessionNames, java.lang.ClassLoader classLoader, java.lang.String xmlResource)
Method Detail |
---|
private void addDescriptorByQName(javax.xml.namespace.QName qName, XMLDescriptor descriptor)
private void addSession(DatabaseSession sessionToAdd)
private DatabaseSession buildSession(java.lang.String sessionName, java.lang.ClassLoader classLoader, XMLSessionConfigLoader sessionLoader) throws XMLMarshalException
XMLMarshalException
private XMLDescriptor getDescriptor(javax.xml.namespace.QName qName)
private XMLDescriptor getDescriptorByGlobalType(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment)
private org.eclipse.persistence.internal.sessions.AbstractSession getReadSession(java.lang.Class clazz)
private org.eclipse.persistence.internal.sessions.AbstractSession getReadSession(XMLDescriptor xmlDescriptor)
private org.eclipse.persistence.internal.sessions.AbstractSession getReadSession(java.lang.Object object)
private org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.Class clazz)
private DatabaseSession getSession(int index)
XMLContext xmlContext = new XMLContext("path0:path1");
DatabaseSession session = xmlContext.getSession(0); // returns session for path0
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.Object object)
private org.eclipse.persistence.internal.sessions.AbstractSession getSession(XMLDescriptor xmlDescriptor)
private java.util.List getSessions()
private boolean hasDocumentPreservation()
private void setupDocumentPreservationPolicy(DatabaseSession session)
private void storeXMLDescriptorByQName(XMLDescriptor xmlDescriptor)
private void storeXMLDescriptorsByQName(DatabaseSession session)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |