|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.busyboxes.agoo.dao.impl.AbstractHibernateDAO
ch.busyboxes.agoo.dao.impl.WatchedFolderDAOImpl
@Transactional public class WatchedFolderDAOImpl
This is the Hibernate implementation of the WatchedFolder DAO
| Field Summary |
|---|
| Fields inherited from class ch.busyboxes.agoo.dao.impl.AbstractHibernateDAO |
|---|
hibernateTemplate |
| Constructor Summary | |
|---|---|
WatchedFolderDAOImpl()
|
|
| Method Summary | |
|---|---|
java.util.List<WatchedFile> |
addWatchedFilesToFolder(WatchedFolder watchedFolder,
java.util.List<java.lang.String> filePaths)
Add the given paths to the given watched folder |
void |
addWatchedFileToFolder(WatchedFolder watchedFolder,
java.lang.String filePath)
Add the given path to the given watched folder |
void |
deleteWatchedFolder(java.lang.Long folderId)
Delete the watched folder based on its id |
java.util.List<WatchedFolder> |
getAllWatchedFolders()
Returns the list of all watched folders |
WatchedFolder |
getWatchedFolderById(java.lang.Long folderId)
Gets a watched folder by ID |
void |
saveWatchedFolder(WatchedFolder watchedFolder)
Saves the given WatchedFolder |
| Methods inherited from class ch.busyboxes.agoo.dao.impl.AbstractHibernateDAO |
|---|
setSessionFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WatchedFolderDAOImpl()
| Method Detail |
|---|
public java.util.List<WatchedFolder> getAllWatchedFolders()
WatchedFolderDAO
getAllWatchedFolders in interface WatchedFolderDAOWatchedFolderDAO.getAllWatchedFolders()public void saveWatchedFolder(WatchedFolder watchedFolder)
WatchedFolderDAO
saveWatchedFolder in interface WatchedFolderDAOwatchedFolder - the watched folder to be savedWatchedFolderDAO.saveWatchedFolder(WatchedFolder)public WatchedFolder getWatchedFolderById(java.lang.Long folderId)
WatchedFolderDAO
getWatchedFolderById in interface WatchedFolderDAOfolderId - the watched folder ID
WatchedFolderDAO.getWatchedFolderById(Long)
public void addWatchedFileToFolder(WatchedFolder watchedFolder,
java.lang.String filePath)
WatchedFolderDAO
addWatchedFileToFolder in interface WatchedFolderDAOwatchedFolder - the watched folderfilePath - the path to the watched fileWatchedFolderDAO.addWatchedFileToFolder(WatchedFolder, String)
public java.util.List<WatchedFile> addWatchedFilesToFolder(WatchedFolder watchedFolder,
java.util.List<java.lang.String> filePaths)
WatchedFolderDAO
addWatchedFilesToFolder in interface WatchedFolderDAOwatchedFolder - the watched folderfilePaths - the paths to the watched file
WatchedFolderDAO#addWatchedFilesToFolder(WatchedFolder, List) public void deleteWatchedFolder(java.lang.Long folderId)
WatchedFolderDAO
deleteWatchedFolder in interface WatchedFolderDAOfolderId - the watched folder IDWatchedFolderDAO.deleteWatchedFolder(Long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||