Package org.cxbox.core.dao
Interface AnySourceBaseDAO<E>
- All Known Implementing Classes:
AbstractAnySourceBaseDAO
public interface AnySourceBaseDAO<E>
-
Method Summary
Modifier and TypeMethodDescriptionvoidassociate(BusinessComponent bc, String parentId, List<String> childs) longcreate(BusinessComponent bc, E entity) Should not be used anywhere except ofAbstractAnySourceBaseDAOvoidDelete entity in anySource systemShould be used to explicitly update/create in anySource system by custom actionGet from First Level Cache or from anySource system (if cache is empty)Should not be used anywhere except ofAbstractAnySourceBaseDAOorg.springframework.data.domain.Page<E>getList(BusinessComponent bc, QueryParameters queryParameters) voidsetWithFirstLevelCache(BusinessComponent bc, E entity) Put to First Level Cacheupdate(BusinessComponent bc, E entity) Should not be used anywhere except ofAbstractAnySourceBaseDAO
-
Method Details
-
generateId
String generateId() -
getId
-
setId
-
getByIdIgnoringFirstLevelCache
Should not be used anywhere except ofAbstractAnySourceBaseDAO -
delete
Delete entity in anySource system -
getList
org.springframework.data.domain.Page<E> getList(BusinessComponent bc, QueryParameters queryParameters) - Parameters:
queryParameters- get filtering parameters from UI (not contains parent-child relationship or security specification)
-
count
-
getById
Get from First Level Cache or from anySource system (if cache is empty) -
setWithFirstLevelCache
Put to First Level Cache -
update
Should not be used anywhere except ofAbstractAnySourceBaseDAO -
flush
Should be used to explicitly update/create in anySource system by custom action -
create
Should not be used anywhere except ofAbstractAnySourceBaseDAO -
associate
-