com.senzing.sql.Connector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of senzing-commons Show documentation
Show all versions of senzing-commons Show documentation
Utility classes and functions common to multiple Senzing projects.
The newest version!
package com.senzing.sql;
import java.sql.Connection;
import java.sql.SQLException;
/**
* Interface for obtaining a new JDBC {@link Connection} to a database.
* This is used by {@link ConnectionPool} to grow the {@link ConnectionPool}
* size, but can be used for other purposes.
*/
public interface Connector {
/**
* Opens a new JDBC {@link Connection} to a database, hiding the details
* of how the {@link Connection} is established. When the caller is done
* using the {@link Connection}, {@link Connection#close()} should be called.
*
* @return The {@link Connection} that was opened.
*
* @throws SQLException If a failure occurs.
*/
Connection openConnection() throws SQLException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy