Fragment Repository
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Query(value = "SELECT DISTINCT ON (runningid) * from Fragment WHERE variantid = :variantID
AND open = :isOpen
ORDER BY runningid DESC
LIMIT :limit", nativeQuery = true )
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun findFragmentByVariantIDAndVariantTime(variantID: String, variantTime: Timestamp): List<Fragment>
Link copied to clipboard
Link copied to clipboard
@Query(value = "SELECT f.* from Fragment f
WHERE f.variantID = :variantID AND f.runningID = :runningID AND f.instance_dataid is NULL
AND f.open = :isOpen", nativeQuery = true )
Link copied to clipboard
@Query(value = "SELECT DISTINCT ON (running_time, variantID) * from Fragment f WHERE f.variantID = :variantID AND running_time = ( SELECT MAX(running_time) FROM Fragment f1 WHERE f1.variantID = :variantID)
AND f.open = :isOpen
ORDER BY running_time DESC, variantID
LIMIT 1", nativeQuery = true )
Link copied to clipboard
@Query(value = "SELECT DISTINCT ON (running_time, variantID) f.* from Fragment f WHERE f.variant_name = :variantName AND running_time = ( SELECT MAX(running_time) FROM Fragment f1 WHERE f1.variant_name = :variantName)
AND f.open = :isOpen
ORDER BY running_time DESC, variantID
LIMIT :limit", nativeQuery = true )
Link copied to clipboard
@Query(value = "SELECT * from Fragment f WHERE f.variant_time = :variantTime AND running_time = ( SELECT MAX(running_time) FROM Fragment f1 WHERE f1.variant_time = :variantTime)
AND f.open = :isOpen
ORDER BY running_time DESC
LIMIT :limit", nativeQuery = true )
Link copied to clipboard
@Query(value = "SELECT DISTINCT ON (variantID) * FROM Fragment f
WHERE f.open = :isOpen
limit :limit", nativeQuery = true )
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard