Interface IDataProviderDao<T extends IDataProviderEntity>

    • Method Detail

      • get

        T get​(Long id)
        Get an instance of an IDataProviderDao
        Parameters:
        id - - id of instance to retrieve
        Returns:
        instance with the id gived
      • get

        default T get​(long id)
      • get

        List<T> get​(long start,
                    long count)
        Get a list of instances of IDataProviderDao
        Parameters:
        start - - the start to range to retrieve
        count - - maximum instance count to retrieve
        Returns:
        list of instances in the range specified
      • get

        List<T> get​(String search,
                    long start,
                    long count,
                    String order)
        Get a list of instances of IDataProviderDao
        Parameters:
        search - - string search criteria to filter entities
        start - - the start to range to retrieve
        count - - maximum instance count to retrieve
        order - - column and sort order
        Returns:
        list of instances in the range specified
      • count

        long count()
        Count the number of instances of IDataProviderDao
        Returns:
        count of instances
      • count

        long count​(String search)
        Count the number of instances of IDataProviderDao
        Parameters:
        search - - string search criteria to filter entities
        Returns:
        count of instances satisfying given search criteria
      • update

        T update​(T entity,
                 Long userId)
        Update an instance of IDataProviderDao
        Parameters:
        entity - - entity to be updated
        userId - - user performed update
        Returns:
        - updated entity
      • delete

        void delete​(T entity,
                    Long userId)
        Delete an instance of IDataProviderDao
        Parameters:
        entity - - entity to be deleted
        userId - - user performed delete