com.zys.mybatis.crud.Config Maven / Gradle / Ivy
package com.zys.mybatis.crud;
import com.zys.mybatis.converter.DefaultValue;
import com.zys.mybatis.converter.impl.LocalDateDVImpl;
import com.zys.mybatis.converter.impl.LocalDateTimeDVImpl;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author zys
* @version 1.0
* @date 2021/3/26 10:08
*/
public class Config {
public static final Map>,DefaultValue>> valueMap = new ConcurrentHashMap<>();
static {
valueMap.put(LocalDateDVImpl.class,new LocalDateDVImpl());
valueMap.put(LocalDateTimeDVImpl.class,new LocalDateTimeDVImpl());
}
public static T getDefaultValue(Class aClass){
return (T)valueMap.get(aClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy