Class PropertyDAO

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

public class PropertyDAO extends BaseDAO
  • Field Details

  • Constructor Details

    • PropertyDAO

      public PropertyDAO()
  • Method Details

    • load

      public static Property load(Long id)
    • deleteManyIds

      public static void deleteManyIds(List<Long> ids)
    • deleteProperties

      public static void deleteProperties(List<Property> properties)
    • saveBoth_no_bq

      public static void saveBoth_no_bq(Property property)
    • saveBoth

      public static void saveBoth(Property property)
    • delete

      public static void delete(Property property)
    • deleteDAO

      public static void deleteDAO(Property property)
    • list

      public static List<Property> list()
    • loadByExternalId

      public static Property loadByExternalId(BrandTypeEnum brand, String externalId)
    • loadBySku

      public static Property loadBySku(Long officeId, String sku)
    • loadBySku

      public static Property loadBySku(BrandTypeEnum brand, String sku)
    • listByOfficeId

      public static List<Property> listByOfficeId(Long officeId, Integer limit)
    • listByUserId

      public static List<Property> listByUserId(Long userId, Integer limit)
    • sizeByOfficeId

      public static int sizeByOfficeId(Long officeId)
    • sizeByUserId

      public static int sizeByUserId(Long userId)
    • listPropertyArchiveByOffice

      public static com.google.api.server.spi.response.CollectionResponse<Property> listPropertyArchiveByOffice(Long officeId, Integer limit, String cursor, Long time)
    • listPropertyByBrand

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

      public static com.google.api.server.spi.response.CollectionResponse<Property> ListPropertyByStatus(Long userId, StatusTypeEnum status, Integer limit, String cursor, Long time)
    • listPropertyByOfficeId

      public static List<Property> listPropertyByOfficeId(Long userId)
    • listPropertyByOfficeId

      public static com.google.api.server.spi.response.CollectionResponse<Property> listPropertyByOfficeId(Long officeId, Integer limit, String cursor, Long time)
    • listPropertyByUserId

      public static com.google.api.server.spi.response.CollectionResponse<Property> listPropertyByUserId(Long userId, Integer limit, String cursor, Long time)
    • listPropertyByOfficeIdNotNow

      public static List<Property> listPropertyByOfficeIdNotNow(Long officeId)
    • listPropertyByOfficeIdAndStatus

      public static com.google.api.server.spi.response.CollectionResponse<Property> listPropertyByOfficeIdAndStatus(Long officeId, StatusTypeEnum status, Integer limit, String cursor, Long time)
    • listPropertyByStatus

      public static com.google.api.server.spi.response.CollectionResponse<Property> listPropertyByStatus(StatusTypeEnum status, Integer limit, String cursor, Long time)
    • listPropertyByOfficeId

      public static List<Property> listPropertyByOfficeId(Long officeId, BrandTypeEnum brand, Integer limit)
    • listPropertyByUserId

      public static List<Property> listPropertyByUserId(Long userId, BrandTypeEnum brand, Integer limit)
    • countProperty

      public static Integer countProperty(Long officeId, Integer limit, String cursor)
    • countProperty

      public static Integer countProperty(Long officeId, StatusTypeEnum status)
    • countPropertyByOfficeId

      public static Integer countPropertyByOfficeId(Long officeId, StatusTypeEnum status)
    • propertyExist

      public static boolean propertyExist(Long userId)
    • propertyExistByOffice

      public static boolean propertyExistByOffice(Long officeId)