Modifier and Type | Field and Description |
---|---|
protected Accessor |
DatabaseException.accessor |
Modifier and Type | Method and Description |
---|---|
Accessor |
DatabaseException.getAccessor()
PUBLIC:
Return the accessor.
|
Modifier and Type | Method and Description |
---|---|
static QueryException |
QueryException.invalidDatabaseAccessor(Accessor accessor) |
void |
DatabaseException.setAccessor(Accessor accessor)
INTERNAL:
Set the Accessor.
|
static DatabaseException |
DatabaseException.sqlException(SQLException exception,
Accessor accessor,
AbstractSession session) |
static DatabaseException |
DatabaseException.sqlException(SQLException exception,
Call call,
Accessor accessor,
AbstractSession session) |
Modifier and Type | Class and Description |
---|---|
class |
DatabaseAccessor
INTERNAL:
DatabaseAccessor is private to TopLink.
|
class |
DatasourceAccessor
INTERNAL:
DatasourceAccessor is an abstract implementation
of the Accessor interface providing common functionality to the concrete database and EIS accessors. |
Modifier and Type | Method and Description |
---|---|
static void |
DatabaseCall.appendLogParameters(Collection parameters,
Accessor accessor,
StringWriter writer,
AbstractSession session)
Print the parameters to the write for logging purposes.
|
abstract String |
DatasourceCall.getLogString(Accessor accessor)
Return the SQL string for logging purposes.
|
String |
DatabaseCall.getLogString(Accessor accessor)
Return the SQL string for logging purposes.
|
Constructor and Description |
---|
LOBValueWriter(Accessor accessor)
This is the default constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
void |
SequencingCallback.afterTransaction(Accessor accessor,
boolean committed)
INTERNAL:
Called only by Session.afterTransaction method.
|
Modifier and Type | Field and Description |
---|---|
protected Accessor |
AbstractSession.accessor
The connection to the data store.
|
Modifier and Type | Method and Description |
---|---|
Accessor |
UnitOfWorkImpl.getAccessor()
INTERNAL:
The uow does not store a local accessor but shares its parents.
|
Accessor |
AbstractSession.getAccessor()
INTERNAL:
Return the lowlevel database accessor.
|
Accessor |
UnitOfWorkImpl.getAccessor(Class domainClass)
INTERNAL:
The uow does not store a local accessor but shares its parents.
|
Accessor |
AbstractSession.getAccessor(Class domainClass)
INTERNAL:
Return the lowlevel database accessor.
|
Accessor |
UnitOfWorkImpl.getAccessor(String sessionName)
INTERNAL:
The uow does not store a local accessor but shares its parents.
|
Accessor |
AbstractSession.getAccessor(String sessionName)
INTERNAL:
Return the lowlevel database accessor.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractSession.log(int level,
String message,
Object[] params,
Accessor accessor)
INTERNAL:
|
void |
AbstractSession.log(int level,
String message,
Object[] params,
Accessor accessor,
boolean shouldTranslate)
INTERNAL:
|
void |
AbstractSession.log(int level,
String category,
String message,
Object[] params,
Accessor accessor)
INTERNAL:
|
void |
AbstractSession.log(int level,
String category,
String message,
Object[] params,
Accessor accessor,
boolean shouldTranslate)
INTERNAL:
|
void |
AbstractSession.setAccessor(Accessor accessor)
INTERNAL:
Set the accessor.
|
Modifier and Type | Field and Description |
---|---|
protected Accessor |
SessionLogEntry.connection |
Modifier and Type | Method and Description |
---|---|
Accessor |
SessionLogEntry.getConnection()
PUBLIC:
Return the connection that generated the log entry.
|
Accessor |
TopLinkLogRecord.getConnection() |
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractSessionLog.getConnectionString(Accessor connection)
Return the specified connection information.
|
void |
SessionLogEntry.setConnection(Accessor connection)
PUBLIC:
Set the connection that generated the log entry.
|
void |
TopLinkLogRecord.setConnection(Accessor connection) |
Constructor and Description |
---|
SessionLogEntry(AbstractSession session,
String message,
Accessor connection)
PUBLIC:
Create a new session log entry for a session, a message and an accessor
|
SessionLogEntry(int level,
AbstractSession session,
String message,
Object[] params,
Accessor connection,
boolean shouldTranslate)
PUBLIC:
Create a new session log entry for a request level, a session, a message and an accessor
|
SessionLogEntry(int level,
String category,
AbstractSession session,
String message,
Object[] params,
Accessor connection,
boolean shouldTranslate)
PUBLIC:
Create a new session log entry for a request level, a session, a message and an accessor
|
Modifier and Type | Field and Description |
---|---|
protected Accessor |
DatabaseQuery.accessor
Connection to use for database access, required for server session connection pooling.
|
Modifier and Type | Method and Description |
---|---|
Accessor |
DatabaseQuery.getAccessor()
INTERNAL:
Return the accessor.
|
Modifier and Type | Method and Description |
---|---|
String |
Call.getLogString(Accessor accessor)
INTERNAL:
Return a string appropriate for the session log.
|
String |
EJBQLCall.getLogString(Accessor accessor)
INTERNAL:
Return the SQL string for this call.
|
void |
DatabaseQuery.setAccessor(Accessor accessor)
INTERNAL:
Set the accessor, the query must always use the same accessor for database access.
|
Modifier and Type | Method and Description |
---|---|
Object |
Sequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession)
INTERNAL:
Return the newly-generated sequencing value.
|
abstract Object |
Sequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession,
String seqName)
INTERNAL:
Return the newly-generated sequencing value.
|
Object |
DefaultSequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession,
String seqName)
INTERNAL:
Return the newly-generated sequencing value.
|
Object |
StandardSequence.getGeneratedValue(Accessor accessor,
AbstractSession writeSession,
String seqName) |
Vector |
Sequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession)
INTERNAL:
Return a Vector of newly-generated sequencing values.
|
abstract Vector |
Sequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size)
INTERNAL:
Return a Vector of newly-generated sequencing values.
|
Vector |
DefaultSequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession,
String name,
int size)
INTERNAL:
Return a Vector of newly-generated sequencing values.
|
Vector |
StandardSequence.getGeneratedVector(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size) |
protected Object |
QuerySequence.select(Accessor accessor,
AbstractSession writeSession,
String seqName,
Integer size)
INTERNAL:
|
protected void |
QuerySequence.update(Accessor accessor,
AbstractSession writeSession,
String seqName,
Number sizeOrNewValue)
INTERNAL:
|
protected abstract Number |
StandardSequence.updateAndSelectSequence(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size) |
protected Number |
QuerySequence.updateAndSelectSequence(Accessor accessor,
AbstractSession writeSession,
String seqName,
int size)
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
Accessor |
DatabaseLogin.buildAccessor()
INTERNAL:
Build and return an appropriate Accessor.
|
Accessor |
Login.buildAccessor()
INTERNAL:
Build the correct datasource Accessor for this login instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
DatasourceLogin.connectToDatasource(Accessor accessor)
INTERNAL:
Connect to the datasource, and return the driver level connection object.
|
Object |
Login.connectToDatasource(Accessor accessor)
INTERNAL:
Connect to the datasource, and return the driver level connection object.
|
void |
SessionEventManager.postAcquireConnection(Accessor accessor)
INTERNAL:
Raised after acquire a connection from a connection pool.
|
void |
SessionEventManager.postAcquireExclusiveConnection(ClientSession clientSession,
Accessor accessor)
INTERNAL:
Raised after acquire a connection from a connection pool.
|
void |
SessionEventManager.postConnect(Accessor accessor)
INTERNAL:
Raised after connecting.
|
void |
SessionEventManager.preReleaseConnection(Accessor accessor)
INTERNAL:
Raised before release a connection to a connection pool.
|
void |
SessionEventManager.preReleaseExclusiveConnection(ClientSession clientSession,
Accessor accessor)
INTERNAL:
This event is fired just before a Client Session, with isolated data,
releases its Exclusive Connection
|
Modifier and Type | Field and Description |
---|---|
protected Accessor |
ExternalConnectionPool.cachedConnection |
protected Accessor |
ClientSession.writeConnection |
Modifier and Type | Method and Description |
---|---|
Accessor |
ReadConnectionPool.acquireConnection()
INTERNAL:
Wait until a connection is avaiable and allocate the connection for the client.
|
Accessor |
ExternalConnectionPool.acquireConnection()
INTERNAL:
When we acquire a connection from an ExternalConnectionPool we build
a new connection (retrieve it from the external pool).
|
Accessor |
ConnectionPool.acquireConnection()
INTERNAL:
Wait until a connection is avaiable and allocate the connection for the client.
|
Accessor |
ServerSession.allocateReadConnection()
INTERNAL:
Return a read connection from the read pool.
|
protected Accessor |
ConnectionPool.buildConnection()
INTERNAL:
Create a new connection, accessors are used as connections.
|
Accessor |
ClientSession.getAccessor()
INTERNAL:
Return the read or write connection depending on the transaction state.
|
protected Accessor |
ExternalConnectionPool.getCachedConnection()
INTERNAL:
Return the currently cached connection to the external connection pool
|
Accessor |
ClientSession.getWriteConnection()
INTERNAL:
Return the connection to be used for database modification.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerSession.afterTransaction(boolean committed,
boolean isExternalTransaction,
Accessor accessor)
INTERNAL:
Called after transaction is completed (committed or rolled back)
|
void |
ReadConnectionPool.releaseConnection(Accessor connection)
INTERNAL:
Because connections are not exclusive nothing is required.
|
void |
ExternalConnectionPool.releaseConnection(Accessor connection)
INTERNAL:
When you release an external connection, you simply let it go.
|
void |
ConnectionPool.releaseConnection(Accessor connection)
INTERNAL:
Add the connection as single that a new connection is available.
|
void |
ServerSession.releaseReadConnection(Accessor connection)
INTERNAL:
Release the read connection back into the read pool.
|
protected void |
ExternalConnectionPool.setCachedConnection(Accessor cachedConnection)
Set the currently cached connection to the external connection pool.
|
void |
ClientSession.setWriteConnection(Accessor writeConnection)
INTERNAL:
Set the connection to be used for database modification.
|
Copyright © 2022. All rights reserved.