Package top.codef.dao

Interface AmebaDao

All Known Implementing Classes:
AbstractDao, AbstractDaoWithClass, BaseDao, CommonDao, TypedBaseDao, TypedCommonDao

public interface AmebaDao
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T, R> void
    conditionHandle(CommonFilter filter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)
     
    default <T, R> void
    conditionHandle(CommonFilter filter, Pageable pageable, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)
     
    default Long
    mysql可直接使用,生成数据库级唯一id方法;
    jakarta.persistence.EntityManager
     
    default jakarta.persistence.criteria.Path<?>[]
    groupBy(List<GroupCondition> groupConditions, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
     
    default <T, R> jakarta.persistence.criteria.CriteriaQuery<T>
    groupBy(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)
     
    default void
    joinTable(List<JoinCondition> list, jakarta.persistence.criteria.Root<?> root)
     
    default void
    limit(CommonFilter commonFilter, jakarta.persistence.Query query)
     
    default List<jakarta.persistence.criteria.Order>
    orderBy(List<OrderCondition> orders, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
     
    default List<jakarta.persistence.criteria.Order>
    orderBy(List<OrderCondition> orders, Pageable page, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
     
    default <T> jakarta.persistence.criteria.CriteriaQuery<T>
    orderBy(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
     
    default <T> jakarta.persistence.criteria.CriteriaQuery<T>
    orderBy(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, Pageable pageable, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
     
    default <T> jakarta.persistence.criteria.CriteriaQuery<T>
    select(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.Path<?> path)
     
    default jakarta.persistence.criteria.Predicate[]
    seperate(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
     
    default <T, R> jakarta.persistence.criteria.CriteriaQuery<T>
    where(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)
     
  • Method Details

    • getEntityManager

      jakarta.persistence.EntityManager getEntityManager()
    • generateUid

      default Long generateUid()
      mysql可直接使用,生成数据库级唯一id方法;
      Returns:
    • select

      default <T> jakarta.persistence.criteria.CriteriaQuery<T> select(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.Path<?> path)
    • where

      default <T, R> jakarta.persistence.criteria.CriteriaQuery<T> where(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)
    • seperate

      default jakarta.persistence.criteria.Predicate[] seperate(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
    • groupBy

      default <T, R> jakarta.persistence.criteria.CriteriaQuery<T> groupBy(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)
    • groupBy

      default jakarta.persistence.criteria.Path<?>[] groupBy(List<GroupCondition> groupConditions, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
    • limit

      default void limit(CommonFilter commonFilter, jakarta.persistence.Query query)
    • orderBy

      default List<jakarta.persistence.criteria.Order> orderBy(List<OrderCondition> orders, Pageable page, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
    • orderBy

      default List<jakarta.persistence.criteria.Order> orderBy(List<OrderCondition> orders, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
    • orderBy

      default <T> jakarta.persistence.criteria.CriteriaQuery<T> orderBy(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
    • orderBy

      default <T> jakarta.persistence.criteria.CriteriaQuery<T> orderBy(CommonFilter commonFilter, jakarta.persistence.criteria.CriteriaQuery<T> query, Pageable pageable, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<?> root)
    • joinTable

      default void joinTable(List<JoinCondition> list, jakarta.persistence.criteria.Root<?> root)
    • conditionHandle

      default <T, R> void conditionHandle(CommonFilter filter, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)
    • conditionHandle

      default <T, R> void conditionHandle(CommonFilter filter, Pageable pageable, jakarta.persistence.criteria.CriteriaQuery<T> query, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<R> root)