In most cases, Adapter classes are sufficient to perform database related operations. However, it's possible that there are entities related to other entities through foreign key associations and, in such cases, it is desirable to provide Data Access Classes to facilitate fetching data from multiple entities. For instance, for the User Business Object Type, at least one Data Access Object class is required:
DAO Class name |
Operation Name |
Description |
---|---|---|
UserDAO |
searchAllUsers |
Searches all the users in the system |
searchAllToDos |
Search all the related to-do items for a user |
|
searchAllToDoLinks |
Search all the related to-do item links for a user |
|
searchAllNotes |
Search all the related note items for a user |
|
searchAllNoteLinks |
Search all the related note item links for a user |
|
searchAllCategories |
Search all the related categories for notes that are associated with a user |