Class XMLLogin

All Implemented Interfaces:
Serializable, Cloneable, CoreLogin<org.eclipse.persistence.internal.databaseaccess.Platform>, org.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>, Login

public class XMLLogin extends DatasourceLogin implements org.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>
In OX, the platform determines which parsing method will be used, DOM vs SAX.

Code Sample
XMLLogin xmlLogin = new XMLLogin(new org.eclipse.persistence.oxm.platform.DOMPlatform);
Project myProject = new MyTopLinkProject(xmlLogin)

See Also:
  • Constructor Details

    • XMLLogin

      public XMLLogin()
      Default constructor. Sets the platform to be the default platform which is org.eclipse.persistence.oxm.platform.SAXPlatform.
    • XMLLogin

      public XMLLogin(org.eclipse.persistence.internal.databaseaccess.Platform platform)
      Constructor, create a new XMLLogin based on the given platform. Valid platforms are instances of org.eclipse.persistence.oxm.platform.DOMPlaform and instances of org.eclipse.persistence.oxm.platform.SAXPlatform.
      Parameters:
      platform - The platform to base this login on
  • Method Details

    • buildAccessor

      public org.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor()
      INTERNAL: Returns the appropriate accessor
      Specified by:
      buildAccessor in interface Login
      Returns:
      an instance of org.eclipse.persistence.internal.oxm.XMLAccessor
    • toString

      public String toString()
      Return a String representation of the object.
      Overrides:
      toString in class DatasourceLogin
      Returns:
      a string representation of the receiver
    • getDocumentPreservationPolicy

      public DocumentPreservationPolicy getDocumentPreservationPolicy()
      Specified by:
      getDocumentPreservationPolicy in interface org.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>
    • setDocumentPreservationPolicy

      public void setDocumentPreservationPolicy(DocumentPreservationPolicy policy)
      Specified by:
      setDocumentPreservationPolicy in interface org.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>
    • setEqualNamespaceResolvers

      public void setEqualNamespaceResolvers(boolean equalNRs)
    • hasEqualNamespaceResolvers

      public boolean hasEqualNamespaceResolvers()
      Specified by:
      hasEqualNamespaceResolvers in interface org.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>