Class CollationIntegrityDao
java.lang.Object
com.atlassian.greenhopper.manager.lexorank.collation.CollationIntegrityDao
DAO for collation integrity check of LexoRankAO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCollationCheckRows
(long fieldId, long issueId, String[] ranks) Create rows used in collation check.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.findCollationCheckRows
(LexoRankDaoContext ctx, long fieldId, long issueId, int limit) Get all collation check rows with a specified key.
-
Field Details
-
ao
@Autowired protected com.atlassian.activeobjects.external.ActiveObjects ao
-
-
Constructor Details
-
CollationIntegrityDao
public CollationIntegrityDao()
-
-
Method Details
-
createCollationCheckRows
Create rows used in collation check.- Parameters:
fieldId
- used for storing UUID most significant bitsissueId
- used for storing UUID least significant bitsranks
- 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 contextfieldId
- used for storing UUID most significant bitsissueId
- used for storing UUID least significant bitslimit
- maximum number of rows to get- Returns:
- the list of rows
-
deleteCollationCheckRows
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 contextaos
- the specific rows to delete, or nulltimestamp
- time used for row deletion
-