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

com.jeesuite.mybatis.plugin.cache.provider.AbstractCacheProvider Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/**
 * 
 */
package com.jeesuite.mybatis.plugin.cache.provider;

import java.math.BigDecimal;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jeesuite.mybatis.plugin.cache.CacheProvider;

/**
 * @description 
* @author vakin * @date 2017年1月13日 */ public abstract class AbstractCacheProvider implements CacheProvider { protected static final Logger logger = LoggerFactory.getLogger(AbstractCacheProvider.class); protected boolean isStoreAsString(Object o) { Class clazz = o.getClass(); return (clazz.equals(String.class) || clazz.equals(Integer.class) || clazz.equals(Byte.class) || clazz.equals(Long.class) || clazz.equals(Double.class) || clazz.equals(Float.class) || clazz.equals(Character.class) || clazz.equals(Short.class) || clazz.equals(BigDecimal.class) || clazz.equals(Boolean.class) || clazz.isPrimitive()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy