Interface IDataProviderDao<T extends IDataProviderEntity>

Type Parameters:
T - entity type for this provider
All Known Subinterfaces:
IGroupAdminDataProviderDao<T>
All Known Implementing Classes:
AppointmentDao, BaseFileItemDao, ConfigurationDao, ExtraMenuDao, FileItemDao, GroupDao, GroupUserDao, InvitationDao, LabelDao, LdapConfigDao, MailMessageDao, OAuth2Dao, OmCalendarDao, PrivateMessageDao, PrivateMessageFolderDao, RecordingDao, RoomDao, UserDao

@Transactional public interface IDataProviderDao<T extends IDataProviderEntity>
General interface to perform CRUD operations on entities
Author:
swagner
  • Method Details

    • 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, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<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