org.shredzone.repowatch.repository.hib
Class DomainDAOHibImpl

java.lang.Object
  extended by org.shredzone.repowatch.repository.hib.BaseDAOHibImpl<Domain>
      extended by 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 $

Constructor Summary
DomainDAOHibImpl()
           
 
Method Summary
 Domain fetch(long id)
          Fetches the entity with the given ID.
 List<Domain> findAllDomains()
          Returns a list of all domains registered with the database.
 Domain findDomain(String name, String release)
          Finds a domain with the given name and release string.
 
Methods inherited from class org.shredzone.repowatch.repository.hib.BaseDAOHibImpl
delete, getCurrentSession, insert, merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shredzone.repowatch.repository.BaseDAO
delete, insert, merge
 

Constructor Detail

DomainDAOHibImpl

public DomainDAOHibImpl()
Method Detail

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 domain
release - Release string
Returns:
Domain with that name and release, or null if there is none.


Copyright © 2007-2011 shredzone.org. All Rights Reserved.