Class ExpressionUtil


  • public class ExpressionUtil
    extends java.lang.Object
    表达式辅助类
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getParameterPlaceholder​(java.lang.Object value)
      获取参数占位符
      static SQLParameterBind toSQL​(Expression expression)
      表达式转换成SQL,并保留参数绑定信息
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExpressionUtil

        public ExpressionUtil()
    • Method Detail

      • getParameterPlaceholder

        public static java.lang.String getParameterPlaceholder​(java.lang.Object value)
        获取参数占位符
        Parameters:
        value - 参数值
        Returns:
        占位符
      • toSQL

        public static SQLParameterBind toSQL​(Expression expression)
        表达式转换成SQL,并保留参数绑定信息
        Parameters:
        expression - 表达式树
        Returns:
        参数bind信息