| Package | Description |
|---|---|
| org.nutz.dao.impl.sql.run | |
| org.nutz.trans |
事务封装,Dao包的延伸
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
NutDaoRunner._runWithTransaction(Transaction t,
DataSource dataSource,
ConnCallback callback) |
protected DataSource |
NutDaoRunner.selectDataSource(Transaction t,
DataSource master,
ConnCallback callback) |
| Modifier and Type | Class and Description |
|---|---|
class |
NutTransaction
默认的事务实现上下文类,用户通常不会直接使用到这个类.
|
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
Trans.get() |
static Transaction |
Trans.New() |
| Modifier and Type | Method and Description |
|---|---|
static void |
Trans.set(Transaction t) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Trans.setup(Class<? extends Transaction> classOfTransaction)
这个函数允许你扩展默认的 Nutz 事务实现方式
|
Copyright © 2017. All rights reserved.