com.atlassian.crowd.openid.server.model.record
Class AuthRecordDAOHibernate
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
com.atlassian.crowd.util.persistence.hibernate.HibernateDao
com.atlassian.crowd.openid.server.model.EntityObjectDAOHibernate
com.atlassian.crowd.openid.server.model.record.AuthRecordDAOHibernate
- All Implemented Interfaces:
- EntityObjectDAO, AuthRecordDAO, ObjectDao, org.springframework.beans.factory.InitializingBean
public class AuthRecordDAOHibernate
- extends EntityObjectDAOHibernate
- implements AuthRecordDAO
|
Method Summary |
java.util.List |
findRecords(User user)
Finds all the AuthRecords for a given user. |
java.util.List |
findRecords(User user,
int startIndex,
int numRecords)
Finds a subset of the AuthRecords for a given user. |
int |
findTotalRecords(User user)
Finds the total number of authentication records
that exist for a given user. |
java.lang.Class |
getPersistentClass()
All subclasses of HibernateDAO must implement this method for HibernateDao.load(long) to
work correctly |
| Methods inherited from class org.springframework.orm.hibernate3.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 |
AuthRecordDAOHibernate
public AuthRecordDAOHibernate()
getPersistentClass
public java.lang.Class getPersistentClass()
- Description copied from class:
HibernateDao
- All subclasses of HibernateDAO must implement this method for
HibernateDao.load(long) to
work correctly
- Specified by:
getPersistentClass in interface ObjectDao- Specified by:
getPersistentClass in class HibernateDao
- Returns:
- Class
findRecords
public java.util.List findRecords(User user)
- Description copied from interface:
AuthRecordDAO
- Finds all the AuthRecords for a given user.
The records are sorted descendingly based on time.
- Specified by:
findRecords in interface AuthRecordDAO
- Parameters:
user - owner of the authentication records.
- Returns:
- List.
findRecords
public java.util.List findRecords(User user,
int startIndex,
int numRecords)
- Description copied from interface:
AuthRecordDAO
- Finds a subset of the AuthRecords for a given user.
The records are sorted descendingly based on time.
- Specified by:
findRecords in interface AuthRecordDAO
- Parameters:
user - owner of the authentication records.startIndex - the start index of the record set. A startIndex of 0 implies the first record.numRecords - the maximum number of records to include in the set.
- Returns:
- List.
findTotalRecords
public int findTotalRecords(User user)
- Description copied from interface:
AuthRecordDAO
- Finds the total number of authentication records
that exist for a given user.
- Specified by:
findTotalRecords in interface AuthRecordDAO
- Parameters:
user - owner of the authentication records.
- Returns:
- number of authentication records.
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.