org.fluentjdbc.DbContextConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-jdbc Show documentation
Show all versions of fluent-jdbc Show documentation
A Java library used to execute JDBC statements and build SQL
package org.fluentjdbc;
/**
* Specified a context where a {@link java.sql.Connection} is associated with the current thread
* in order to perform operations on {@link DbContextTable}. Example:
*
*
* try (DbContextConnection ignored = context.startConnection(dataSource)) {
* return table.where("id", id).orderBy("data").listLongs("data");
* }
*
*/
public interface DbContextConnection extends AutoCloseable {
@Override
void close();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy