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

com.silentgo.core.db.DaoMethodKit Maven / Gradle / Ivy

There is a newer version: 0.0.49
Show newest version
package com.silentgo.core.db;

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