public interface SqlBuilder
Modifier and Type | Interface and Description |
---|---|
static class |
SqlBuilder.InsertIntoNextStep |
static CountDSL.FromGatherer<SelectModel> countDistinctColumn(BasicColumn column)
column
- the column to countstatic CountDSL.FromGatherer<SelectModel> countColumn(BasicColumn column)
column
- the column to countstatic CountDSL<SelectModel> countFrom(SqlTable table)
table
- the table to countstatic DeleteDSL<DeleteModel> deleteFrom(SqlTable table)
static <T> InsertDSL.IntoGatherer<T> insert(T row)
@SafeVarargs static <T> BatchInsertDSL.IntoGatherer<T> insertBatch(T... records)
T
- the type of record to insertrecords
- records to insertstatic <T> BatchInsertDSL.IntoGatherer<T> insertBatch(Collection<T> records)
T
- the type of record to insertrecords
- records to insert@SafeVarargs static <T> MultiRowInsertDSL.IntoGatherer<T> insertMultiple(T... records)
For large bulk inserts, see insertBatch(Object[])
T
- the type of record to insertrecords
- records to insertstatic <T> MultiRowInsertDSL.IntoGatherer<T> insertMultiple(Collection<T> records)
For large bulk inserts, see insertBatch(Collection)
T
- the type of record to insertrecords
- records to insertstatic SqlBuilder.InsertIntoNextStep insertInto(SqlTable table)
static QueryExpressionDSL.FromGatherer<SelectModel> select(BasicColumn... selectList)
static QueryExpressionDSL.FromGatherer<SelectModel> select(Collection<BasicColumn> selectList)
static QueryExpressionDSL.FromGatherer<SelectModel> selectDistinct(BasicColumn... selectList)
static QueryExpressionDSL.FromGatherer<SelectModel> selectDistinct(Collection<BasicColumn> selectList)
static UpdateDSL<UpdateModel> update(SqlTable table)
static WhereDSL where()
static <T> WhereDSL where(BindableColumn<T> column, VisitableCondition<T> condition)
static <T> WhereDSL where(BindableColumn<T> column, VisitableCondition<T> condition, SqlCriterion... subCriteria)
static WhereDSL where(ExistsPredicate existsPredicate)
static WhereDSL where(ExistsPredicate existsPredicate, SqlCriterion... subCriteria)
static <T> SqlCriterion or(BindableColumn<T> column, VisitableCondition<T> condition)
static <T> SqlCriterion or(BindableColumn<T> column, VisitableCondition<T> condition, SqlCriterion... subCriteria)
static SqlCriterion or(ExistsPredicate existsPredicate)
static SqlCriterion or(ExistsPredicate existsPredicate, SqlCriterion... subCriteria)
static <T> SqlCriterion and(BindableColumn<T> column, VisitableCondition<T> condition)
static <T> SqlCriterion and(BindableColumn<T> column, VisitableCondition<T> condition, SqlCriterion... subCriteria)
static SqlCriterion and(ExistsPredicate existsPredicate)
static SqlCriterion and(ExistsPredicate existsPredicate, SqlCriterion... subCriteria)
static JoinCriterion and(BasicColumn joinColumn, JoinCondition joinCondition)
static JoinCriterion on(BasicColumn joinColumn, JoinCondition joinCondition)
static EqualTo equalTo(BasicColumn column)
static CountAll count()
static Count count(BasicColumn column)
static CountDistinct countDistinct(BasicColumn column)
static <T> Max<T> max(BindableColumn<T> column)
static <T> Min<T> min(BindableColumn<T> column)
static <T> Avg<T> avg(BindableColumn<T> column)
static <T> Sum<T> sum(BindableColumn<T> column)
static StringConstant stringConstant(String constant)
static <T> Add<T> add(BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns)
static <T> Divide<T> divide(BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns)
static <T> Multiply<T> multiply(BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns)
static <T> Subtract<T> subtract(BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns)
static <T> Concatenate<T> concatenate(BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns)
static <T> OperatorFunction<T> applyOperator(String operator, BindableColumn<T> firstColumn, BasicColumn secondColumn, BasicColumn... subsequentColumns)
static <T> Lower<T> lower(BindableColumn<T> column)
static <T> Substring<T> substring(BindableColumn<T> column, int offset, int length)
static <T> Upper<T> upper(BindableColumn<T> column)
static ExistsPredicate exists(Buildable<SelectModel> selectModelBuilder)
static ExistsPredicate notExists(Buildable<SelectModel> selectModelBuilder)
static <T> IsNull<T> isNull()
static <T> IsNotNull<T> isNotNull()
static <T> IsEqualTo<T> isEqualTo(T value)
static <T> IsEqualToWithSubselect<T> isEqualTo(Buildable<SelectModel> selectModelBuilder)
static <T> IsEqualToColumn<T> isEqualTo(BasicColumn column)
static <T> IsEqualTo<T> isEqualToWhenPresent(T value)
static <T> IsNotEqualTo<T> isNotEqualTo(T value)
static <T> IsNotEqualTo<T> isNotEqualTo(Supplier<T> valueSupplier)
static <T> IsNotEqualToWithSubselect<T> isNotEqualTo(Buildable<SelectModel> selectModelBuilder)
static <T> IsNotEqualToColumn<T> isNotEqualTo(BasicColumn column)
static <T> IsNotEqualTo<T> isNotEqualToWhenPresent(T value)
static <T> IsNotEqualTo<T> isNotEqualToWhenPresent(Supplier<T> valueSupplier)
static <T> IsGreaterThan<T> isGreaterThan(T value)
static <T> IsGreaterThan<T> isGreaterThan(Supplier<T> valueSupplier)
static <T> IsGreaterThanWithSubselect<T> isGreaterThan(Buildable<SelectModel> selectModelBuilder)
static <T> IsGreaterThanColumn<T> isGreaterThan(BasicColumn column)
static <T> IsGreaterThan<T> isGreaterThanWhenPresent(T value)
static <T> IsGreaterThan<T> isGreaterThanWhenPresent(Supplier<T> valueSupplier)
static <T> IsGreaterThanOrEqualTo<T> isGreaterThanOrEqualTo(T value)
static <T> IsGreaterThanOrEqualTo<T> isGreaterThanOrEqualTo(Supplier<T> valueSupplier)
static <T> IsGreaterThanOrEqualToWithSubselect<T> isGreaterThanOrEqualTo(Buildable<SelectModel> selectModelBuilder)
static <T> IsGreaterThanOrEqualToColumn<T> isGreaterThanOrEqualTo(BasicColumn column)
static <T> IsGreaterThanOrEqualTo<T> isGreaterThanOrEqualToWhenPresent(T value)
static <T> IsGreaterThanOrEqualTo<T> isGreaterThanOrEqualToWhenPresent(Supplier<T> valueSupplier)
static <T> IsLessThan<T> isLessThan(T value)
static <T> IsLessThan<T> isLessThan(Supplier<T> valueSupplier)
static <T> IsLessThanWithSubselect<T> isLessThan(Buildable<SelectModel> selectModelBuilder)
static <T> IsLessThanColumn<T> isLessThan(BasicColumn column)
static <T> IsLessThan<T> isLessThanWhenPresent(T value)
static <T> IsLessThan<T> isLessThanWhenPresent(Supplier<T> valueSupplier)
static <T> IsLessThanOrEqualTo<T> isLessThanOrEqualTo(T value)
static <T> IsLessThanOrEqualTo<T> isLessThanOrEqualTo(Supplier<T> valueSupplier)
static <T> IsLessThanOrEqualToWithSubselect<T> isLessThanOrEqualTo(Buildable<SelectModel> selectModelBuilder)
static <T> IsLessThanOrEqualToColumn<T> isLessThanOrEqualTo(BasicColumn column)
static <T> IsLessThanOrEqualTo<T> isLessThanOrEqualToWhenPresent(T value)
static <T> IsLessThanOrEqualTo<T> isLessThanOrEqualToWhenPresent(Supplier<T> valueSupplier)
@SafeVarargs static <T> IsIn<T> isIn(T... values)
static <T> IsIn<T> isIn(Collection<T> values)
static <T> IsInWithSubselect<T> isIn(Buildable<SelectModel> selectModelBuilder)
@SafeVarargs static <T> IsIn<T> isInWhenPresent(T... values)
static <T> IsIn<T> isInWhenPresent(Collection<T> values)
@SafeVarargs static <T> IsNotIn<T> isNotIn(T... values)
static <T> IsNotIn<T> isNotIn(Collection<T> values)
static <T> IsNotInWithSubselect<T> isNotIn(Buildable<SelectModel> selectModelBuilder)
@SafeVarargs static <T> IsNotIn<T> isNotInWhenPresent(T... values)
static <T> IsNotIn<T> isNotInWhenPresent(Collection<T> values)
static <T> IsBetween.Builder<T> isBetween(T value1)
static <T> IsBetween.Builder<T> isBetween(Supplier<T> valueSupplier1)
static <T> IsBetween.WhenPresentBuilder<T> isBetweenWhenPresent(T value1)
static <T> IsBetween.WhenPresentBuilder<T> isBetweenWhenPresent(Supplier<T> valueSupplier1)
static <T> IsNotBetween.Builder<T> isNotBetween(T value1)
static <T> IsNotBetween.Builder<T> isNotBetween(Supplier<T> valueSupplier1)
static <T> IsNotBetween.WhenPresentBuilder<T> isNotBetweenWhenPresent(T value1)
static <T> IsNotBetween.WhenPresentBuilder<T> isNotBetweenWhenPresent(Supplier<T> valueSupplier1)
static <T> IsLike<T> isLike(T value)
static <T> IsLike<T> isLikeWhenPresent(T value)
static <T> IsNotLike<T> isNotLike(T value)
static <T> IsNotLike<T> isNotLikeWhenPresent(T value)
static IsLikeCaseInsensitive isLikeCaseInsensitive(String value)
static IsLikeCaseInsensitive isLikeCaseInsensitive(Supplier<String> valueSupplier)
static IsLikeCaseInsensitive isLikeCaseInsensitiveWhenPresent(String value)
static IsLikeCaseInsensitive isLikeCaseInsensitiveWhenPresent(Supplier<String> valueSupplier)
static IsNotLikeCaseInsensitive isNotLikeCaseInsensitive(String value)
static IsNotLikeCaseInsensitive isNotLikeCaseInsensitive(Supplier<String> valueSupplier)
static IsNotLikeCaseInsensitive isNotLikeCaseInsensitiveWhenPresent(String value)
static IsNotLikeCaseInsensitive isNotLikeCaseInsensitiveWhenPresent(Supplier<String> valueSupplier)
static IsInCaseInsensitive isInCaseInsensitive(String... values)
static IsInCaseInsensitive isInCaseInsensitive(Collection<String> values)
static IsInCaseInsensitive isInCaseInsensitiveWhenPresent(String... values)
static IsInCaseInsensitive isInCaseInsensitiveWhenPresent(Collection<String> values)
static IsNotInCaseInsensitive isNotInCaseInsensitive(String... values)
static IsNotInCaseInsensitive isNotInCaseInsensitive(Collection<String> values)
static IsNotInCaseInsensitive isNotInCaseInsensitiveWhenPresent(String... values)
static IsNotInCaseInsensitive isNotInCaseInsensitiveWhenPresent(Collection<String> values)
static SortSpecification sortColumn(String name)
select(foo.as("bar")) .from(baz) .orderBy(sortColumn("bar"))
name
- the string to use as a sort specificationstatic SortSpecification sortColumn(String tableAlias, SqlColumn<?> column)
tableAlias
- the table aliascolumn
- the columnCopyright © 2016–2021 MyBatis.org. All rights reserved.