public class Database extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Database.Executable<T> |
| Modifier and Type | Method and Description |
|---|---|
static Database |
use(DataSource dataSource) |
<T> T |
withConnection(boolean autocommit,
Database.Executable<T> block) |
<T> T |
withConnection(Database.Executable<T> block) |
<T> T |
withTransaction(Database.Executable<T> block) |
public <T> T withConnection(Database.Executable<T> block)
public <T> T withConnection(boolean autocommit,
Database.Executable<T> block)
public <T> T withTransaction(Database.Executable<T> block)
public static Database use(DataSource dataSource)
Copyright © 2018. All rights reserved.