Package org.eclipse.persistence.oxm
Class XMLLogin
java.lang.Object
org.eclipse.persistence.sessions.DatasourceLogin
org.eclipse.persistence.oxm.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:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.persistence.internal.databaseaccess.Accessor
INTERNAL: Returns the appropriate accessorboolean
void
void
setEqualNamespaceResolvers
(boolean equalNRs) 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
-
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 interfaceLogin
- Returns:
- an instance of org.eclipse.persistence.internal.oxm.XMLAccessor
-
toString
Return a String representation of the object.- Overrides:
toString
in classDatasourceLogin
- Returns:
- a string representation of the receiver
-
getDocumentPreservationPolicy
- Specified by:
getDocumentPreservationPolicy
in interfaceorg.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>
-
setDocumentPreservationPolicy
- Specified by:
setDocumentPreservationPolicy
in interfaceorg.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 interfaceorg.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>
-