Class GitSyncLogDaoImpl

Object
AbstractJPADao<GitSyncLog,Long>
GitSyncLogDaoImpl
All Implemented Interfaces:
Dao<GitSyncLog,Long>, GitSyncLogDao

@Repository public class GitSyncLogDaoImpl extends AbstractJPADao<GitSyncLog,Long> implements GitSyncLogDao
  • Constructor Details

    • GitSyncLogDaoImpl

      public GitSyncLogDaoImpl()
  • Method Details

    • findRecentByRepo

      public List<GitSyncLog> findRecentByRepo(String repoFullName, int limit)
      Description copied from interface: GitSyncLogDao
      Returns the most recent log entries for the given repository, ordered newest first.
      Specified by:
      findRecentByRepo in interface GitSyncLogDao
    • findReposByArtifactKey

      public Set<String> findReposByArtifactKey(String keyword)
      Description copied from interface: GitSyncLogDao
      Returns the distinct repo full names that have ever synced an artifact whose key contains the given keyword (case-insensitive).
      Specified by:
      findReposByArtifactKey in interface GitSyncLogDao
    • pruneRepo

      @Transactional(propagation=REQUIRED) public void pruneRepo(String repoFullName, int keepCount)
      Description copied from interface: GitSyncLogDao
      Deletes the oldest rows for the repository, keeping only the keepCount most recent.
      Specified by:
      pruneRepo in interface GitSyncLogDao