org.shredzone.repowatch.repository.hib
Class DomainDAOHibImpl
java.lang.Object
org.shredzone.repowatch.repository.hib.BaseDAOHibImpl<Domain>
org.shredzone.repowatch.repository.hib.DomainDAOHibImpl
- All Implemented Interfaces:
- BaseDAO<Domain>, DomainDAO
@Repository
@Transactional
public class DomainDAOHibImpl
- extends BaseDAOHibImpl<Domain>
- implements DomainDAO
A Hibernate implementation of DomainDAO.
- Version:
- $Revision: 328 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainDAOHibImpl
public DomainDAOHibImpl()
fetch
@Transactional(readOnly=true)
public Domain fetch(long id)
- Description copied from interface:
BaseDAO
- Fetches the entity with the given ID.
- Specified by:
fetch in interface BaseDAO<Domain>
- Parameters:
id - Entity ID
- Returns:
- Entity
findAllDomains
@Transactional(readOnly=true)
public List<Domain> findAllDomains()
- Description copied from interface:
DomainDAO
- Returns a list of all domains registered with the database.
- Specified by:
findAllDomains in interface DomainDAO
- Returns:
- List of all
Domain entities.
findDomain
@Transactional(readOnly=true)
public Domain findDomain(String name,
String release)
- Description copied from interface:
DomainDAO
- Finds a domain with the given name and release string.
- Specified by:
findDomain in interface DomainDAO
- Parameters:
name - Name of the domainrelease - Release string
- Returns:
Domain with that name and release, or null
if there is none.
Copyright © 2007-2011
shredzone.org. All Rights Reserved.