Class EntityDao<T>

java.lang.Object
org.huiche.dao.EntityDao<T>
Type Parameters:
T - 实体类类型
All Implemented Interfaces:
EntityDeleteCmd<T>, EntityInsertCmd<T>, EntityUpdateCmd<T>, EntityCountQuery<T>, EntityExistsQuery<T>, EntityGetColumnQuery<T>, EntityGetQuery<T>, EntityListColumnQuery<T>, EntityListQuery<T>, EntityOptionalQuery<T>, EntityPageQuery<T>, EntityStreamQuery<T>, DaoSupplier, EntitySupplier<T>

实体类数据访问对象
Author:
Maning
  • Constructor Details

    • EntityDao

      protected EntityDao()
      默认构造
    • EntityDao

      protected EntityDao(Dao dao)
      指定Dao的构造
      Parameters:
      dao - 数据访问对象
  • Method Details

    • dao

      public Dao dao()
      Description copied from interface: DaoSupplier
      返回Dao对象
      Specified by:
      dao in interface DaoSupplier
      Returns:
      Dao
    • entityClass

      public Class<T> entityClass()
      Description copied from interface: EntitySupplier
      提供实体类
      Specified by:
      entityClass in interface EntitySupplier<T>
      Returns:
      实体类
    • setDao

      public void setDao(Dao dao)
      设置dao
      Parameters:
      dao - 数据访问对象