Class XMLAccessor
- java.lang.Object
-
- org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
-
- org.eclipse.persistence.internal.oxm.XMLAccessor
-
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 void
basicBeginTransaction(AbstractSession session)
Begin a transaction on the "data store".void
basicCommitTransaction(AbstractSession session)
Commit the transaction to the "data store".Object
basicExecuteCall(Call call, AbstractRecord translationRow, AbstractSession session)
Execute the call to driver level datasource.void
basicRollbackTransaction(AbstractSession session)
Rollback the transaction on the "data store".protected void
buildConnectLog(AbstractSession session)
Log any driver level connection meta-data if available.protected void
closeDatasourceConnection()
Close the connection to the driver level datasource.protected void
connectInternal(Login login, AbstractSession session)
By default the SDK does not have a connection, so use an object as a placeholder.protected AbstractRecord
convert(AbstractRecord row, AbstractSession session)
Convert the specified row into something suitable for the calls.protected boolean
isDatasourceConnected()
Return if the connection to the "data source" is connected.String
toString()
Call#toString(PrintWriter)
, to allow subclasses to insert additional information.protected void
toString(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:
connectInternal
in classDatasourceAccessor
- Throws:
DatabaseException
-
basicBeginTransaction
public void basicBeginTransaction(AbstractSession session)
Begin a transaction on the "data store".- Specified by:
basicBeginTransaction
in classDatasourceAccessor
-
basicCommitTransaction
public void basicCommitTransaction(AbstractSession session)
Commit the transaction to the "data store".- Specified by:
basicCommitTransaction
in classDatasourceAccessor
-
basicRollbackTransaction
public void basicRollbackTransaction(AbstractSession session)
Rollback the transaction on the "data store".- Specified by:
basicRollbackTransaction
in classDatasourceAccessor
-
basicExecuteCall
public Object basicExecuteCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException
Description copied from class:DatasourceAccessor
Execute the call to driver level datasource.- Specified by:
basicExecuteCall
in classDatasourceAccessor
- Throws:
DatabaseException
-
closeDatasourceConnection
protected void closeDatasourceConnection()
Description copied from class:DatasourceAccessor
Close the connection to the driver level datasource.- Specified by:
closeDatasourceConnection
in classDatasourceAccessor
-
isDatasourceConnected
protected boolean isDatasourceConnected()
Return if the connection to the "data source" is connected.- Specified by:
isDatasourceConnected
in classDatasourceAccessor
-
buildConnectLog
protected void buildConnectLog(AbstractSession session)
Log any driver level connection meta-data if available.- Specified by:
buildConnectLog
in 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 String toString()
Call#toString(PrintWriter)
, to allow subclasses to insert additional information.
-
toString
protected void toString(PrintWriter writer)
Append more information to the writer.
-
-