Class ConflictDaoImpl
java.lang.Object
ch.tocco.nice2.optional.conflict.impl.ConflictDaoImpl
- All Implemented Interfaces:
ConflictDao
-
Constructor Summary
ConstructorsConstructorDescriptionConflictDaoImpl(Context context, QueryBuilderFactory queryBuilderFactory, CreatedEntitiesPool createdEntitiesPool, CalendarManager calendarManager, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionloadEntity(String id, @Nullable Context ctx) Looks up the conflict entity either in conception state or it is loaded from the db.mapConflictEntity(Entity conflictEntity) voidsaveConflicts(Collection<Conflict> conflicts, @Nullable Context ctx) Saves the conflicts in the database.
-
Constructor Details
-
ConflictDaoImpl
public ConflictDaoImpl(Context context, QueryBuilderFactory queryBuilderFactory, CreatedEntitiesPool createdEntitiesPool, CalendarManager calendarManager, SecurityManager securityManager)
-
-
Method Details
-
saveConflicts
public void saveConflicts(Collection<Conflict> conflicts, @Nullable @Nullable Context ctx) throws InterruptedException Description copied from interface:ConflictDaoSaves the conflicts in the database. If a conflict is already present it is returned in the new result set. Otherwise the two sets are equal.- Specified by:
saveConflictsin interfaceConflictDao- Throws:
InterruptedException
-
loadEntity
Description copied from interface:ConflictDaoLooks up the conflict entity either in conception state or it is loaded from the db.- Specified by:
loadEntityin interfaceConflictDao
-
mapConflictEntity
- Specified by:
mapConflictEntityin interfaceConflictDao
-