Interface DatabaseResultEvent
-
public interface DatabaseResultEvent
The result event. Provides access to the DataSource name used and either the result set or the update result (or neither, if the result is for a transaction commit/rollback). Also provides access to the original QueryInfo object and the Statement.- Author:
- OpenCloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDataSourceNameUsed()
Which of the configured DataSource names was used for the query.QueryInfo
getQueryInfo()
Return a reference to theQueryInfo
object that was used for the request that generated this result.boolean
getResult()
Return the value returned if this result is for an execute.ResultSet
getResultSet()
Return the JDBC ResultSet.Statement
getStatement()
Return the Statementint
getUpdateResult()
Return the value returned if this result is for an update.
-
-
-
Method Detail
-
getDataSourceNameUsed
String getDataSourceNameUsed()
Which of the configured DataSource names was used for the query.- Returns:
- the used DataSource name
-
getQueryInfo
QueryInfo getQueryInfo()
Return a reference to theQueryInfo
object that was used for the request that generated this result.- Returns:
- the original QueryInfo object
- Since:
- 1.2
-
getResultSet
ResultSet getResultSet() throws IllegalArgumentException
Return the JDBC ResultSet.- Returns:
- the result set
- Throws:
IllegalArgumentException
- if this result was not for a query
-
getStatement
Statement getStatement() throws IllegalArgumentException
Return the Statement- Returns:
- the statement
- Throws:
IllegalArgumentException
- Since:
- 1.2
-
getUpdateResult
int getUpdateResult() throws IllegalArgumentException
Return the value returned if this result is for an update.- Returns:
- the update result
- Throws:
IllegalArgumentException
- if this result was not for an update- Since:
- 1.1
-
getResult
boolean getResult() throws IllegalArgumentException
Return the value returned if this result is for an execute.- Returns:
- the execute result
- Throws:
IllegalArgumentException
- if this result was not for an update- Since:
- 1.2
-
-