Class PropertyRepository
java.lang.Object
com.maplander.backend.repository.RepositoryBase<Property,Long>
com.maplander.backend.repository.PropertyRepository
-
Field Summary
Fields inherited from class com.maplander.backend.repository.RepositoryBase
sessionFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountBotProperties(org.hibernate.Session session, FiltersBigQuery filter) countByFilters(org.hibernate.Session session, BrandTypeEnum brand, Long officeId, Boolean isRoV, StatusTypeEnum status) countByOfficeId(Long officeId, org.hibernate.Session session) countByStatusAndOfficeId(Long officeId, StatusTypeEnum status, org.hibernate.Session session) countByUserIdAndStatus(Long userId, StatusTypeEnum status, org.hibernate.Session session) countGroupedByStatusAndOfficeId(Long officeId, org.hibernate.Session session) countGroupedByStatusAndUserId(Long userId, org.hibernate.Session session) countWithColonyPath(org.hibernate.Session session, FiltersBigQuery filter, String stateName, String municipalyName, String colonyName, int level) countWithDynamicFilters(org.hibernate.Session session, FiltersBigQuery filter) countWithDynamicFiltersAsLite(org.hibernate.Session session, FiltersBigQuery filter) findAllPaginated(org.hibernate.Session session, int limit, int offset) findArchivedByOfficeId(Long officeId, Integer limit, Integer offset, org.hibernate.Session session) findBotProperties(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) findByOfficeId(Long officeId, org.hibernate.Session session) findBySkuAndOfficeId(String sku, Long officeId, org.hibernate.Session session) findByStatusAndOffice(StatusTypeEnum status, Long officeId, org.hibernate.Session session) findDashboardProperties(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) findIdsByIds(List<Long> ids, org.hibernate.Session session) findImagesByIds(List<Long> ids, org.hibernate.Session session) findMapByIds(List<Long> ids, org.hibernate.Session session) findPlacesByWord(PropertyTypeEnum type, OfferingTypeEnum offering, String word, Integer limit, Integer offset, org.hibernate.Session session) findPlacesByWordInOffice(PropertyTypeEnum type, OfferingTypeEnum offering, Long officeId, String word, org.hibernate.Session session) findPlacesByWordInUser(PropertyTypeEnum type, OfferingTypeEnum offering, Long userId, String word, org.hibernate.Session session) findPlacesByWordPolygon(PropertyTypeEnum type, OfferingTypeEnum offering, String word, String countryCode, org.hibernate.Session session) findPlacesByWordPolygonOrdered(PropertyTypeEnum type, OfferingTypeEnum offering, String word, String countryCode, org.hibernate.Session session) findPlacesByWordSoundex(PropertyTypeEnum type, OfferingTypeEnum offering, String word, org.hibernate.Session session) findPlacesByWordSP(String word, org.hibernate.Session session) findPropertyUserLite(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) findSharedLiteByIdsAndFilters(List<Long> ids, Filter filter, Integer limit, Integer offset, org.hibernate.Session session) findTopPlaces(org.hibernate.Session session) findWithClassification(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) findWithClassificationAsLite(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) findWithColonyPathAsLite(org.hibernate.Session session, FiltersBigQuery filter, String stateName, String municipalyName, String colonyName, int level, Integer limit, Integer offset) findWithDynamicFilters(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) findWithDynamicFiltersAsLite(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) findWithDynamicFiltersAsLiteBQ(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) findWithDynamicFiltersAsLitePolygonId(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) getPropertiesByPath(String state_name, String municipaly_name, String colony_name, Integer level, String tipo_oferta, String tipo_propiedad, Integer bathrooms, Integer bedrooms, int lim, int cur, org.hibernate.Session session) getPropertiesPreviewByPath(ColonyLocation colonyLocation, int lmt, int cur, int bedFinal, int bathFinal, org.hibernate.Session session) listIdsToExpire(org.hibernate.Session session) queryLiteWithFilters(FiltersBigQuery filter, org.hibernate.Session session) queryTotalPropertyWithFilters(FiltersBigQuery filter, org.hibernate.Session session) searchPreviewPlaces(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, org.hibernate.Session session) searchPropertiesByColony(OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, String colony, int lim, int cur, org.hibernate.Session session) searchPropertyLiteForSite(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, Integer total, String state, String municipality, String colony, org.hibernate.Session session) searchStock(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, org.hibernate.Session session) searchStockPlaces(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, org.hibernate.Session session) searchStockWithFilters(FiltersBigQuery filter, org.hibernate.Session session) Methods inherited from class com.maplander.backend.repository.RepositoryBase
currentSession, delete, delete, deleteAll, deleteAll, deleteAll, deleteAllById, deleteAllById, deleteById, deleteById, deleteById, existsById, findAll, findAll, findById, findById, save, save, saveAll
-
Constructor Details
-
PropertyRepository
public PropertyRepository(org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
findByStatusAndOffice
public List<Property> findByStatusAndOffice(StatusTypeEnum status, Long officeId, org.hibernate.Session session) -
findBySkuAndOfficeId
-
findArchivedByOfficeId
-
findByOfficeId
-
findAllPaginated
-
countByStatusAndOfficeId
public Long countByStatusAndOfficeId(Long officeId, StatusTypeEnum status, org.hibernate.Session session) -
countByUserIdAndStatus
public Long countByUserIdAndStatus(Long userId, StatusTypeEnum status, org.hibernate.Session session) -
listIdsToExpire
-
countGroupedByStatusAndOfficeId
-
countGroupedByStatusAndUserId
-
countByOfficeId
-
countByFilters
public Long countByFilters(org.hibernate.Session session, BrandTypeEnum brand, Long officeId, Boolean isRoV, StatusTypeEnum status) -
countWithDynamicFilters
-
findWithDynamicFilters
public List<Property> findWithDynamicFilters(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) -
findWithDynamicFiltersAsLite
public List<PropertyLiteResult> findWithDynamicFiltersAsLite(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) -
findWithDynamicFiltersAsLiteBQ
public List<PropertyLiteResult> findWithDynamicFiltersAsLiteBQ(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) -
findWithDynamicFiltersAsLitePolygonId
public List<PropertyLiteResult> findWithDynamicFiltersAsLitePolygonId(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset, OrderTypeEnum orderTypeEnum, Boolean orderAsc) -
countWithDynamicFiltersAsLite
-
findBotProperties
public List<PropertyLiteBot> findBotProperties(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) -
countBotProperties
-
findPropertyUserLite
public List<PropertyUserLite> findPropertyUserLite(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) -
findDashboardProperties
public List<PropertyDashBoard> findDashboardProperties(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) -
findWithClassification
public List<Property> findWithClassification(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) -
findWithClassificationAsLite
public List<PropertyLiteResult> findWithClassificationAsLite(org.hibernate.Session session, FiltersBigQuery filter, Integer limit, Integer offset) -
findPlacesByWordInOffice
public List<SQLPlaces> findPlacesByWordInOffice(PropertyTypeEnum type, OfferingTypeEnum offering, Long officeId, String word, org.hibernate.Session session) -
findPlacesByWordInUser
public List<SQLPlaces> findPlacesByWordInUser(PropertyTypeEnum type, OfferingTypeEnum offering, Long userId, String word, org.hibernate.Session session) -
findPlacesByWord
public List<SQLPlaces> findPlacesByWord(PropertyTypeEnum type, OfferingTypeEnum offering, String word, Integer limit, Integer offset, org.hibernate.Session session) -
findPlacesByWordSP
-
findPlacesByWordSoundex
public List<SQLPlaces> findPlacesByWordSoundex(PropertyTypeEnum type, OfferingTypeEnum offering, String word, org.hibernate.Session session) -
findPlacesByWordPolygon
public List<Object[]> findPlacesByWordPolygon(PropertyTypeEnum type, OfferingTypeEnum offering, String word, String countryCode, org.hibernate.Session session) -
findPlacesByWordPolygonOrdered
public List<Object[]> findPlacesByWordPolygonOrdered(PropertyTypeEnum type, OfferingTypeEnum offering, String word, String countryCode, org.hibernate.Session session) -
findImagesByIds
-
findByIds
-
findMapByIds
-
findTopPlaces
-
findIdsByIds
-
searchStockPlaces
public List<SQLResults> searchStockPlaces(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, org.hibernate.Session session) -
searchStock
public List<SQLResults> searchStock(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, org.hibernate.Session session) -
searchStockWithFilters
public List<SQLResults> searchStockWithFilters(FiltersBigQuery filter, org.hibernate.Session session) -
searchPropertyLiteForSite
public List<PropertyLite> searchPropertyLiteForSite(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, Integer total, String state, String municipality, String colony, org.hibernate.Session session) -
queryTotalPropertyWithFilters
-
queryLiteWithFilters
public List<PropertyLiteMap> queryLiteWithFilters(FiltersBigQuery filter, org.hibernate.Session session) -
getPropertiesByPath
-
getPropertiesPreviewByPath
public List<PropertyPreview> getPropertiesPreviewByPath(ColonyLocation colonyLocation, int lmt, int cur, int bedFinal, int bathFinal, org.hibernate.Session session) -
searchPreviewPlaces
public PreviewPlaces searchPreviewPlaces(LocationTypeEnum locationType, OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, org.hibernate.Session session) -
searchPropertiesByColony
public List<PropertyLite> searchPropertiesByColony(OfferingTypeEnum offering, PropertyTypeEnum type, String state, String municipality, String colony, int lim, int cur, org.hibernate.Session session) -
findWithColonyPathAsLite
public List<PropertyLiteResult> findWithColonyPathAsLite(org.hibernate.Session session, FiltersBigQuery filter, String stateName, String municipalyName, String colonyName, int level, Integer limit, Integer offset) -
countWithColonyPath
public Long countWithColonyPath(org.hibernate.Session session, FiltersBigQuery filter, String stateName, String municipalyName, String colonyName, int level)
-