com.atlassian.confluence.user.persistence.dao.hibernate
Class HibernatePersonalInformationDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
                  extended by com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
                      extended by com.atlassian.confluence.user.persistence.dao.hibernate.HibernatePersonalInformationDao
All Implemented Interfaces:
ObjectDao, VersionedObjectDao, PersonalInformationDao, org.springframework.beans.factory.InitializingBean

public class HibernatePersonalInformationDao
extends ConfluenceHibernateObjectDao
implements PersonalInformationDao


Field Summary
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
cacheFactory, confluenceUserDao
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernatePersonalInformationDao()
           
 
Method Summary
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(ConfluenceUser user)
          Fetches a personal information object for the specified user.
 PersonalInformation getByUsername(java.lang.String username)
          Deprecated. since 5.2. Use getByUser(com.atlassian.confluence.user.ConfluenceUser) instead.
 java.lang.Class<PersonalInformation> getPersistentClass()
           
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResult
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

HibernatePersonalInformationDao

public HibernatePersonalInformationDao()
Method Detail

getByUser

public PersonalInformation getByUser(ConfluenceUser user)
Fetches a personal information object for the specified user. To get a properly initialized personal information object, please use PersonalInformationManager.getOrCreatePersonalInformation(User).

Specified by:
getByUser in interface PersonalInformationDao
Since:
5.2

getByUsername

@Deprecated
public PersonalInformation getByUsername(java.lang.String username)
Deprecated. since 5.2. Use getByUser(com.atlassian.confluence.user.ConfluenceUser) instead.

Specified by:
getByUsername in interface PersonalInformationDao

getById

public PersonalInformation getById(long id)
Description copied from interface: PersonalInformationDao
Returns the personal information object with the given ID.

Specified by:
getById in interface PersonalInformationDao

getByClassId

protected PersonalInformation getByClassId(long id)
Description copied from class: HibernateObjectDao
Retrieve the object with a particular id from the database. The object must be of the same class as the DAO's getPersistentClass() method returns.

Overrides:
getByClassId in class HibernateObjectDao
Parameters:
id - the id of the object to look up
Returns:
the corresponding object, or null if the object does not exist with the appropriate class and id.

getPersistentClass

public java.lang.Class<PersonalInformation> getPersistentClass()
Specified by:
getPersistentClass in interface ObjectDao


Copyright © 2003-2014 Atlassian. All Rights Reserved.