EN · DE · RU · FR · ES

#275: ToDoDao.java

plugins/org.projectforge.plugins.todo/src/main/java/org/projectforge/plugins/todo/ToDoDao.java · Data Access Object (DAO) · 312 lines · 236 code · 47 comments · 29 blank

Part of the ToDo plugin. Data Access Object (DAO).

Data Access Object providing CRUD operations and database queries.

Structure

ToDoDaoclass : BaseDao.

Key dependencies: org.projectforge.business.configuration.ConfigurationService, org.projectforge.business.task.TaskDO, org.projectforge.business.task.TaskNode, org.projectforge.business.task.TaskTree, org.projectforge.business.task.TaskTreeHelper, org.projectforge.business.user.GroupDao, org.projectforge.business.user.UserDao, org.projectforge.framework.access.OperationType

Design Decisions

Gotchas & Pitfalls

Git History

CommitDescription
868d6abb72025 -> 2026 (minor edit, license header update)
63081666fSource file headers: 2024-> 2025. (minor edit, license header update)
0e449b8f1Fix leftover typos Found via codespell (minor edit, method changes)
f189d3418Migration stuff in progress... (all tests of all packages: OK). (minor edit, updated imports)
d18c899b5Refactoring of history entries, FlatDisplayHistoryEntries and DisplayHistoryEntries... (minor edit, updated imports)
5989b32fdBaseDao: mechanism of onChangeLister refactored.
1b50060c3BaseDao: renamed: get -> find, save -> insert, getList -> select, load -> select
3aeda5ef5Big change: all save|update|...InTrans renamed (InTrans removed). PfPesistenceContext as param not needed anymore (ThreadLocal is used instead). (all tests of all packages: OK).
67805f2fcThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renamed for avoiding mis-understandings in code).
b095e6f7d!!!!! Big change of Transaction handling: Re-uses PfPersistenceContext as much as possible (not yet finished). Tests doesn't yet run.