java.lang.Object
org.springframework.data.relational.core.sql.Expressions

public abstract class Expressions extends Object
Factory for common Expressions.
Since:
1.1
Author:
Mark Paluch, Jens Schauder
See Also:
  • Method Details

    • asterisk

      public static Expression asterisk()
      Returns:
      a new asterisk * expression.
    • just

      public static Expression just(String sql)
      Creates a plain sql Expression.
      Parameters:
      sql - the SQL, must not be null or empty.
      Returns:
      a SQL Expression.
    • asterisk

      public static Expression asterisk(Table table)
      Returns:
      a new Table.scoped asterisk <table>.* expression.
    • cast

      public static Expression cast(Expression expression, String targetType)
      Returns:
      a new Cast expression.
      Since:
      2.3