Class XMLAccessor
- java.lang.Object
-
- org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
-
- org.eclipse.persistence.internal.oxm.XMLAccessor
-
- All Implemented Interfaces:
java.lang.Cloneable,Accessor
public class XMLAccessor extends DatasourceAccessor
INTERNAL:Purpose: This class implements the Accessor for XMLLogins. Provides empty implementations of most methods, since the Accessor isn't used apart from during the login.
- Since:
- 10.1.3
- Author:
- mmacivor
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
callCount, currentSession, customizer, datasourceConnection, isConnected, isInTransaction, isValid, login, platform, pool, possibleFailure, READ_STATEMENTS_COUNT_PROPERTY, readStatementsCount, sequencingCallback, shouldCheckConnection, STOREDPROCEDURE_STATEMENTS_COUNT_PROPERTY, storedProcedureStatementsCount, usesExternalConnectionPooling, WRITE_STATEMENTS_COUNT_PROPERTY, writeStatementsCount
-
-
Constructor Summary
Constructors Constructor Description XMLAccessor()Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbasicBeginTransaction(AbstractSession session)Begin a transaction on the "data store".voidbasicCommitTransaction(AbstractSession session)Commit the transaction to the "data store".java.lang.ObjectbasicExecuteCall(Call call, AbstractRecord translationRow, AbstractSession session)Execute the call to driver level datasource.voidbasicRollbackTransaction(AbstractSession session)Rollback the transaction on the "data store".protected voidbuildConnectLog(AbstractSession session)Log any driver level connection meta-data if available.protected voidcloseDatasourceConnection()Close the connection to the driver level datasource.protected voidconnectInternal(Login login, AbstractSession session)By default the SDK does not have a connection, so use an object as a placeholder.protected AbstractRecordconvert(AbstractRecord row, AbstractSession session)Convert the specified row into something suitable for the calls.protected booleanisDatasourceConnected()Return if the connection to the "data source" is connected.java.lang.StringtoString()Call#toString(PrintWriter), to allow subclasses to insert additional information.protected voidtoString(java.io.PrintWriter writer)Append more information to the writer.-
Methods inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
beginTransaction, clone, closeConnection, closeJTSConnection, commitTransaction, connect, createCustomizer, decrementCallCount, disconnect, executeCall, flushSelectCalls, getCallCount, getColumnInfo, getConnection, getDatasourceConnection, getDatasourcePlatform, getLogin, getPool, getReadStatementsCount, getSequencingCallback, getStoredProcedureStatementsCount, getTableInfo, getWriteStatementsCount, incrementCallCount, isConnected, isInTransaction, isPossibleFailure, isValid, reconnect, reestablishConnection, reestablishCustomizer, releaseCustomizer, releaseCustomizer, reset, rollbackTransaction, setCallCount, setCustomizer, setDatasourceConnection, setDatasourcePlatform, setIsConnected, setIsInTransaction, setIsValid, setLogin, setPool, setPossibleFailure, usesExternalConnectionPooling, usesExternalTransactionController, writesCompleted
-
-
-
-
Method Detail
-
connectInternal
protected void connectInternal(Login login, AbstractSession session) throws DatabaseException
By default the SDK does not have a connection, so use an object as a placeholder. Subclasses can make use of their own connection.- Overrides:
connectInternalin classDatasourceAccessor- Throws:
DatabaseException
-
basicBeginTransaction
public void basicBeginTransaction(AbstractSession session)
Begin a transaction on the "data store".- Specified by:
basicBeginTransactionin classDatasourceAccessor
-
basicCommitTransaction
public void basicCommitTransaction(AbstractSession session)
Commit the transaction to the "data store".- Specified by:
basicCommitTransactionin classDatasourceAccessor
-
basicRollbackTransaction
public void basicRollbackTransaction(AbstractSession session)
Rollback the transaction on the "data store".- Specified by:
basicRollbackTransactionin classDatasourceAccessor
-
basicExecuteCall
public java.lang.Object basicExecuteCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException
Description copied from class:DatasourceAccessorExecute the call to driver level datasource.- Specified by:
basicExecuteCallin classDatasourceAccessor- Throws:
DatabaseException
-
closeDatasourceConnection
protected void closeDatasourceConnection()
Description copied from class:DatasourceAccessorClose the connection to the driver level datasource.- Specified by:
closeDatasourceConnectionin classDatasourceAccessor
-
isDatasourceConnected
protected boolean isDatasourceConnected()
Return if the connection to the "data source" is connected.- Specified by:
isDatasourceConnectedin classDatasourceAccessor
-
buildConnectLog
protected void buildConnectLog(AbstractSession session)
Log any driver level connection meta-data if available.- Specified by:
buildConnectLogin classDatasourceAccessor
-
convert
protected AbstractRecord convert(AbstractRecord row, AbstractSession session)
Convert the specified row into something suitable for the calls. The default is to leave the row unconverted.
-
toString
public java.lang.String toString()
Call#toString(PrintWriter), to allow subclasses to insert additional information.- Overrides:
toStringin classjava.lang.Object
-
toString
protected void toString(java.io.PrintWriter writer)
Append more information to the writer.
-
-