public abstract class TransactionWrappingFinder<T> extends Object implements com.atlassian.confluence.api.service.finder.SingleFetcher<T>, com.atlassian.confluence.api.service.finder.ManyFetcher<T>
SingleFetcher and
ManyFetcher methods in a
transaction template, so that we ensure all results are returned in (at least) the same read only
transaction.
TODO: move this to core, so ContentProperty and CreateContent can share the same class.| Constructor and Description |
|---|
TransactionWrappingFinder(com.atlassian.confluence.api.service.finder.SingleFetcher<T> singleFetcherDelegate,
com.atlassian.confluence.api.service.finder.ManyFetcher<T> manyFetcherDelegate,
com.atlassian.confluence.spring.transaction.interceptor.TransactionalHostContextAccessor hostContextAccessor) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.confluence.api.model.pagination.PageResponse<T> |
fetchMany(com.atlassian.confluence.api.model.pagination.PageRequest request) |
com.atlassian.fugue.Option<T> |
fetchOne() |
T |
fetchOneOrNull() |
public TransactionWrappingFinder(com.atlassian.confluence.api.service.finder.SingleFetcher<T> singleFetcherDelegate, com.atlassian.confluence.api.service.finder.ManyFetcher<T> manyFetcherDelegate, com.atlassian.confluence.spring.transaction.interceptor.TransactionalHostContextAccessor hostContextAccessor)
public com.atlassian.confluence.api.model.pagination.PageResponse<T> fetchMany(com.atlassian.confluence.api.model.pagination.PageRequest request) throws com.atlassian.confluence.api.service.exceptions.NotFoundException
fetchMany in interface com.atlassian.confluence.api.service.finder.ManyFetcher<T>com.atlassian.confluence.api.service.exceptions.NotFoundExceptionpublic com.atlassian.fugue.Option<T> fetchOne()
fetchOne in interface com.atlassian.confluence.api.service.finder.SingleFetcher<T>Copyright © 2017 Atlassian. All rights reserved.