cn.jiangzeyin.database.run.read.IsExists Maven / Gradle / Ivy
package cn.jiangzeyin.database.run.read;
import cn.jiangzeyin.StringUtil;
import cn.jiangzeyin.database.DbWriteService;
import cn.jiangzeyin.database.base.ReadBase;
import cn.jiangzeyin.database.config.DatabaseContextHolder;
import cn.jiangzeyin.database.util.SqlUtil;
import cn.jiangzeyin.system.DbLog;
import cn.jiangzeyin.util.KeyLock;
import com.alibaba.druid.util.JdbcUtils;
import com.alibaba.druid.util.StringUtils;
import javax.sql.DataSource;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
/**
* 判断是否存在
*
* @author jiangzeyin
*/
@SuppressWarnings("unchecked")
public class IsExists extends ReadBase {
private int limit;
/**
* 表锁
*/
private final static KeyLock LOCK = new KeyLock<>();
/**
* 是否使用锁
*/
private boolean useLock = false;
public boolean isUseLock() {
return useLock;
}
public void setUseLock(boolean useLock) {
this.useLock = useLock;
}
public int getLimit() {
return limit;
}
public void setLimit(int limit) {
this.limit = limit;
}
@Override
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy