I’ve been looking for ways to encapsulate CRUD (Create, Retrieve, Update, Delete) for reuse. I’ve not found much on the need that deals with file / database manipulation under that search term [OOP CRUD …] beyond use within a commercial package.
As such, setting up extensible classes for CRUD apparently is not common. Alternatively, I can envision setting up interfaces by the names of “Crudable” or, at even a finer granularity, “Creatable”, “Retrievable”, “Updatable” and “Deletable” but I don’t find those out there either. And I frankly don’t see what it would buy me.
Is the current wisdom to imbed the CRUD logic in-line where it’s needed?