Class CommitHibernateDao

java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
All Implemented Interfaces:
CommitDao, BambooObjectDao<Commit>, org.springframework.beans.factory.InitializingBean

public class CommitHibernateDao extends BambooHibernateObjectDao<Commit> implements CommitDao
  • Constructor Details

    • CommitHibernateDao

      public CommitHibernateDao()
  • Method Details

    • scrollCommitsForExport

      public long scrollCommitsForExport(@NotNull @NotNull Consumer<Commit> consumer)
      Description copied from interface: CommitDao
      Scroll through and execute function for each of Commit Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.
      Specified by:
      scrollCommitsForExport in interface CommitDao
      Parameters:
      consumer - consumer to accept on each of the Commit
      Returns:
      number of traversed rows
    • getCommitsForResult

      @NotNull public @NotNull List<Commit> getCommitsForResult(@NotNull @NotNull ResultsSummary resultsSummary)
      Specified by:
      getCommitsForResult in interface CommitDao
      Parameters:
      resultsSummary - ResultsSummary which associated commits have to be returned
      Returns:
      commits for the given ResultsSummary
    • getCommitsForUser

      @NotNull public @NotNull List<UnassociatedCommit> getCommitsForUser(@NotNull @NotNull String username, int max)
      Description copied from interface: CommitDao
      Find recent commits for a given user.
      Specified by:
      getCommitsForUser in interface CommitDao
      Parameters:
      username - to find commits for (based on author -> username association)
      max - maximum number of entries to retrieve
      Returns:
      Representation of the commit.