Interface WithSaveAndFlush<T extends IdentifiableEntity>
-
- All Known Subinterfaces:
DelayedNotificationDataRepository
,DownloadDetailRepository
,ExternalAccountRepository
,NotificationResourceDataRepository
,PersonalizationRepository
,QuotaRepository
,SPGroupRepository
,SPUserRepository
,TicketRepository
- All Known Implementing Classes:
BasicJpaEntityRepository
,ContributionTrackingRepository
,DefaultCalendarEventOccurrenceRepository
,DefaultCalendarEventRepository
,DefaultReminderRepository
,DelayedNotificationDataJpaRepository
,DelayedNotificationUserSettingJpaRepository
,DocumentPermalinkJpaRepository
,DownloadDetailJpaRepository
,ErrorRepository
,ExternalAccountJpaRepository
,HistoryStepRepository
,NotificationResourceDataJpaRepository
,PdcAxisValueRepository
,PdcClassificationRepository
,PersistentResourceTokenJPARepository
,PersonalizationJPARepository
,POPUPMessageBeanRepository
,ProcessInstanceRepository
,QuotaJPARepository
,RatingRepository
,ServerMessageBeanRepository
,SILVERMAILMessageBeanRepository
,SPGroupJpaRepository
,SPUserJpaRepository
,TicketJpaRepository
,UserSettingsRepository
,VersionPermalinkJpaRepository
public interface WithSaveAndFlush<T extends IdentifiableEntity>
This interface is dedicated to repositories that want to support a way to both save the entity into the persistence context and then to flush it to the underlying data source. Usually, a such operation isn't required as at the end of the transaction the persistence context in Silverpeas is synchronized with the underlying data sources. Nevertheless, in some context, it could be necessary to explicit flush the persistence context with a more global transaction in order the entity to be ready to be used for others transactions.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
saveAndFlush(T entity)
Saves the specified entity and then flushes the persistence context into the underlying data sources.
-