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

tech.ydb.jooq.CloseableYdbDSLContext Maven / Gradle / Ivy

The newest version!
package tech.ydb.jooq;

import org.jooq.exception.DataAccessException;
import org.jooq.impl.DSL;

import java.sql.Connection;
import java.util.Properties;

/**
 * A resourceful {@link YdbDSLContext} that should be closed in a
 * try-with-resources statement.
 */
public interface CloseableYdbDSLContext extends YdbDSLContext, AutoCloseable {
    /**
     * Close the underlying resources, if any resources have been allocated when
     * constructing this YdbDslContext.
     * 

* Some {@link YdbDSLContext} constructors, such as {@link DSL#using(String)}, * {@link DSL#using(String, Properties)}, or * {@link DSL#using(String, String, String)} allocate a {@link Connection} * resource, which is inaccessible to the outside of the {@link YdbDSLContext} * implementation. Proper resource management must thus be done via this * {@link #close()} method. * * @throws DataAccessException When something went wrong closing the * underlying resources. */ @Override void close() throws DataAccessException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy