ReleaseEventsRepository
The ReleaseEventsRepository
interface is useful to manage the queries for the events of the releases
Author
N7ghtm4r3 - Tecknobit
See also
JpaRepository
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + ASSET_UPLOADING_EVENTS_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to delete an existing asset uploading event (AssetUploadingEvent)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + REJECTED_RELEASE_EVENTS_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to delete an existing rejected release event (RejectedReleaseEvent)
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + RELEASE_EVENTS_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to delete an existing release event
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + ASSETS_UPLOADED_KEY +
" ("
+ IDENTIFIER_KEY + ","
+ ASSET_URL_KEY + ","
+ ASSET_UPLOADING_EVENT_IDENTIFIER_KEY + ","
+ NAME_KEY +
" )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + ASSET_URL_KEY + ","
+ ":" + ASSET_UPLOADING_EVENT_IDENTIFIER_KEY + ","
+ ":" + NAME_KEY
+ ")", nativeQuery = true)
Method to execute the query to insert a new asset uploaded (AssetUploaded)
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + ASSET_UPLOADING_EVENTS_KEY +
" ("
+ IDENTIFIER_KEY + ","
+ RELEASE_EVENT_DATE_KEY + ","
+ RELEASE_IDENTIFIER_KEY + ","
+ RELEASE_EVENT_STATUS_KEY + ","
+ COMMENT_KEY
+ " )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + RELEASE_EVENT_DATE_KEY + ","
+ ":" + RELEASE_IDENTIFIER_KEY + ","
+ ":" + RELEASE_EVENT_STATUS_KEY + ","
+ ":" + COMMENT_KEY
+ ")", nativeQuery = true)
Method to execute the query to insert a new asset uploading event (AssetUploadingEvent)
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + REJECTED_RELEASE_EVENTS_KEY +
" ("
+ IDENTIFIER_KEY + ","
+ RELEASE_EVENT_DATE_KEY + ","
+ RELEASE_IDENTIFIER_KEY + ","
+ RELEASE_EVENT_STATUS_KEY + ","
+ REASONS_KEY
+ " )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + RELEASE_EVENT_DATE_KEY + ","
+ ":" + RELEASE_IDENTIFIER_KEY + ","
+ ":" + RELEASE_EVENT_STATUS_KEY + ","
+ ":" + REASONS_KEY
+ ")", nativeQuery = true)
Method to execute the query to insert a new rejected release event (RejectedReleaseEvent)
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + RELEASE_EVENTS_KEY +
" ("
+ IDENTIFIER_KEY + ","
+ RELEASE_EVENT_DATE_KEY + ","
+ RELEASE_IDENTIFIER_KEY + ","
+ RELEASE_EVENT_STATUS_KEY
+ " )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + RELEASE_EVENT_DATE_KEY + ","
+ ":" + RELEASE_IDENTIFIER_KEY + ","
+ ":" + RELEASE_EVENT_STATUS_KEY + ")", nativeQuery = true)
Method to execute the query to insert a new release event
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + ASSET_UPLOADING_EVENTS_KEY + " SET "
+ COMMENTED_KEY + "= '1'"
+ " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to set as commented the last AssetUploadingEvent