クラス JpaEventPublicationRepository
java.lang.ObjectSE
org.springframework.modulith.events.jpa.JpaEventPublicationRepository
- 実装済みのインターフェース一覧:
EventPublicationRepository
@Transactional
@Repository
class JpaEventPublicationRepository
extends ObjectSE
implements EventPublicationRepository
TargetEventPublication を保存するリポジトリ。- 作成者:
- Oliver Drotbohm, Dmitry Belyaev, Bj ö rn Kieling, Cora Iberkleid
ネストされたクラスの概要
インターフェース org.springframework.modulith.events.core.EventPublicationRepository から継承されたネストクラス / インターフェース
EventPublicationRepository.FailedCriteriaコンストラクター概要
コンストラクターコンストラクター説明JpaEventPublicationRepository(jakarta.persistence.EntityManager entityManager, EventSerializer serializer, CompletionMode completionMode) 方法の概要
修飾子と型メソッド説明intcountByStatus(EventPublication.Status status) 指定されたステータスのEventPublicationの数を返します。create(TargetEventPublication publication) 指定されたTargetEventPublicationを永続化します。voidすでに完了としてマークされているパブリケーションをすべて削除します。void完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。voiddeletePublications(ListSE<UUIDSE> identifiers) 指定された識別子を持つすべてのパブリケーションを削除します。findByStatus(EventPublication.Status status) 指定されたEventPublication.Statusを持つすべてのTargetEventPublicationを返します。現在システム内で見つかった完了したイベントパブリケーションをすべて返します。まだ完了していないすべてのTargetEventPublicationを返します。findIncompletePublicationsByEventAndTargetIdentifier(ObjectSE event, PublicationTargetIdentifier targetIdentifier) 指定された直列化されたイベントおよびリスナー ID の不完全なTargetEventPublicationを返します。完了しておらず、指定されたInstantSE より前に公開されたすべてのTargetEventPublicationを返します。ClassSE<? extends JpaEventPublication>完了したイベント公開を表す型を返します。voidmarkCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) 指定されたイベントおよびPublicationTargetIdentifierのパブリケーションが指定されたInstantSE で完了するようにマークします。voidmarkCompleted(UUIDSE identifier, InstantSE completionDate) 指定された識別子を持つ出版物を、指定されたInstantSE で完了したものとしてマークします。voidmarkFailed(UUIDSE identifier) 指定された識別子を持つEventPublicationを失敗としてマークします。voidmarkProcessing(UUIDSE identifier) 指定された識別子を持つEventPublicationを処理中としてマークします。booleanmarkResubmitted(UUIDSE identifier, InstantSE resubmissionDate) 指定された識別子を持つEventPublicationを再送信済みとしてマークします。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.modulith.events.core.EventPublicationRepository から継承されたメソッド
markCompleted
コンストラクターの詳細
JpaEventPublicationRepository
public JpaEventPublicationRepository(jakarta.persistence.EntityManager entityManager, EventSerializer serializer, CompletionMode completionMode) - パラメーター:
entityManager- null であってはなりません。serializer- null であってはなりません。
方法の詳細
create
インターフェースからコピーされた説明:EventPublicationRepository指定されたTargetEventPublicationを永続化します。- 次で指定:
- インターフェース
EventPublicationRepository内のcreate - パラメーター:
publication- null であってはなりません。- 戻り値:
- null になることはありません。
markProcessing
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つEventPublicationを処理中としてマークします。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkProcessing - パラメーター:
identifier- null であってはなりません。- 関連事項:
markCompleted
public void markCompleted(ObjectSE event, PublicationTargetIdentifier identifier, InstantSE completionDate) インターフェースからコピーされた説明:EventPublicationRepository指定されたイベントおよびPublicationTargetIdentifierのパブリケーションが指定されたInstantSE で完了するようにマークします。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkCompleted - パラメーター:
event- null であってはなりません。identifier- null であってはなりません。completionDate- null であってはなりません。- 関連事項:
markCompleted
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つ出版物を、指定されたInstantSE で完了したものとしてマークします。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkCompleted - パラメーター:
identifier- null であってはなりません。completionDate- null であってはなりません。- 関連事項:
markFailed
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つEventPublicationを失敗としてマークします。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkFailed - パラメーター:
identifier- null であってはなりません。- 関連事項:
markResubmitted
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つEventPublicationを再送信済みとしてマークします。更新が成功しなかった場合は false を返します。これは通常、識別されたインスタンスが別のアプリケーションインスタンスによって再送信要求されている可能性があることを意味します。- 次で指定:
- インターフェース
EventPublicationRepository内のmarkResubmitted - パラメーター:
identifier- null であってはなりません。resubmissionDate- null であってはなりません。- 戻り値:
- 指定された識別子を持つ
EventPublicationが再送信済みとしてマークされているかどうか。 - 関連事項:
findIncompletePublications
インターフェースからコピーされた説明:EventPublicationRepositoryまだ完了していないすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublications - 戻り値:
- null になることはありません。
findIncompletePublicationsPublishedBefore
@Transactional(readOnly=true) public ListSE<TargetEventPublication> findIncompletePublicationsPublishedBefore(InstantSE instant) インターフェースからコピーされた説明:EventPublicationRepository完了しておらず、指定されたInstantSE より前に公開されたすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublicationsPublishedBefore - パラメーター:
instant- null であってはなりません。- 戻り値:
- null になることはありません。
findIncompletePublicationsByEventAndTargetIdentifier
@Transactional(readOnly=true) public OptionalSE<TargetEventPublication> findIncompletePublicationsByEventAndTargetIdentifier(ObjectSE event, PublicationTargetIdentifier targetIdentifier) インターフェースからコピーされた説明:EventPublicationRepository指定された直列化されたイベントおよびリスナー ID の不完全なTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindIncompletePublicationsByEventAndTargetIdentifier - パラメーター:
event- null であってはなりません。targetIdentifier- null であってはなりません。- 戻り値:
- null になることはありません。
findCompletedPublications
インターフェースからコピーされた説明:EventPublicationRepository現在システム内で見つかった完了したイベントパブリケーションをすべて返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindCompletedPublications - 戻り値:
- null になることはありません。
findFailedPublications
public ListSE<TargetEventPublication> findFailedPublications(EventPublicationRepository.FailedCriteria criteria) - 次で指定:
- インターフェース
EventPublicationRepository内のfindFailedPublications - パラメーター:
criteria- null であってはなりません。- 戻り値:
- null になることはありません。
deletePublications
インターフェースからコピーされた説明:EventPublicationRepository指定された識別子を持つすべてのパブリケーションを削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeletePublications - パラメーター:
identifiers- null であってはなりません。
deleteCompletedPublications
public void deleteCompletedPublications()インターフェースからコピーされた説明:EventPublicationRepositoryすでに完了としてマークされているパブリケーションをすべて削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeleteCompletedPublications
deleteCompletedPublicationsBefore
インターフェースからコピーされた説明:EventPublicationRepository完了日が指定された日より前の、すでに完了済みとしてマークされているパブリケーションをすべて削除します。- 次で指定:
- インターフェース
EventPublicationRepository内のdeleteCompletedPublicationsBefore - パラメーター:
instant- null であってはなりません。
findByStatus
インターフェースからコピーされた説明:EventPublicationRepository指定されたEventPublication.Statusを持つすべてのTargetEventPublicationを返します。- 次で指定:
- インターフェース
EventPublicationRepository内のfindByStatus - パラメーター:
status- null であってはなりません。- 戻り値:
- null になることはありません。
countByStatus
インターフェースからコピーされた説明:EventPublicationRepository指定されたステータスのEventPublicationの数を返します。- 次で指定:
- インターフェース
EventPublicationRepository内のcountByStatus - パラメーター:
status- null であってはなりません。- 戻り値:
- 否定的であってはならない
getCompletedEntityType
完了したイベント公開を表す型を返します。- 戻り値:
- null になることはありません。
- 導入:
- 1.3