C D E G I M N P Q R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
C
- CALLABLE - com.opencloud.slee.resources.dbquery.QueryInfo.StatementType
-
The setParameters method will supply a
#setParameters(java.sql.CallableStatement)
. - close() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseFutureResult
-
Closes the result set and prepared statement.
- com.opencloud.slee.resources.dbquery - package com.opencloud.slee.resources.dbquery
-
The Database Query Resource Adaptor API.
- commit() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryTransactionalActivity
-
Call commit on the connection in use by the transaction associated with this result.
- commit(long) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseTransaction
-
Call commit on the connection.
- createActivity() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryProvider
-
Create a
DatabaseQueryActivity
that can be used to send a single query with auto-commit on. - createTransaction() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryProvider
-
Create and return a
DatabaseTransaction
object that can be provided toDatabaseQueryProvider.sendQuery(QueryInfo, DatabaseTransaction)
to associate multiple synchronous queries with a single transaction and then committed or rolled back. - createTransactionalActivity() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryProvider
-
Create a
DatabaseQueryActivity
that can be used to send one or more queries as part of a transaction.
D
- DatabaseFutureResult - Interface in com.opencloud.slee.resources.dbquery
-
A "future" for retrieving database results when they are available.
- DatabaseQueryActivity - Interface in com.opencloud.slee.resources.dbquery
-
The query activity on which result and failure events are fired.
- DatabaseQueryActivityContextInterfaceFactory - Interface in com.opencloud.slee.resources.dbquery
-
Interface implemented by the SLEE to get activity context interfaces for
DatabaseQueryActivity
objects. - DatabaseQueryException - Exception in com.opencloud.slee.resources.dbquery
-
Thrown by the Database Query resource adaptor for any exception that is not caused by a database problem (where
SQLException
is used) or a timeout (TimeoutException
) or no DataSources being available (NoDataSourcesAvailableException
). - DatabaseQueryException(String) - Constructor for exception com.opencloud.slee.resources.dbquery.DatabaseQueryException
- DatabaseQueryException(String, Throwable) - Constructor for exception com.opencloud.slee.resources.dbquery.DatabaseQueryException
- DatabaseQueryFailureEvent - Interface in com.opencloud.slee.resources.dbquery
-
A failure event.
- DatabaseQueryProvider - Interface in com.opencloud.slee.resources.dbquery
-
Defines the provider interface used by services to send queries using the Database Query resource adaptor.
- DatabaseQueryTransactionalActivity - Interface in com.opencloud.slee.resources.dbquery
-
The query activity on which result and failure events are fired.
- DatabaseResultEvent - Interface in com.opencloud.slee.resources.dbquery
-
The result event.
- DatabaseTransaction - Interface in com.opencloud.slee.resources.dbquery
-
Defines an interface for synchronous queries to interact with a explicit transaction.
E
- EXECUTE - com.opencloud.slee.resources.dbquery.QueryInfo.ExecuteType
-
Call Statement.execute().
G
- getActivityContextInterface(DatabaseQueryActivity) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryActivityContextInterfaceFactory
-
Get an ACI for a database query activity.
- getActivityContextInterface(DatabaseQueryTransactionalActivity) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryActivityContextInterfaceFactory
-
Get an ACI for a transactional database query activity.
- getCause() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryFailureEvent
-
The exception that caused the failure, if applicable.
- getDataSourceNameUsed() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseFutureResult
-
Which of the configured DataSource names was used for the query.
- getDataSourceNameUsed() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseResultEvent
-
Which of the configured DataSource names was used for the query.
- getErrorMessage() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryFailureEvent
-
Returns a human-readable error message.
- getExecuteType() - Method in class com.opencloud.slee.resources.dbquery.Query
- getExecuteType() - Method in interface com.opencloud.slee.resources.dbquery.QueryInfo
-
Get the type of execute method to call on the prepared statement.
- getExecuteType() - Method in class com.opencloud.slee.resources.dbquery.UpdateQuery
- getFailureReason() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryFailureEvent
-
The reason for the failure.
- getQueryInfo() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryFailureEvent
-
Return a reference to the
QueryInfo
object that was used for the request that generated this failure, or null if this failure event is for a transaction end request (commit or rollback). - getQueryInfo() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseResultEvent
-
Return a reference to the
QueryInfo
object that was used for the request that generated this result. - getResult() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseResultEvent
-
Return the value returned if this result is for an execute.
- getResult(long) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseFutureResult
-
Retrieve the result of the execute when it is available.
- getResultSet() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseResultEvent
-
Return the JDBC ResultSet.
- getResultSet(long) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseFutureResult
-
Retrieve the result of the query when it is available.
- getRetryBehaviour() - Method in class com.opencloud.slee.resources.dbquery.Query
- getRetryBehaviour() - Method in interface com.opencloud.slee.resources.dbquery.QueryInfo
-
Get the retry behaviour to use for this query.
- getRetryBehaviour() - Method in class com.opencloud.slee.resources.dbquery.UpdateQuery
- getSql() - Method in class com.opencloud.slee.resources.dbquery.Query
- getSql() - Method in interface com.opencloud.slee.resources.dbquery.QueryInfo
-
Get the SQL to be passed to
Connection.prepareStatement(String)
. - getSql() - Method in class com.opencloud.slee.resources.dbquery.UpdateQuery
- getStatement() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseResultEvent
-
Return the Statement
- getStatement(long) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseFutureResult
-
Retrieve the Statement that was used to query the Database.
- getStatementType() - Method in class com.opencloud.slee.resources.dbquery.Query
- getStatementType() - Method in interface com.opencloud.slee.resources.dbquery.QueryInfo
-
Get the statement type for this query.
- getStatementType() - Method in class com.opencloud.slee.resources.dbquery.UpdateQuery
- getUpdateResult() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseResultEvent
-
Return the value returned if this result is for an update.
- getUpdateResult(long) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseFutureResult
-
Retrieve the result of the update when it is available.
I
- INSUFFICIENT_RESOURCES - com.opencloud.slee.resources.dbquery.QueryFailureReason
-
There were not enough connections or worker threads to handle the request.
- InsufficientResourcesException - Exception in com.opencloud.slee.resources.dbquery
-
Thrown by the Database Query resource adaptor when there are insufficient resources (worker threads, connections) to process a request.
- InsufficientResourcesException(String) - Constructor for exception com.opencloud.slee.resources.dbquery.InsufficientResourcesException
- InsufficientResourcesException(String, Throwable) - Constructor for exception com.opencloud.slee.resources.dbquery.InsufficientResourcesException
- isDataSourceAvailable() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryProvider
-
Check if any of the configured data sources are currently available.
M
- marshal() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseTransaction
-
Return a handle that can be later passed to
DatabaseQueryProvider.unmarshalTransaction(byte[])
.
N
- NO_DB_AVAILABLE - com.opencloud.slee.resources.dbquery.QueryFailureReason
-
No database is available.
- NoDataSourcesAvailableException - Exception in com.opencloud.slee.resources.dbquery
-
Thrown by the Database Query resource adaptor when none of the configured DataSources are available.
- NoDataSourcesAvailableException(String) - Constructor for exception com.opencloud.slee.resources.dbquery.NoDataSourcesAvailableException
- NoDataSourcesAvailableException(String, Throwable) - Constructor for exception com.opencloud.slee.resources.dbquery.NoDataSourcesAvailableException
P
- PREPARED - com.opencloud.slee.resources.dbquery.QueryInfo.StatementType
-
The setParameters method will supply a
QueryInfo.setParameters(java.sql.PreparedStatement)
.
Q
- Query - Class in com.opencloud.slee.resources.dbquery
-
This is a convenience abstract class for creating a QueryInfo with a QUERY ExecuteType
- Query() - Constructor for class com.opencloud.slee.resources.dbquery.Query
-
Creates a new empty Query with a TRY_ALL RetryBehaviour and a PREPARED StatementType.
- Query(String) - Constructor for class com.opencloud.slee.resources.dbquery.Query
-
Creates a new Query with the specified SQL String, a TRY_ALL RetryBehaviour and a PREPARED StatementType.
- Query(String, QueryInfo.RetryBehaviour) - Constructor for class com.opencloud.slee.resources.dbquery.Query
-
Creates a new Query with the specified SQL String, the specified RetryBehaviour and a PREPARED StatementType.
- Query(String, QueryInfo.RetryBehaviour, QueryInfo.StatementType) - Constructor for class com.opencloud.slee.resources.dbquery.Query
-
Creates a new Query with the specified SQL String, RetryBehaviour and StatementType.
- QUERY - com.opencloud.slee.resources.dbquery.QueryInfo.ExecuteType
-
Call Statement.executeQuery(). getResultSet() should be called on the DatabaseResultEvent.
- QueryFailureReason - Enum in com.opencloud.slee.resources.dbquery
-
Enumeration of failure reasons.
- QueryInfo - Interface in com.opencloud.slee.resources.dbquery
-
A callback interface implemented by SBBs to set the SQL statement and parameters for the query.
- QueryInfo.ExecuteType - Enum in com.opencloud.slee.resources.dbquery
-
The type of execute method to call on the prepared statement.
- QueryInfo.RetryBehaviour - Enum in com.opencloud.slee.resources.dbquery
-
Retry behaviour options in the case of multiple data sources.
- QueryInfo.StatementType - Enum in com.opencloud.slee.resources.dbquery
-
The type of Statement.
R
- RA_ENTITY_STOPPING - com.opencloud.slee.resources.dbquery.QueryFailureReason
-
RA entity stopping, not accepting new queries.
- rollback() - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryTransactionalActivity
-
Call rollback on the connection in use by the transaction associated with this result.
- rollback(long) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseTransaction
-
Call rollback on the connection.
- RUNTIME_EXCEPTION - com.opencloud.slee.resources.dbquery.QueryFailureReason
-
One or more data sources were tried and the final attempt resulted in a RuntimeException.
S
- sendQuery(QueryInfo) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryActivity
-
Send the database query asynchronously.
- sendQuery(QueryInfo) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryProvider
-
Send a request without creating an activity and make the result accessible via a Future-style object.
- sendQuery(QueryInfo) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryTransactionalActivity
-
Send a query asynchronously.
- sendQuery(QueryInfo, DatabaseTransaction) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryProvider
-
Send a request without creating an activity and make the result accessible via a Future-style object.
- setParameters(PreparedStatement) - Method in interface com.opencloud.slee.resources.dbquery.QueryInfo
-
Set the parameters on the PreparedStatement object created with the SQL returned by
QueryInfo.getSql()
. - setTransactionIsolation(int) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryTransactionalActivity
-
Set a transaction isolation level.
- setTransactionIsolation(int) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseTransaction
-
Set a transaction isolation level.
- SQL_EXCEPTION - com.opencloud.slee.resources.dbquery.QueryFailureReason
-
One or more data sources were tried and the final attempt resulted in a SQLException.
T
- TIMEOUT - com.opencloud.slee.resources.dbquery.QueryFailureReason
-
One or more data sources were tried and the final attempt resulted in a timeout.
- TRY_ALL - com.opencloud.slee.resources.dbquery.QueryInfo.RetryBehaviour
-
All configured data sources will be tried, whether the previous one failed or was marked as unavailable.
- TRY_FIRST_AVAILABLE - com.opencloud.slee.resources.dbquery.QueryInfo.RetryBehaviour
-
The first available data source will be tried, but if it fails the request will not be retried on subsequent data sources.
- TRY_FIRST_ONLY - com.opencloud.slee.resources.dbquery.QueryInfo.RetryBehaviour
-
Only the first data source will ever be tried.
U
- unmarshalTransaction(byte[]) - Method in interface com.opencloud.slee.resources.dbquery.DatabaseQueryProvider
-
Return a transaction instance for the given handle.
- UPDATE - com.opencloud.slee.resources.dbquery.QueryInfo.ExecuteType
-
Call Statement.executeUpdate(). getUpdateResult() should be called on the DatabaseResultEvent.
- UpdateQuery - Class in com.opencloud.slee.resources.dbquery
-
This is a convenience abstract class for creating a QueryInfo with an UPDATE ExecuteType
- UpdateQuery() - Constructor for class com.opencloud.slee.resources.dbquery.UpdateQuery
-
Creates a new empty UpdateQuery with a TRY_ALL RetryBehaviour and a PREPARED StatementType.
- UpdateQuery(String) - Constructor for class com.opencloud.slee.resources.dbquery.UpdateQuery
-
Creates a new UpdateQuery with the specified SQL String, a TRY_ALL RetryBehaviour and a PREPARED StatementType.
- UpdateQuery(String, QueryInfo.RetryBehaviour) - Constructor for class com.opencloud.slee.resources.dbquery.UpdateQuery
-
Creates a new UpdateQuery with the specified SQL String, the specified RetryBehaviour and a PREPARED StatementType.
- UpdateQuery(String, QueryInfo.RetryBehaviour, QueryInfo.StatementType) - Constructor for class com.opencloud.slee.resources.dbquery.UpdateQuery
-
Creates a new UpdateQuery with the specified SQL String, RetryBehaviour and StatementType.
V
- valueOf(String) - Static method in enum com.opencloud.slee.resources.dbquery.QueryFailureReason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.opencloud.slee.resources.dbquery.QueryInfo.ExecuteType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.opencloud.slee.resources.dbquery.QueryInfo.RetryBehaviour
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.opencloud.slee.resources.dbquery.QueryInfo.StatementType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.opencloud.slee.resources.dbquery.QueryFailureReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.opencloud.slee.resources.dbquery.QueryInfo.ExecuteType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.opencloud.slee.resources.dbquery.QueryInfo.RetryBehaviour
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.opencloud.slee.resources.dbquery.QueryInfo.StatementType
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages