java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
org.eclipse.persistence.internal.oxm.XMLAccessor
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
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
basicBeginTransaction
(AbstractSession session) Begin a transaction on the "data store".void
basicCommitTransaction
(AbstractSession session) Commit the transaction to the "data store".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
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
Return if the connection to the "data source" is connected.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, getColumnInfo, getConnection, getDatasourceConnection, getDatasourcePlatform, getLogin, getPool, getReadStatementsCount, getSequencingCallback, getStoredProcedureStatementsCount, getTableInfo, 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
-
Constructor Details
-
XMLAccessor
public XMLAccessor()Default Constructor.
-
-
Method Details
-
connectInternal
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
Begin a transaction on the "data store".- Specified by:
basicBeginTransaction
in classDatasourceAccessor
-
basicCommitTransaction
Commit the transaction to the "data store".- Specified by:
basicCommitTransaction
in classDatasourceAccessor
-
basicRollbackTransaction
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
Log any driver level connection meta-data if available.- Specified by:
buildConnectLog
in classDatasourceAccessor
-
convert
Convert the specified row into something suitable for the calls. The default is to leave the row unconverted. -
toString
Call#toString(PrintWriter)
, to allow subclasses to insert additional information. -
toString
Append more information to the writer.
-