Class AdRepository

java.lang.Object
com.maplander.backend.repository.RepositoryBase<Ad,Long>
com.maplander.backend.repository.AdRepository

public class AdRepository extends RepositoryBase<Ad,Long>
  • Constructor Details

    • AdRepository

      public AdRepository(org.hibernate.SessionFactory sessionFactory)
  • Method Details

    • findByAdId

      public Optional<Ad> findByAdId(String adId, org.hibernate.Session session)
    • findAllActives

      public List<Ad> findAllActives(Integer limit, Integer offset, org.hibernate.Session session)
    • findWithFilters

      public List<Ad> findWithFilters(String adId, Long officeId, Long userId, Long propertyId, String adSetId, StatusAdEnum statusAd, Integer limit, Integer offset, org.hibernate.Session session)
    • findHashImageByAdId

      public Optional<String> findHashImageByAdId(String adId, org.hibernate.Session session)
    • updateInsightsTotals

      public void updateInsightsTotals(String adId, long impressions, long clicks, double spend, long reach, double frequency, double cpc, double ctr, double cpm, org.hibernate.Session session)
    • findNextForCron

      public Optional<Ad> findNextForCron(org.hibernate.Session session)