EclipseLink1.0 - 20080707 API Reference

org.eclipse.persistence.oxm
Class XMLLogin

java.lang.Object
  extended by org.eclipse.persistence.sessions.DatasourceLogin
      extended by org.eclipse.persistence.oxm.XMLLogin
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Login

public class XMLLogin
extends DatasourceLogin

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:
SAXPlatform, DOMPlatform, Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.persistence.sessions.DatasourceLogin
cacheTransactionIsolation, CONCURRENT_READ_WRITE, connector, platform, properties, SYNCHRONIZED_READ_ON_WRITE, SYNCHRONIZED_WRITE, SYNCRONIZED_OBJECT_LEVEL_READ_WRITE, SYNCRONIZED_OBJECT_LEVEL_READ_WRITE_DATABASE, usesExternalConnectionPooling, usesExternalTransactionController, versionString
 
Constructor Summary
XMLLogin()
          Default constructor.
XMLLogin(org.eclipse.persistence.internal.databaseaccess.Platform platform)
          Constructor, create a new XMLLogin based on the given platform.
 
Method Summary
 org.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor()
          INTERNAL: Returns the appropriate accessor
 DocumentPreservationPolicy getDocumentPreservationPolicy()
           
 boolean hasEqualNamespaceResolvers()
           
 void setDocumentPreservationPolicy(DocumentPreservationPolicy policy)
           
 void setEqualNamespaceResolvers(boolean equalNRs)
           
 java.lang.String toString()
          Return a String representation of the object.
 
Methods inherited from class org.eclipse.persistence.sessions.DatasourceLogin
addSequence, clone, connectToDatasource, dontUseExternalConnectionPooling, dontUseExternalTransactionController, getCacheTransactionIsolation, getConnector, getDatasourcePlatform, getDefaultSequence, getDefaultSequenceToWrite, getPassword, getPlatform, getPlatformClassName, getProperties, getProperty, getSecurableObjectHolder, getSequence, getSequences, getSequencesToWrite, getTableQualifier, getUserName, getVersion, isConnectionHealthValidatedOnError, removeAllSequences, removeProperty, removeSequence, setCacheTransactionIsolation, setConnector, setDatasourcePlatform, setDefaultNullValue, setDefaultSequence, setEncryptedPassword, setEncryptionClassName, setPassword, setPlatform, setPlatformClassName, setPlatformClassName, setProperties, setProperty, setSequences, setTableQualifier, setTimestampQuery, setUserName, setUsesExternalConnectionPooling, setUsesExternalTransactionController, shouldAllowConcurrentReadWrite, shouldSynchronizedReadOnWrite, shouldSynchronizeObjectLevelReadWrite, shouldSynchronizeObjectLevelReadWriteDatabase, shouldSynchronizeWrites, shouldUseExternalConnectionPooling, shouldUseExternalTransactionController, useExternalConnectionPooling, useExternalTransactionController, usePlatform
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

buildAccessor

public org.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor()
INTERNAL: Returns the appropriate accessor

Returns:
an instance of org.eclipse.persistence.internal.oxm.XMLAccessor

toString

public java.lang.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()

setDocumentPreservationPolicy

public void setDocumentPreservationPolicy(DocumentPreservationPolicy policy)

setEqualNamespaceResolvers

public void setEqualNamespaceResolvers(boolean equalNRs)

hasEqualNamespaceResolvers

public boolean hasEqualNamespaceResolvers()

EclipseLink1.0 - 20080707 API Reference