| sample.dms.DocumentDao
All known Subclasses: sample.dms.DocumentDaoImpl,
DocumentDao | public interface DocumentDao (Code) | | author: Ben Alex version: $Id: DocumentDao.java 1784 2007-02-24 21:00:24Z luke_t $ |
create | public void create(AbstractElement element)(Code) | | Creates an entry in the database for the element.
Parameters: element - an unsaved element (the "id" will be updated after method is invoked) |
delete | public void delete(File file)(Code) | | Removes a file from the database for the specified element.
Parameters: file - the file to remove (cannot be null) |
findElements | public AbstractElement[] findElements(Directory directory)(Code) | | Locates elements in the database which appear under the presented directory
Parameters: directory - the directory (cannot be null - use Directory.ROOT_DIRECTORY for root) zero or more elements in the directory (an empty array may be returned - never null) |
update | public void update(File file)(Code) | | Modifies a file in the database.
Parameters: file - the file to update (cannot be null) |
|
|