Class StandardDialect.StandardCriteriaBuilder

java.lang.Object
org.seasar.doma.jdbc.dialect.StandardDialect.StandardCriteriaBuilder
All Implemented Interfaces:
CriteriaBuilder
Direct Known Subclasses:
Db2Dialect.Db2CriteriaBuilder, Mssql2008Dialect.Mssql2008CriteriaBuilder, MysqlDialect.MysqlCriteriaBuilder, Oracle11Dialect.Oracle11CriteriaBuilder, PostgresDialect.PostgresCriteriaBuilder, SqliteDialect.SqliteCriteriaBuilder
Enclosing class:
StandardDialect

public static class StandardDialect.StandardCriteriaBuilder extends Object implements CriteriaBuilder
  • Constructor Details

    • StandardCriteriaBuilder

      public StandardCriteriaBuilder()
  • Method Details

    • concat

      public void concat(PreparedSqlBuilder buf, Runnable leftOperand, Runnable rightOperand)
      Description copied from interface: CriteriaBuilder
      Builds a SQL fragment for string concatenation operation.
      Specified by:
      concat in interface CriteriaBuilder
      Parameters:
      buf - the SQL builder to append the concatenation expression to
      leftOperand - the runnable that builds the left operand of the concatenation
      rightOperand - the runnable that builds the right operand of the concatenation
    • offsetAndFetch

      public void offsetAndFetch(PreparedSqlBuilder buf, int offset, int limit)
      Description copied from interface: CriteriaBuilder
      Builds a SQL fragment for pagination with offset and limit.
      Specified by:
      offsetAndFetch in interface CriteriaBuilder
      Parameters:
      buf - the SQL builder to append the pagination expression to
      offset - the number of rows to skip
      limit - the maximum number of rows to return
    • lockWithTableHint

      public void lockWithTableHint(PreparedSqlBuilder buf, ForUpdateOption option, Consumer<PropertyMetamodel<?>> column)
      Description copied from interface: CriteriaBuilder
      Builds a SQL fragment for locking using table hints.
      Specified by:
      lockWithTableHint in interface CriteriaBuilder
      Parameters:
      buf - the SQL builder to append the locking expression to
      option - the locking options
      column - the consumer that specifies which columns to lock
    • forUpdate

      public void forUpdate(PreparedSqlBuilder buf, ForUpdateOption option, Consumer<PropertyMetamodel<?>> column, AliasManager aliasManager)
      Description copied from interface: CriteriaBuilder
      Builds a SQL fragment for FOR UPDATE clause.
      Specified by:
      forUpdate in interface CriteriaBuilder
      Parameters:
      buf - the SQL builder to append the FOR UPDATE expression to
      option - the FOR UPDATE options
      column - the consumer that specifies which columns to lock
      aliasManager - the manager for table aliases