Java 类org.jooq.TransactionContext 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SpringTransactionProvider.java   
@Override
public void begin(TransactionContext context) {
    TransactionDefinition definition = new DefaultTransactionDefinition(
            TransactionDefinition.PROPAGATION_NESTED);
    TransactionStatus status = this.transactionManager.getTransaction(definition);
    context.transaction(new SpringTransaction(status));
}
项目:spring-boot-concourse    文件:SpringTransactionProvider.java   
@Override
public void begin(TransactionContext context) {
    TransactionDefinition definition = new DefaultTransactionDefinition(
            TransactionDefinition.PROPAGATION_NESTED);
    TransactionStatus status = this.transactionManager.getTransaction(definition);
    context.transaction(new SpringTransaction(status));
}
项目:contestparser    文件:SpringTransactionProvider.java   
@Override
public void begin(TransactionContext context) {
    TransactionDefinition definition = new DefaultTransactionDefinition(
            TransactionDefinition.PROPAGATION_NESTED);
    TransactionStatus status = this.transactionManager.getTransaction(definition);
    context.transaction(new SpringTransaction(status));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SpringTransactionProvider.java   
@Override
public void commit(TransactionContext ctx) {
    this.transactionManager.commit(getTransactionStatus(ctx));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SpringTransactionProvider.java   
@Override
public void rollback(TransactionContext ctx) {
    this.transactionManager.rollback(getTransactionStatus(ctx));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SpringTransactionProvider.java   
private TransactionStatus getTransactionStatus(TransactionContext ctx) {
    SpringTransaction transaction = (SpringTransaction) ctx.transaction();
    return transaction.getTxStatus();
}
项目:spring-boot-concourse    文件:SpringTransactionProvider.java   
@Override
public void commit(TransactionContext ctx) {
    this.transactionManager.commit(getTransactionStatus(ctx));
}
项目:spring-boot-concourse    文件:SpringTransactionProvider.java   
@Override
public void rollback(TransactionContext ctx) {
    this.transactionManager.rollback(getTransactionStatus(ctx));
}
项目:spring-boot-concourse    文件:SpringTransactionProvider.java   
private TransactionStatus getTransactionStatus(TransactionContext ctx) {
    SpringTransaction transaction = (SpringTransaction) ctx.transaction();
    return transaction.getTxStatus();
}
项目:contestparser    文件:SpringTransactionProvider.java   
@Override
public void commit(TransactionContext ctx) {
    this.transactionManager.commit(getTransactionStatus(ctx));
}
项目:contestparser    文件:SpringTransactionProvider.java   
@Override
public void rollback(TransactionContext ctx) {
    this.transactionManager.rollback(getTransactionStatus(ctx));
}
项目:contestparser    文件:SpringTransactionProvider.java   
private TransactionStatus getTransactionStatus(TransactionContext ctx) {
    SpringTransaction transaction = (SpringTransaction) ctx.transaction();
    return transaction.getTxStatus();
}