Class AdDAO

java.lang.Object
com.maplander.backend.dao.BaseDAO
com.maplander.backend.dao.manage.ad.AdDAO

public class AdDAO extends BaseDAO
  • Field Details

    • clazz

      public static final Class<Ad> clazz
  • Constructor Details

    • AdDAO

      public AdDAO()
  • Method Details

    • load

      public static Ad load(Long adId)
    • loadById

      public static Ad loadById(Long id)
    • getNextAdToUpdate

      public static Ad getNextAdToUpdate()
    • listByOfficeAndStatus

      public static List<Ad> listByOfficeAndStatus(Long officeId, StatusAdEnum status)
    • listByUserAndStatus

      public static List<Ad> listByUserAndStatus(Long userId, StatusAdEnum status)
    • filterAd

      public static List<Ad> filterAd(Long adId, Long officeId, Long userId, Long propertyId, Long adSetId, double amountDay, StatusAdEnum statusAd)
    • listByStatus

      public static com.google.api.server.spi.response.CollectionResponse<Ad> listByStatus(StatusAdEnum status, Integer limit, String cursor, Long time)
    • getLastAd

      public static Ad getLastAd(StatusAdEnum status)