Package com.flower.docs.dao.api
Interface GenericDAO<T>
-
- All Known Subinterfaces:
ACLDAO
,ComponentClassDAO<T>
,ComponentDAO<T>
,DelegationDAO
,DocumentDAO
,FileDAO
,FolderDAO
,StoredSearchDAO
,TagCategoryDAO
,TagClassDAO
,TaskDAO
,VirtualFolderDAO
,WorkflowDAO
public interface GenericDAO<T>
Generic Data Acess Object which allows to manipulate objects from a data store into aScope
- Author:
- Christopher Laszczuk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(java.util.List<com.flower.docs.domain.common.Id> ids)
Deletes a list of objectsjava.util.List<T>
fetch(java.util.List<com.flower.docs.domain.common.Id> ids)
Fetches a list of objectsvoid
store(java.util.List<T> objects)
Stores a list ofComponent
void
update(java.util.List<T> objects)
Updates a list of objects
-
-
-
Method Detail
-
store
void store(java.util.List<T> objects) throws com.flower.docs.domain.exception.TechnicalException
Stores a list ofComponent
- Parameters:
objects
- The objects to store- Throws:
com.flower.docs.domain.exception.TechnicalException
- If a error occurred while storing
-
fetch
java.util.List<T> fetch(java.util.List<com.flower.docs.domain.common.Id> ids) throws com.flower.docs.domain.exception.TechnicalException
Fetches a list of objects- Parameters:
ids
- The unique identifiers of objects to fetch- Returns:
- The fetch objects
- Throws:
com.flower.docs.domain.exception.TechnicalException
- If an error occurred while fetching
-
update
void update(java.util.List<T> objects) throws com.flower.docs.domain.exception.TechnicalException
Updates a list of objects- Parameters:
objects
- The objects to update- Throws:
com.flower.docs.domain.exception.TechnicalException
- If an error occurred while updating
-
delete
void delete(java.util.List<com.flower.docs.domain.common.Id> ids) throws com.flower.docs.domain.exception.TechnicalException
Deletes a list of objects- Parameters:
ids
- The unidque identifiers of objects to delete- Throws:
com.flower.docs.domain.exception.TechnicalException
- If an error occurred while deleting
-
-