package org.mimosaframework.orm.transaction;

import org.mimosaframework.orm.exception.TransactionException;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * 事务的传播行为
 */
public interface Transaction {
    List<Connection> getConnections() throws SQLException;

    void commit() throws TransactionException;

    void rollback() throws TransactionException;
}
