类 OGNL


  • public abstract class OGNL
    extends Object
    OGNL静态方法
    作者:
    liuzh
    • 构造器详细资料

      • OGNL

        public OGNL()
    • 方法详细资料

      • checkExampleEntityClass

        public static boolean checkExampleEntityClass​(Object parameter,
                                                      String entityFullName)
        校验通用 Example 的 entityClass 和当前方法是否匹配
        参数:
        parameter -
        entityFullName -
        返回:
      • notAllNullParameterCheck

        public static boolean notAllNullParameterCheck​(Object parameter,
                                                       String fields)
        检查 paremeter 对象中指定的 fields 是否全是 null,如果是则抛出异常
        参数:
        parameter -
        fields -
        返回:
      • notEmptyCollectionCheck

        public static boolean notEmptyCollectionCheck​(Object parameter,
                                                      String error)
        校验集合类型参数不能为空
        参数:
        parameter -
        error -
        返回:
      • exampleHasAtLeastOneCriteriaCheck

        public static boolean exampleHasAtLeastOneCriteriaCheck​(Object parameter)
        检查 paremeter 对象中指定的 fields 是否全是 null,如果是则抛出异常
        参数:
        parameter -
        返回:
      • hasSelectColumns

        public static boolean hasSelectColumns​(Object parameter)
        是否包含自定义查询列
        参数:
        parameter -
        返回:
      • hasCountColumn

        public static boolean hasCountColumn​(Object parameter)
        是否包含自定义 Count 列
        参数:
        parameter -
        返回:
      • hasForUpdate

        public static boolean hasForUpdate​(Object parameter)
        是否包含 forUpdate
        参数:
        parameter -
        返回:
      • hasNoSelectColumns

        public static boolean hasNoSelectColumns​(Object parameter)
        不包含自定义查询列
        参数:
        parameter -
        返回:
      • isDynamicParameter

        public static boolean isDynamicParameter​(Object parameter)
        判断参数是否支持动态表名
        参数:
        parameter -
        返回:
        true支持,false不支持
      • isNotDynamicParameter

        public static boolean isNotDynamicParameter​(Object parameter)
        判断参数是否b支持动态表名
        参数:
        parameter -
        返回:
        true不支持,false支持
      • andOr

        public static String andOr​(Object parameter)
        判断条件是 and 还是 or
        参数:
        parameter -
        返回:
      • andNotLogicDelete

        public static String andNotLogicDelete​(Object parameter)
        拼接逻辑删除字段的未删除查询条件
        参数:
        parameter -
        返回: