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

com.mg.common.metadata.dao.MirrorPropertyCustomDao Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.mg.common.metadata.dao;

import com.mg.framework.entity.metadata.MObjectEntity;
import com.mg.framework.entity.metadata.MirrorPropertyEntity;
import com.mg.framework.entity.metadata.MControllerTypeEnum;
import com.mg.framework.entity.metadata.MTypeEnum;

import java.util.List;

/**
 * Created by liukefu on 2015/8/20.
 */

public interface MirrorPropertyCustomDao {

    /**
     * 查询元数据对象下面,所以的镜像
     * 包含关联属性,结构化属性
     * @param rootMObject
     * @return
     */
    public List findByRootMObject(MObjectEntity rootMObject);
    /**
     * 查询元数据对象下面,所以的镜像
     * 包含关联属性,结构化属性
     * @param rootMObject
     * @return
     */
    public List findByRootMObject(MObjectEntity rootMObject, MObjectEntity belongMObject);
    /**
     * 查询元数据对象下面,所以的镜像
     * @param rootMObject
     * @param deep
     * @return
     */
    public List findByRootMObject(MObjectEntity rootMObject, Integer deep);
    /**
     * 根据元数据对象和元数据路径,查询元数据列表
     * @param rootMObject
     * @param path
     * @return
     */
    public MirrorPropertyEntity findMPropertyByRootMObjectAndPath(MObjectEntity rootMObject, String path);
    /**
     * 根据主对象,查询默认的检索条件
     * 集合是按优先级排序的
     * @param rootMObject
     * @return
     */
    public List findSearchConditionByRootMObject(MObjectEntity rootMObject);

    public List findByNameAndIsEnable(String name, boolean isEnable);

    public List findByBelongMObjectAndIsEnable(MObjectEntity belongMObject, boolean isEnable);

    public List findByBelongMObjectAndIsPrimaryKeyAndIsEnable(MObjectEntity belongMObject, boolean isPrimaryKey, boolean isEnable);

    public List findByTypeEnumAndIsEnable(MTypeEnum typeEnum, boolean isEnable);

    public List findByBelongMObjectAndNameAndIsEnable(MObjectEntity rootMObject, MObjectEntity belongMObject,
                                                                            String name, boolean isEnable);
    public List findByBelongMObjectAndNameAndIsEnable(MObjectEntity rootMObject, MObjectEntity belongMObject,
                                                                            String[] names);
    public List findAllByBelongMObjectAndNameAndIsEnable(MObjectEntity belongMObject, String name, boolean isEnable);
    public List findByBelongMObjectAndNameAndIsEnable(MObjectEntity belongMObjectAndName, String name, boolean isEnable);

    public List findByBelongMObjectAndFieldNameAndIsEnable(MObjectEntity belongMObject, String fieldName, boolean isEnable);

    public List findByBelongMObjectAndFieldNameAndIsEnable(MObjectEntity rootMObject, MObjectEntity belongMObject, String fieldName, boolean isEnable);

    public List findByBelongMObjectAndIsEnableAndIsNullable(MObjectEntity belongMObject, boolean isEnable, boolean isNullable);

    public List findByBelongMObjectAndControllerTypeAndIsEnable(MObjectEntity belongMObject, MControllerTypeEnum controllerTypeEnum, boolean isEnable);

    public List findByParentProperty(MirrorPropertyEntity parentProperty);

    public MirrorPropertyEntity findOne(String mPropertyId);

    /**
     * 根据id列表,查询元数据列表
     * @param ids
     * @return
     */
    public List findByIds(List ids);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy