Class UserDAO

java.lang.Object
com.maplander.backend.dao.BaseDAO
com.maplander.backend.dao.manage.UserDAO

public class UserDAO extends BaseDAO
  • Field Details

    • clazz

      public static final Class<User> clazz
  • Constructor Details

    • UserDAO

      public UserDAO()
  • Method Details

    • save

      public static void save(User user)
    • saveNotSafe

      public static void saveNotSafe(User user)
    • delete

      public static void delete(User user)
    • deleteManys

      public static void deleteManys(List<User> users)
    • load

      public static User load(Long id)
    • load

      public static Map<Long,User> load(List<Long> ids)
    • userExist

      public static boolean userExist(String email, BrandTypeEnum brand)
    • loadByEmail

      public static User loadByEmail(String email, BrandTypeEnum brand)
    • loadByEmailRV

      public static User loadByEmailRV(String email)
    • loadByBot

      public static User loadByBot(String botNumber)
    • loadByEmail

      public static User loadByEmail(String email)
    • loadByBCardId

      public static User loadByBCardId(Long bCardId)
    • loadByPhoneNumber

      public static User loadByPhoneNumber(String whatsApp)
    • list

      public static List<User> list()
    • listByOffice

      public static List<User> listByOffice(Long officeId)
    • listByBrand

      public static com.google.api.server.spi.response.CollectionResponse<User> listByBrand(BrandTypeEnum brand, Integer limit, String cursor, Long time)
    • listAllByBrand

      public static com.google.api.server.spi.response.CollectionResponse<User> listAllByBrand(BrandTypeEnum brand, Integer limit, String cursor, Long time)
    • listAll

      public static com.google.api.server.spi.response.CollectionResponse<User> listAll(Integer limit, String cursor, Long time)
    • listAllByRole

      public static com.google.api.server.spi.response.CollectionResponse<User> listAllByRole(RoleTypeEnum role, Integer limit, String cursor, Long time)