public abstract class DatabaseWorkHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DatabaseWorkHandler.ExecuteWork<T> |
static interface |
DatabaseWorkHandler.QueryWork<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
executeInTransaction(DataSourceDescription dataSourceDesc,
DatabaseWorkHandler.ExecuteWork<T> realWork) |
static <T> T |
executeQueryInTransaction(DataSourceDescription dataSourceDesc,
DatabaseWorkHandler.QueryWork<T> realWork) |
public static <T> T executeInTransaction(DataSourceDescription dataSourceDesc, DatabaseWorkHandler.ExecuteWork<T> realWork) throws SQLException
SQLExceptionpublic static <T> T executeQueryInTransaction(DataSourceDescription dataSourceDesc, DatabaseWorkHandler.QueryWork<T> realWork) throws SQLException, IOException
SQLExceptionIOExceptionCopyright © 2024 江苏南大先腾信息产业股份有限公司. All rights reserved.