public class SiteApprovalDAOHibernate extends EntityObjectDAOHibernate<SiteApproval> implements SiteApprovalDAO
logger
Constructor and Description |
---|
SiteApprovalDAOHibernate() |
Modifier and Type | Method and Description |
---|---|
List<SiteApproval> |
findAllForProfile(Profile profile) |
List<SiteApproval> |
findAlwaysAllow(User user) |
SiteApproval |
findBySite(User user,
Site site) |
protected Class<SiteApproval> |
getPersistentClass()
All subclasses of HibernateDAO must implement this method for
HibernateDao.load(long) to
work correctly |
void |
save(SiteApproval persistentObject)
Saves a new DAO object to the persistence store.
|
update
currentSession, load, remove, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load, remove, update
public void save(SiteApproval persistentObject) throws org.springframework.dao.DataAccessException
HibernateDao
save
in interface SiteApprovalDAO
save
in class EntityObjectDAOHibernate<SiteApproval>
persistentObject
- The object to save.org.springframework.dao.DataAccessException
- A persistence exception has occurred.public SiteApproval findBySite(User user, Site site)
findBySite
in interface SiteApprovalDAO
public List<SiteApproval> findAlwaysAllow(User user)
findAlwaysAllow
in interface SiteApprovalDAO
public List<SiteApproval> findAllForProfile(Profile profile)
findAllForProfile
in interface SiteApprovalDAO
protected Class<SiteApproval> getPersistentClass()
HibernateDao
HibernateDao.load(long)
to
work correctlygetPersistentClass
in class HibernateDao<SiteApproval>
Copyright © 2021 Atlassian. All rights reserved.