Module org.seasar.doma.core
Package org.seasar.doma.jdbc.dialect
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconcat(PreparedSqlBuilder buf, Runnable leftOperand, Runnable rightOperand) Builds a SQL fragment for string concatenation operation.voidforUpdate(PreparedSqlBuilder buf, ForUpdateOption option, Consumer<PropertyMetamodel<?>> column, AliasManager aliasManager) Builds a SQL fragment for FOR UPDATE clause.voidlockWithTableHint(PreparedSqlBuilder buf, ForUpdateOption option, Consumer<PropertyMetamodel<?>> column) Builds a SQL fragment for locking using table hints.voidoffsetAndFetch(PreparedSqlBuilder buf, int offset, int limit) Builds a SQL fragment for pagination with offset and limit.
-
Constructor Details
-
StandardCriteriaBuilder
public StandardCriteriaBuilder()
-
-
Method Details
-
concat
Description copied from interface:CriteriaBuilderBuilds a SQL fragment for string concatenation operation.- Specified by:
concatin interfaceCriteriaBuilder- Parameters:
buf- the SQL builder to append the concatenation expression toleftOperand- the runnable that builds the left operand of the concatenationrightOperand- the runnable that builds the right operand of the concatenation
-
offsetAndFetch
Description copied from interface:CriteriaBuilderBuilds a SQL fragment for pagination with offset and limit.- Specified by:
offsetAndFetchin interfaceCriteriaBuilder- Parameters:
buf- the SQL builder to append the pagination expression tooffset- the number of rows to skiplimit- the maximum number of rows to return
-
lockWithTableHint
public void lockWithTableHint(PreparedSqlBuilder buf, ForUpdateOption option, Consumer<PropertyMetamodel<?>> column) Description copied from interface:CriteriaBuilderBuilds a SQL fragment for locking using table hints.- Specified by:
lockWithTableHintin interfaceCriteriaBuilder- Parameters:
buf- the SQL builder to append the locking expression tooption- the locking optionscolumn- 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:CriteriaBuilderBuilds a SQL fragment for FOR UPDATE clause.- Specified by:
forUpdatein interfaceCriteriaBuilder- Parameters:
buf- the SQL builder to append the FOR UPDATE expression tooption- the FOR UPDATE optionscolumn- the consumer that specifies which columns to lockaliasManager- the manager for table aliases
-