Class ContentQueryExpressions


  • public class ContentQueryExpressions
    extends Object
    Expression factory for creating Expression objects, for use with static imports.
    • Constructor Detail

      • ContentQueryExpressions

        public ContentQueryExpressions()
    • Method Detail

      • contentExpression

        public static ContentExpression contentExpression()
        Creates a new ContentExpression enabling predicates (searching) on any indexed content.
        Returns:
        a new ContentExpression
      • dimensionReferenceExpression

        public static DimensionReferenceExpression dimensionReferenceExpression()
        Creates a new DimensionReferenceExpression enabling predicates (searching) on all dimension attributes.
        Returns:
        a new DimensionReferenceExpression
      • validityExpression

        public static DatePeriodExpression validityExpression()
        Creates a new DatePeriodExpression enabling predicates (searching) on document validity.
        Returns:
        a new DatePeriodExpression
      • stringExpression

        public static StringExpression stringExpression​(String externalKey)
        Creates a new StringExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new StringExpression
      • numberExpression

        public static NumberExpression numberExpression​(String externalKey)
        Creates a new NumberExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new NumberExpression
      • dateExpression

        public static DateExpression dateExpression​(String externalKey)
        Creates a new DateExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new DateExpression
      • fileExpression

        public static FileExpression fileExpression​(String externalKey)
        Creates a new FileExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new FileExpression
      • xmlExpression

        public static XmlExpression xmlExpression​(String externalKey)
        Creates a new XmlExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new XmlExpression
      • objectReferenceExpression

        public static ObjectReferenceExpression objectReferenceExpression​(String externalKey)
        Creates a new ObjectReferenceExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new ObjectReferenceExpression
      • dimensionReferenceExpression

        public static DimensionReferenceExpression dimensionReferenceExpression​(String externalKey)
        Creates a new DimensionReferenceExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new DimensionReferenceExpression
      • documentReferenceExpression

        public static DocumentReferenceExpression documentReferenceExpression​(String externalKey)
        Creates a new DocumentReferenceExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new DocumentReferenceExpression
      • userReferenceExpression

        public static UserReferenceExpression userReferenceExpression​(String externalKey)
        Creates a new UserReferenceExpression for an attribute or function identified by external key.
        Parameters:
        externalKey - external key of the attribute.
        Returns:
        a new UserReferenceExpression
      • sqlFunctionBuilder

        public static SqlFunctionBuilder sqlFunctionBuilder()
        Creates a new builder for creating SqlFunction objects
        Returns:
        a new SqlFunctionBuilder
      • stringFunction

        public static StringExpressionType stringFunction​(String name,
                                                          Function<ContentQueryRow,​String> function)
        Creates a new StringExpressionType for a function identified by name.
        Parameters:
        name - name of the function
        Returns:
        a new StringExpressionType
      • numberFunction

        public static NumberExpressionType numberFunction​(String name,
                                                          Function<ContentQueryRow,​Number> function)
        Creates a new NumberExpressionType for a function identified by name.
        Parameters:
        name - name of the function
        Returns:
        a new NumberExpressionType
      • objectFunction

        public static <T> ObjectExpressionType<T> objectFunction​(String name,
                                                                 Function<ContentQueryRow,​T> function)
        Creates a new ObjectExpressionType for a function identified by name.
        Parameters:
        name - name of the function
        Returns:
        a new ObjectExpressionType