@ParametersAreNonnullByDefault public class HibernatePersonalInformationDao extends ConfluenceHibernateObjectDao<PersonalInformation> implements PersonalInformationDaoInternal, PersonalInformationBulkDao
HibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
Constructor and Description |
---|
HibernatePersonalInformationDao() |
Modifier and Type | Method and Description |
---|---|
Collection<PersonalInformation> |
bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
Bulk-fetches all PersonalInformation entities for the given UserKeys.
|
@NonNull List<Long> |
findIdsWithAssociatedUser() |
List<PersonalInformation> |
getAllByUser(@Nullable ConfluenceUser user)
Workaround for duplicate personal information.
|
protected PersonalInformation |
getByClassId(long id)
Retrieve the object with a particular id from the database.
|
PersonalInformation |
getById(long id)
Returns the personal information object with the given ID.
|
PersonalInformation |
getByUser(@Nullable ConfluenceUser user)
Fetches a personal information object for the specified user.
|
Class<PersonalInformation> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public PersonalInformation getByUser(@Nullable ConfluenceUser user)
PersonalInformationManager.getOrCreatePersonalInformation(User)
.getByUser
in interface PersonalInformationDao
public List<PersonalInformation> getAllByUser(@Nullable 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
protected PersonalInformation getByClassId(long id)
HibernateObjectDao
getByClassId
in class HibernateObjectDao<PersonalInformation>
id
- the id of the object to look uppublic Class<PersonalInformation> getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal<PersonalInformation>
public Collection<PersonalInformation> bulkFetchPersonalInformation(Collection<com.atlassian.sal.api.user.UserKey> userKeys)
bulkFetchPersonalInformation
in interface PersonalInformationBulkDao
PersonalInformation
object for each userCopyright © 2003–2020 Atlassian. All rights reserved.