
net.cassite.daf4j.Tx Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of daf4j-api Show documentation
Show all versions of daf4j-api Show documentation
A library provides facade api for data accessing.
The newest version!
package net.cassite.daf4j;
import net.cassite.daf4j.DataAccess;
/**
* 事务处理类
*/
public class Tx {
private final DataAccess dataAccess;
Tx(DataAccess dataAccess){
this.dataAccess=dataAccess;
}
/**
* 提交事务
*/
public void commit(){
dataAccess.txCommit();
}
/**
* 回滚事务
*/
public void rollback(){
dataAccess.txRollback();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy