Class ExpressionSupport


  • public class ExpressionSupport
    extends java.lang.Object
    Collection of utility functions for building predicate expressions. Consumers should static import the functions they require for cleaner syntax.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ExpNode acos​(ExpNode arg)
      Factory function to create a ACosExpNode with the given value
      static Alias alias​(java.lang.String aliasStr)
      Factory function for creating an Alias from a string
      static BindMarkerNode bind​(java.lang.Double value)
      Factory function to create a BindMarkerNode with the given value
      static BindMarkerNode bind​(java.lang.Integer value)
      Factory function to create a BindMarkerNode with the given value
      static BindMarkerNode bind​(java.lang.Long value)
      Factory function to create a BindMarkerNode with the given value
      static BindMarkerNode bind​(java.lang.String value)
      Factory function for creating a BindMarkerNode instance
      static BindMarkerNode bind​(java.math.BigDecimal value)
      Factory function to create a BindMarkerNode with the given value
      static BindMarkerNode bind​(java.time.Instant value)
      Factory function to create a BindMarkerNode with the given value
      static ColumnRef col​(java.lang.String ref)
      Factory function for creating a ColumnRef instance from a string
      static ColumnRef col​(java.lang.String alias, java.lang.String name)  
      static ExpNode cos​(ExpNode arg)
      Factory function to create a CosExpNode with the given value
      static ExpNode isDeleted​(java.lang.String alias)
      Factory function to create the expression {alias}.IS_DELETED = 'N'
      static WhereFragment on​(java.lang.String col)
      Creates a WhereFragment starting with a simple column reference for use in a join clause
      static WhereFragment on​(java.lang.String tableAlias, java.lang.String col)
      Creates a WhereFragment starting with a qualified column reference for use in a join clause
      static ExpNode sin​(ExpNode arg)
      Factory function to create a SinExpNode with the given value
      static LiteralString string​(java.lang.String value)
      Simple container for a string value to make overloading of methods more natural
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • on

        public static WhereFragment on​(java.lang.String col)
        Creates a WhereFragment starting with a simple column reference for use in a join clause
        Parameters:
        col -
        Returns:
      • on

        public static WhereFragment on​(java.lang.String tableAlias,
                                       java.lang.String col)
        Creates a WhereFragment starting with a qualified column reference for use in a join clause
        Parameters:
        tableAlias -
        col -
        Returns:
      • alias

        public static Alias alias​(java.lang.String aliasStr)
        Factory function for creating an Alias from a string
        Parameters:
        aliasStr -
        Returns:
      • col

        public static ColumnRef col​(java.lang.String ref)
        Factory function for creating a ColumnRef instance from a string
        Parameters:
        ref -
        Returns:
      • col

        public static ColumnRef col​(java.lang.String alias,
                                    java.lang.String name)
      • string

        public static LiteralString string​(java.lang.String value)
        Simple container for a string value to make overloading of methods more natural
        Parameters:
        value -
        Returns:
      • bind

        public static BindMarkerNode bind​(java.lang.String value)
        Factory function for creating a BindMarkerNode instance
        Returns:
      • bind

        public static BindMarkerNode bind​(java.lang.Long value)
        Factory function to create a BindMarkerNode with the given value
        Parameters:
        value -
        Returns:
      • bind

        public static BindMarkerNode bind​(java.lang.Integer value)
        Factory function to create a BindMarkerNode with the given value
        Parameters:
        value -
        Returns:
      • bind

        public static BindMarkerNode bind​(java.lang.Double value)
        Factory function to create a BindMarkerNode with the given value
        Parameters:
        value -
        Returns:
      • bind

        public static BindMarkerNode bind​(java.time.Instant value)
        Factory function to create a BindMarkerNode with the given value
        Parameters:
        value -
        Returns:
      • bind

        public static BindMarkerNode bind​(java.math.BigDecimal value)
        Factory function to create a BindMarkerNode with the given value
        Parameters:
        value -
        Returns:
      • sin

        public static ExpNode sin​(ExpNode arg)
        Factory function to create a SinExpNode with the given value
        Parameters:
        value -
        Returns:
      • cos

        public static ExpNode cos​(ExpNode arg)
        Factory function to create a CosExpNode with the given value
        Parameters:
        value -
        Returns:
      • acos

        public static ExpNode acos​(ExpNode arg)
        Factory function to create a ACosExpNode with the given value
        Parameters:
        value -
        Returns:
      • isDeleted

        public static ExpNode isDeleted​(java.lang.String alias)
        Factory function to create the expression {alias}.IS_DELETED = 'N'
        Parameters:
        value -
        Returns: