|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.shredzone.repowatch.repository.hib
Class VersionDAOHibImpl
java.lang.Objectorg.shredzone.repowatch.repository.hib.BaseDAOHibImpl<Version>
org.shredzone.repowatch.repository.hib.VersionDAOHibImpl
- All Implemented Interfaces:
- BaseDAO<Version>, VersionDAO
@Repository @Transactional public class VersionDAOHibImpl
- extends BaseDAOHibImpl<Version>
- implements VersionDAO
- extends BaseDAOHibImpl<Version>
A Hibernate implementation of VersionDAO.
- Version:
- $Revision: 328 $
| Constructor Summary | |
|---|---|
VersionDAOHibImpl()
|
|
| Method Summary | |
|---|---|
void |
deleteAllVersionsForRepository(Repository repository)
Deletes all versions refering to the given repository. |
Version |
fetch(long id)
Fetches the entity with the given ID. |
List<Version> |
findAllVersions(Package pack)
Returns all versions for a Package. |
List<Version> |
findAllVersions(Repository repo)
Returns all versions of a Repository. |
List<Version> |
findAllVersions(Repository repo,
int start,
int limit)
Returns all versions of a Repository. |
List<Version> |
findAllVersionsExcept(String name,
Package pack)
Finds all versions for a given package name, but keeps out the given package. |
List<Version> |
findAllVersionsForName(String name)
Finds all versions for a given package name. |
List<Version> |
findLastSeenBefore(Repository repo,
Date now)
Finds all versions for a given Repository which are not
deleted and were last seen before the given date. |
| 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 |
|---|
VersionDAOHibImpl
public VersionDAOHibImpl()
| Method Detail |
|---|
fetch
@Transactional(readOnly=true) public Version fetch(long id)
- Description copied from interface:
BaseDAO - Fetches the entity with the given ID.
- Parameters:
id- Entity ID- Returns:
- Entity
findAllVersions
@Transactional(readOnly=true) public List<Version> findAllVersions(Repository repo)
- Description copied from interface:
VersionDAO - Returns all versions of a
Repository.- Specified by:
findAllVersionsin interfaceVersionDAO
- Parameters:
repo-Repository- Returns:
- A list of all
Versionentities.
findAllVersions
@Transactional(readOnly=true) public List<Version> findAllVersions(Repository repo, int start, int limit)
- Description copied from interface:
VersionDAO - Returns all versions of a
Repository.- Specified by:
findAllVersionsin interfaceVersionDAO
- Parameters:
repo-Repositorystart- First index to be returnedlimit- Maximum number of entities to be returned- Returns:
- A list of all
Versionentities.
findAllVersions
@Transactional(readOnly=true) public List<Version> findAllVersions(Package pack)
- Description copied from interface:
VersionDAO - Returns all versions for a
Package.- Specified by:
findAllVersionsin interfaceVersionDAO
findAllVersionsForName
@Transactional(readOnly=true) public List<Version> findAllVersionsForName(String name)
- Description copied from interface:
VersionDAO - Finds all versions for a given package name.
- Specified by:
findAllVersionsForNamein interfaceVersionDAO
- Parameters:
name- Package name- Returns:
- A list of all
Versionentities.
findAllVersionsExcept
@Transactional(readOnly=true) public List<Version> findAllVersionsExcept(String name, Package pack)
- Description copied from interface:
VersionDAO - Finds all versions for a given package name, but keeps out the given
package.
- Specified by:
findAllVersionsExceptin interfaceVersionDAO
findLastSeenBefore
@Transactional(readOnly=true) public List<Version> findLastSeenBefore(Repository repo, Date now)
- Description copied from interface:
VersionDAO - Finds all versions for a given
Repositorywhich are not deleted and were last seen before the given date.- Specified by:
findLastSeenBeforein interfaceVersionDAO
- Parameters:
repo-Repositorynow- Date limit- Returns:
- A list of all
Versionentities.
deleteAllVersionsForRepository
public void deleteAllVersionsForRepository(Repository repository)
- Description copied from interface:
VersionDAO - Deletes all versions refering to the given repository.
- Specified by:
deleteAllVersionsForRepositoryin interfaceVersionDAO
- Parameters:
repository-Repositoryto delete all versions of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
