cn.vonce.sql.config.SqlBeanConfig Maven / Gradle / Ivy
package cn.vonce.sql.config;
import cn.vonce.sql.enumerate.DbType;
import cn.vonce.sql.processor.DefaultUniqueIdProcessor;
import cn.vonce.sql.processor.UniqueIdProcessor;
import com.sun.org.apache.xpath.internal.operations.Bool;
import java.io.Serializable;
/**
* SqlBean配置
*
* @author Jovi
* @version 1.0
* @email [email protected]
* @date 2018年6月12日下午2:48:12
*/
public class SqlBeanConfig implements Serializable {
public SqlBeanConfig() {
}
public SqlBeanConfig(DbType dbType) {
this.dbType = dbType;
}
private DbType dbType;
private Boolean toUpperCase;
private UniqueIdProcessor uniqueIdProcessor;
private Boolean autoCreate;
public DbType getDbType() {
return dbType;
}
public void setDbType(DbType dbType) {
if (this.dbType == null) {
this.dbType = dbType;
}
}
public Boolean getToUpperCase() {
return toUpperCase;
}
public void setToUpperCase(Boolean toUpperCase) {
if (this.toUpperCase == null) {
this.toUpperCase = toUpperCase;
}
}
public UniqueIdProcessor getUniqueIdProcessor() {
if (uniqueIdProcessor == null) {
uniqueIdProcessor = new DefaultUniqueIdProcessor();
}
return uniqueIdProcessor;
}
public void setUniqueIdProcessor(UniqueIdProcessor uniqueIdProcessor) {
if (this.uniqueIdProcessor == null) {
this.uniqueIdProcessor = uniqueIdProcessor;
}
}
public boolean getAutoCreate() {
if (autoCreate == null) {
autoCreate = true;
}
return autoCreate;
}
public void setAutoCreate(boolean autoCreate) {
if (this.autoCreate == null) {
this.autoCreate = autoCreate;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy