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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbasicBeginTransaction(AbstractSession session) Begin a transaction on the "data store".voidbasicCommitTransaction(AbstractSession session) Commit the transaction to the "data store".basicExecuteCall(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 voidClose 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 booleanReturn if the connection to the "data source" is connected.toString()Call#toString(PrintWriter), to allow subclasses to insert additional information.protected voidtoString(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:
connectInternalin classDatasourceAccessor- Throws:
DatabaseException
-
basicBeginTransaction
Begin a transaction on the "data store".- Specified by:
basicBeginTransactionin classDatasourceAccessor
-
basicCommitTransaction
Commit the transaction to the "data store".- Specified by:
basicCommitTransactionin classDatasourceAccessor
-
basicRollbackTransaction
Rollback the transaction on the "data store".- Specified by:
basicRollbackTransactionin classDatasourceAccessor
-
basicExecuteCall
public 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
Log any driver level connection meta-data if available.- Specified by:
buildConnectLogin 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.
-