Interface GetBeansService<DTO extends KeyDTO,​ENTITY extends KeyEntity,​KeyType extends Serializable,​SEARCH_BEAN extends SearchBean<DTO,​KeyType>>

    • Method Detail

      • findBeans

        org.springframework.data.domain.Page<DTO> findBeans​(SEARCH_BEAN searchBean,
                                                            boolean deepCopy,
                                                            int from,
                                                            int size)
        Method is used to retrieve list of GetBeansService objects based on GetBeansService if instance of GetBeansService is NULL the result of Page.empty().
        Parameters:
        searchBean - - search bean that used to search for Objects GetBeansService.
        deepCopy - - deepCopy of return objects.
        from - - paging - from element number
        size - - paging - size of page
        Returns:
        - Page of GetBeansService
      • find

        org.springframework.data.domain.Page<DTO> find​(SEARCH_BEAN searchBean,
                                                       int from,
                                                       int size)
        Method is used to retrieve list of GetBeansService objects based on GetBeansService if instance of GetBeansService is NULL the result of Page.empty().
        Parameters:
        searchBean - - search bean that used to search for Objects GetBeansService.
        from - - paging - from element number
        size - - paging - size of page
        Returns:
        - Page of GetBeansService
      • findBeans

        org.springframework.data.domain.Page<ENTITY> findBeans​(SEARCH_BEAN searchBean,
                                                               int from,
                                                               int size)
        Method is used to retrieve list of GetBeansService objects based on GetBeansService if instance of GetBeansService is NULL the result of Page.empty().
        Parameters:
        searchBean - - search bean that used to search for Objects GetBeansService.
        from - - paging - from element number
        size - - paging - size of page
        Returns:
        - Page of GetBeansService
      • countBeans

        int countBeans​(SEARCH_BEAN searchBean)
        method is used to retrieve number of objects that satisfied GetBeansService conditions.
        Parameters:
        searchBean - - input searchBean
        Returns:
        - number of objects that satisfy search bean conditions
      • get

        DTO get​(String id)
        Get DTO by Id from DB
        Parameters:
        id - - id of entity
        Returns:
        - null if id is null or no such object