All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.risedragon.mysql.Transaction Maven / Gradle / Ivy

The newest version!
package com.github.risedragon.mysql;

import java.sql.SQLException;
import java.sql.Savepoint;

/**
 * The connection transaction interface
 * 
 * @author hezhaowu
 * @since 0.9.1
 */
public interface Transaction extends MysqlClient {

	void commit() throws SQLException;

	void rollback() throws SQLException;

	void rollback(Savepoint savepoint) throws SQLException;

	Savepoint setSavepoint() throws SQLException;

	Savepoint setSavepoint(String name) throws SQLException;

	void releaseSavepoint(Savepoint savepoint) throws SQLException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy