All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.firebirdsql.pool.PingablePooledConnection Maven / Gradle / Ivy

There is a newer version: 6.0.0-beta-1
Show newest version
package org.firebirdsql.pool;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.HashSet;

import javax.sql.StatementEventListener;


public class PingablePooledConnection extends AbstractPingablePooledConnection {

    private HashSet statementEventListeners = new HashSet();

    public PingablePooledConnection(Connection connection,
            boolean statementPooling, int maxStatements, boolean keepStatements)
            throws SQLException {
        super(connection, statementPooling, maxStatements, keepStatements);
        // TODO Auto-generated constructor stub
    }

    public PingablePooledConnection(Connection connection,
            String pingStatement, int pingInterval, boolean statementPooling,
            int maxStatements, boolean keepStatements) throws SQLException {
        super(connection, pingStatement, pingInterval, statementPooling, maxStatements,
                keepStatements);
        // TODO Auto-generated constructor stub
    }

    public void addStatementEventListener(StatementEventListener listener) {
        statementEventListeners.add(listener);
    }

    public void removeStatementEventListener(StatementEventListener listener) {
        statementEventListeners.remove(listener);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy