Search in sources :

Example 6 with TranslateConfigModel

use of org.sagacity.sqltoy.translate.model.TranslateConfigModel in project sagacity-sqltoy by chenrenfei.

the class TranslateManager method put.

/**
 * @todo 更新单个缓存的整体数据
 * @param cacheName
 * @param cacheType  (默认为null,针对诸如数据字典类型的,对应字典类型)
 * @param cacheValue
 */
public void put(String cacheName, String cacheType, HashMap<String, Object[]> cacheValue) {
    if (translateCacheManager != null) {
        TranslateConfigModel cacheModel = translateMap.get(cacheName);
        if (cacheModel == null) {
            logger.error("cacheName:{} 没有配置,请检查sqltoy-translate.xml文件!", cacheName);
            return;
        }
        translateCacheManager.put(cacheModel, cacheModel.getCache(), cacheType, cacheValue);
    }
}
Also used : TranslateConfigModel(org.sagacity.sqltoy.translate.model.TranslateConfigModel)

Aggregations

TranslateConfigModel (org.sagacity.sqltoy.translate.model.TranslateConfigModel)6 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 XMLCallbackHandler (org.sagacity.sqltoy.callback.XMLCallbackHandler)2 SqlExecuteTrace (org.sagacity.sqltoy.config.model.SqlExecuteTrace)2 SqlToyConfig (org.sagacity.sqltoy.config.model.SqlToyConfig)2 CheckerConfigModel (org.sagacity.sqltoy.translate.model.CheckerConfigModel)2 DefaultConfig (org.sagacity.sqltoy.translate.model.DefaultConfig)2 TimeSection (org.sagacity.sqltoy.translate.model.TimeSection)2 Document (org.dom4j.Document)1 Element (org.dom4j.Element)1 SqlTranslate (org.sagacity.sqltoy.config.model.SqlTranslate)1 Translate (org.sagacity.sqltoy.config.model.Translate)1 IgnoreKeyCaseMap (org.sagacity.sqltoy.model.IgnoreKeyCaseMap)1 TranslateExtend (org.sagacity.sqltoy.model.inner.TranslateExtend)1 Document (org.w3c.dom.Document)1 Element (org.w3c.dom.Element)1 NodeList (org.w3c.dom.NodeList)1