ch.busyboxes.agoo.dao.impl
Class WatchedFileDAOImpl
java.lang.Object
ch.busyboxes.agoo.dao.impl.AbstractHibernateDAO
ch.busyboxes.agoo.dao.impl.WatchedFileDAOImpl
- All Implemented Interfaces:
- WatchedFileDAO
@Transactional
public class WatchedFileDAOImpl
- extends AbstractHibernateDAO
- implements WatchedFileDAO
This is the Hibernate implementation of the WatchedFile DAO
- Author:
- julien@busyboxes.ch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WatchedFileDAOImpl
public WatchedFileDAOImpl()
saveWatchedFile
public void saveWatchedFile(WatchedFile file)
- Description copied from interface:
WatchedFileDAO
- Saves the given watched file
- Specified by:
saveWatchedFile
in interface WatchedFileDAO
- Parameters:
file
- the watched file to be saved- See Also:
WatchedFileDAO.saveWatchedFile(WatchedFile)
getTotalFilesWatched
public long getTotalFilesWatched()
- Description copied from interface:
WatchedFileDAO
- Returns the total number of files watched
- Specified by:
getTotalFilesWatched
in interface WatchedFileDAO
- Returns:
- total number of files watched
- See Also:
WatchedFileDAO.getTotalFilesWatched()
getWatchedFileById
public WatchedFile getWatchedFileById(java.lang.Long fileId)
- Description copied from interface:
WatchedFileDAO
- Gets a watched file by ID
- Specified by:
getWatchedFileById
in interface WatchedFileDAO
- Parameters:
fileId
- the watched file ID
- Returns:
- the watched file
- See Also:
WatchedFileDAO.getWatchedFileById(Long)
getWatchedFilesByFolderPaged
public java.util.List<WatchedFile> getWatchedFilesByFolderPaged(java.lang.Long folderId,
int filesPerPage,
int page)
- Description copied from interface:
WatchedFileDAO
- Returns the files associated with the given folder using paging
- Specified by:
getWatchedFilesByFolderPaged
in interface WatchedFileDAO
- Parameters:
folderId
- the folder's idfilesPerPage
- the number of files per pagepage
- the page number
- Returns:
- the list of watched files
- See Also:
WatchedFileDAO#getWatchedFilesByFolderPaged(Long, int, Integer)
Copyright © 2009. All Rights Reserved.