public class SQLAccess extends Object implements AutoCloseable, HasSQLConnection
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
getConnection() |
static SQLAccess |
of(Connection conn) |
static SQLAccess |
of(Connection conn,
boolean readOnly) |
static SQLAccess |
of(DataSource ds) |
static SQLAccess |
of(DataSource ds,
boolean readOnly) |
public static SQLAccess of(DataSource ds)
public static SQLAccess of(DataSource ds, boolean readOnly)
public static SQLAccess of(Connection conn)
public static SQLAccess of(Connection conn, boolean readOnly)
public Connection getConnection()
getConnection in interface HasSQLConnectionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2018. All rights reserved.