Package org.eclipse.persistence.oxm
Class XMLLogin
- java.lang.Object
-
- org.eclipse.persistence.sessions.DatasourceLogin
-
- org.eclipse.persistence.oxm.XMLLogin
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.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:
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.persistence.internal.databaseaccess.Accessor
buildAccessor()
INTERNAL: Returns the appropriate accessorDocumentPreservationPolicy
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
-
-
-
-
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- Specified by:
buildAccessor
in interfaceLogin
- 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 classDatasourceLogin
- Returns:
- a string representation of the receiver
-
getDocumentPreservationPolicy
public DocumentPreservationPolicy getDocumentPreservationPolicy()
- Specified by:
getDocumentPreservationPolicy
in interfaceorg.eclipse.persistence.internal.oxm.mappings.Login<org.eclipse.persistence.internal.databaseaccess.Platform>
-
setDocumentPreservationPolicy
public void setDocumentPreservationPolicy(DocumentPreservationPolicy policy)
- 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>
-
-