Class ConflictDaoImpl
java.lang.Object
ch.tocco.nice2.optional.conflict.impl.ConflictDaoImpl
- All Implemented Interfaces:
ConflictDao
-
Constructor Summary
ConstructorDescriptionConflictDaoImpl
(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) void
saveConflicts
(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:ConflictDao
Saves 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:
saveConflicts
in interfaceConflictDao
- Throws:
InterruptedException
-
loadEntity
Description copied from interface:ConflictDao
Looks up the conflict entity either in conception state or it is loaded from the db.- Specified by:
loadEntity
in interfaceConflictDao
-
mapConflictEntity
- Specified by:
mapConflictEntity
in interfaceConflictDao
-