@ParametersAreNonnullByDefault public class CachingPersonalInformationDao extends DelegatingObjectDaoInternal<PersonalInformation> implements PersonalInformationDaoInternal, PersonalInformationBulkDao
There is a potential race condition in the cache, where creating two personal information objects at approximately the same time will lead to this cache returning the
Constructor and Description |
---|
CachingPersonalInformationDao(PersonalInformationDaoInternal delegateDao,
com.atlassian.vcache.VCacheFactory cacheFactory) |
Modifier and Type | Method and Description |
---|---|
Collection<PersonalInformation> |
bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
Delegates immediately to the database, and then adds each of the results to the cache.
|
@NonNull List<Long> |
findIdsWithAssociatedUser() |
List<PersonalInformation> |
getAllByUser(ConfluenceUser user)
Workaround for duplicate personal information.
|
PersonalInformation |
getById(long id)
Returns the personal information object with the given ID.
|
PersonalInformation |
getByUser(ConfluenceUser user)
Fetches the personal information object for this user.
|
void |
remove(com.atlassian.core.bean.EntityObject object)
Remove object from persistence.
|
void |
removeEntity(PersonalInformation objectToRemove)
Remove object from persistence.
|
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, getPersistentClass, refresh, refreshEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public CachingPersonalInformationDao(PersonalInformationDaoInternal delegateDao, com.atlassian.vcache.VCacheFactory cacheFactory)
public PersonalInformation getByUser(ConfluenceUser user)
PersonalInformationDao
getByUser
in interface PersonalInformationDao
public List<PersonalInformation> getAllByUser(ConfluenceUser user)
PersonalInformationDao
getAllByUser
in interface PersonalInformationDao
public PersonalInformation getById(long id)
PersonalInformationDao
getById
in interface PersonalInformationDao
public @NonNull List<Long> findIdsWithAssociatedUser()
findIdsWithAssociatedUser
in interface PersonalInformationDao
public Collection<PersonalInformation> bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
bulkFetchPersonalInformation
in interface PersonalInformationBulkDao
PersonalInformation
object for each userpublic void remove(com.atlassian.core.bean.EntityObject object)
ObjectDaoInternal
remove
in interface ObjectDao
remove
in interface ObjectDaoInternal<PersonalInformation>
remove
in class DelegatingObjectDaoInternal<PersonalInformation>
public void removeEntity(PersonalInformation objectToRemove)
ObjectDaoInternal
removeEntity
in interface ObjectDaoInternal<PersonalInformation>
removeEntity
in class DelegatingObjectDaoInternal<PersonalInformation>
Copyright © 2003–2021 Atlassian. All rights reserved.