Class CollationIntegrityDao

java.lang.Object
com.atlassian.greenhopper.manager.lexorank.collation.CollationIntegrityDao

@Service public class CollationIntegrityDao extends Object
DAO for collation integrity check of LexoRankAO
  • Field Details

    • ao

      @Autowired protected com.atlassian.activeobjects.external.ActiveObjects ao
  • Constructor Details

    • CollationIntegrityDao

      public CollationIntegrityDao()
  • Method Details

    • createCollationCheckRows

      public LexoRankAO[] createCollationCheckRows(long fieldId, long issueId, String[] ranks)
      Create rows used in collation check.
      Parameters:
      fieldId - used for storing UUID most significant bits
      issueId - used for storing UUID least significant bits
      ranks - a list of rank values created
    • findCollationCheckRows

      public List<LexoRankRow> findCollationCheckRows(LexoRankDaoContext ctx, long fieldId, long issueId, int limit)
      Get all collation check rows with a specified key.
      Parameters:
      ctx - the context
      fieldId - used for storing UUID most significant bits
      issueId - used for storing UUID least significant bits
      limit - maximum number of rows to get
      Returns:
      the list of rows
    • deleteCollationCheckRows

      public void deleteCollationCheckRows(LexoRankDaoContext ctx, LexoRankAO[] aos, long timestamp)
      Delete two categories of collation check rows - those passed to this function directly - any other rows that are older than the given time, to avoid any accumulation of rows.
      Parameters:
      ctx - the context
      aos - the specific rows to delete, or null
      timestamp - time used for row deletion