Package org.r10r.sqlify
Class Database
- java.lang.Object
-
- org.r10r.sqlify.Database
-
public class Database extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDatabase.Executable<T>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Databaseuse(DataSource dataSource)<T> TwithConnection(boolean autocommit, Database.Executable<T> block)<T> TwithConnection(Database.Executable<T> block)<T> TwithTransaction(Database.Executable<T> block)
-
-
-
Method Detail
-
use
public static Database use(DataSource dataSource)
-
withConnection
public <T> T withConnection(Database.Executable<T> block)
-
withConnection
public <T> T withConnection(boolean autocommit, Database.Executable<T> block)
-
withTransaction
public <T> T withTransaction(Database.Executable<T> block)
-
-