/*!
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

package com.rebuild.core.configuration.general;

import cn.devezhao.persist4j.PersistManagerFactory;
import cn.devezhao.persist4j.engine.ID;
import com.rebuild.core.configuration.BaseConfigurationService;
import com.rebuild.core.metadata.EntityHelper;
import org.springframework.stereotype.Service;

/**
 * 高级查询
 *
 * @author devezhao-mbp
 * @since 2019/04/30
 */
@Service
public class AdvFilterService extends BaseConfigurationService {

    protected AdvFilterService(PersistManagerFactory aPMFactory) {
        super(aPMFactory);
    }

    @Override
    public int getEntityCode() {
        return EntityHelper.FilterConfig;
    }

    @Override
    protected void cleanCache(ID cfgid) {
        AdvFilterManager.instance.clean(cfgid);
    }
}
