Class PropertyDAO
java.lang.Object
com.maplander.backend.dao.BaseDAO
com.maplander.backend.dao.manage.PropertyDAO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Integer
countProperty
(Long officeId, StatusTypeEnum status) static Integer
countProperty
(Long officeId, Integer limit, String cursor) static Integer
countPropertyByOfficeId
(Long officeId, StatusTypeEnum status) static void
static void
static void
deleteManyIds
(List<Long> ids) static void
deleteProperties
(List<Property> properties) list()
listByOfficeId
(Long officeId, Integer limit) listByUserId
(Long userId, Integer limit) static com.google.api.server.spi.response.CollectionResponse
<Property> listPropertyArchiveByOffice
(Long officeId, Integer limit, String cursor, Long time) static com.google.api.server.spi.response.CollectionResponse
<Property> listPropertyByBrand
(BrandTypeEnum brand, Integer limit, String cursor, Long time) listPropertyByOfficeId
(Long userId) listPropertyByOfficeId
(Long officeId, BrandTypeEnum brand, Integer limit) static com.google.api.server.spi.response.CollectionResponse
<Property> listPropertyByOfficeId
(Long officeId, Integer limit, String cursor, Long time) static com.google.api.server.spi.response.CollectionResponse
<Property> listPropertyByOfficeIdAndStatus
(Long officeId, StatusTypeEnum status, Integer limit, String cursor, Long time) listPropertyByOfficeIdNotNow
(Long officeId) static com.google.api.server.spi.response.CollectionResponse
<Property> listPropertyByStatus
(StatusTypeEnum status, Integer limit, String cursor, Long time) static com.google.api.server.spi.response.CollectionResponse
<Property> ListPropertyByStatus
(Long userId, StatusTypeEnum status, Integer limit, String cursor, Long time) listPropertyByUserId
(Long userId, BrandTypeEnum brand, Integer limit) static com.google.api.server.spi.response.CollectionResponse
<Property> listPropertyByUserId
(Long userId, Integer limit, String cursor, Long time) static Property
static Property
loadByExternalId
(BrandTypeEnum brand, String externalId) static Property
loadBySku
(BrandTypeEnum brand, String sku) static Property
static boolean
propertyExist
(Long userId) static boolean
propertyExistByOffice
(Long officeId) static void
static void
saveBoth_no_bq
(Property property) static int
sizeByOfficeId
(Long officeId) static int
sizeByUserId
(Long userId) Methods inherited from class com.maplander.backend.dao.BaseDAO
buildCollectionResponse, delete, delete, deleteMany, deleteMany, deleteManyNow, getOfy, list, load, load, load, queryDefault, save, saveMany, saveManyNow
-
Field Details
-
clazz
-
-
Constructor Details
-
PropertyDAO
public PropertyDAO()
-
-
Method Details
-
load
-
deleteManyIds
-
deleteProperties
-
saveBoth_no_bq
-
saveBoth
-
delete
-
deleteDAO
-
list
-
loadByExternalId
-
loadBySku
-
loadBySku
-
listByOfficeId
-
listByUserId
-
sizeByOfficeId
-
sizeByUserId
-
listPropertyArchiveByOffice
-
listPropertyByBrand
public static com.google.api.server.spi.response.CollectionResponse<Property> listPropertyByBrand(BrandTypeEnum brand, Integer limit, String cursor, Long time) -
ListPropertyByStatus
-
listPropertyByOfficeId
-
listPropertyByOfficeId
-
listPropertyByUserId
-
listPropertyByOfficeIdNotNow
-
listPropertyByOfficeIdAndStatus
-
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
-
countProperty
-
countProperty
-
countPropertyByOfficeId
-
propertyExist
-
propertyExistByOffice
-