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

org.sagacity.sqltoy.callback.LockSqlHandler Maven / Gradle / Ivy

There is a newer version: 5.6.31.jre8
Show newest version
/**
 * 
 */
package org.sagacity.sqltoy.callback;

import org.sagacity.sqltoy.model.LockMode;

/**
 * @project sagacity-sqltoy
 * @description 根据数据库类型获得锁表sql
 * @author zhongxuchen
 * @version v1.0, Date:2021-3-17
 * @modify 2021-3-17,修改说明
 */
@FunctionalInterface
public interface LockSqlHandler {
	/**
	 * @TODO 提供不同数据库类型sql加锁语句处理
	 * @param sql
	 * @param dbType   数据库类型
	 * @param lockMode 锁类型
	 * @return
	 */
	public String getLockSql(String sql, Integer dbType, LockMode lockMode);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy