public class

ChainedSQLInterceptor

extends Object
implements SQLConnectionInterceptor
java.lang.Object
   ↳ com.atlassian.jira.ofbiz.ChainedSQLInterceptor

Class Overview

A org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor that can chain together multiple SQLInterceptors.

It will call them in an enveloping order, and any runtime exceptions thrown by one of the chained interceptors will be caught and logged but otherwise ignored.

For example, if we add 'one' and 'two', then it will call:

 one.beforeExecution(...)
 two.beforeExecution(...)

 two.afterSuccessfulExecution(...)
 one.afterSuccessfulExecution(...)
 

Summary

Nested Classes
class ChainedSQLInterceptor.Builder  
Public Methods
void afterSuccessfulExecution(String sqlString, List<String> parameterValues, Statement statement, ResultSet resultSet, int rowsUpdated)
void beforeExecution(String sqlString, List<String> parameterValues, Statement statement)
void onConnectionReplaced(Connection connection, ConnectionPoolState connectionPoolState)
void onConnectionTaken(Connection connection, ConnectionPoolState connectionPoolState)
void onException(String sqlString, List<String> parameterValues, Statement statement, SQLException sqlException)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor
From interface org.ofbiz.core.entity.jdbc.interceptors.connection.SQLConnectionInterceptor

Public Methods

public void afterSuccessfulExecution (String sqlString, List<String> parameterValues, Statement statement, ResultSet resultSet, int rowsUpdated)

public void beforeExecution (String sqlString, List<String> parameterValues, Statement statement)

public void onConnectionReplaced (Connection connection, ConnectionPoolState connectionPoolState)

public void onConnectionTaken (Connection connection, ConnectionPoolState connectionPoolState)

public void onException (String sqlString, List<String> parameterValues, Statement statement, SQLException sqlException)