org.fingertip.simpledao.common.DaoConfig Maven / Gradle / Ivy
The newest version!
package org.fingertip.simpledao.common;
import javax.sql.DataSource;
public class DaoConfig {
/**
* 是否忽略影响行数
*/
private boolean ignoreUpdateCount;
/**
* 数据源
*/
private DataSource dataSource;
/**
* sql输出
*/
private boolean sqlOut;
public DaoConfig() {
// TODO Auto-generated constructor stub
}
public DaoConfig(boolean ignoreUpdateCount, DataSource dataSource, boolean sqlOut) {
super();
this.ignoreUpdateCount = ignoreUpdateCount;
this.dataSource = dataSource;
this.sqlOut = sqlOut;
}
public boolean isIgnoreUpdateCount() {
return ignoreUpdateCount;
}
public void setIgnoreUpdateCount(boolean ignoreUpdateCount) {
this.ignoreUpdateCount = ignoreUpdateCount;
}
public DataSource getDataSource() {
return dataSource;
}
public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
}
public boolean isSqlOut() {
return sqlOut;
}
public void setSqlOut(boolean sqlOut) {
this.sqlOut = sqlOut;
}
}