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

com.silentgo.orm.kit.DaoMethodKit Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
package com.silentgo.orm.kit;

import com.silentgo.orm.base.DaoMethod;
import com.silentgo.utils.CollectionKit;

import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Project : parent
 * Package : com.silentgo.core.db
 *
 * @author teddyzhu
 *         

* Created by teddyzhu on 2016/10/6. */ public class DaoMethodKit { private static final Map cachedResult = new ConcurrentHashMap<>(); public static void addDaoMethod(Method method, DaoMethod daoMethod) { CollectionKit.MapAdd(cachedResult, method, daoMethod); } public static DaoMethod getDaoMethod(Method method) { return cachedResult.get(method); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy