File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,25 +101,32 @@ namespace OCA.Cookbook {
101101 Entity <|.. CategoryEntity
102102 Entity <|.. KeywordEntity
103103
104+ namespace Collections {
105+
106+ abstract class AbstractCollection<T extends Entity> {}
107+ class Recipes {}
108+ class Categories {}
109+ class Keywords {}
110+
111+
112+ AbstractCollection <|-- Recipes
113+ AbstractCollection <|-- Categories
114+ AbstractCollection <|-- Keywords
115+ }
116+
104117 }
105118
106119 namespace Db {
107120
108- abstract class AbstractDbWrapper<T extends OCA.Cookbook.Entity.impl.AbstractEntity> {
121+ abstract class AbstractDbWrapper {
109122 # IDbConnection db
110123 - array cache
111124 - bool cacheValid
112- --
113125 + abstract createEntity() : T
114126 # abstract fetchDatabase() : array
115127 + getEntites() : array
116128 # setCache(array) : void
117129 + getServiceLocator() : DbWrapperSerciveLocator
118- ..
119- + store(T) : void
120- # abstract storeNew(T) : void
121- # abstract update(T) : void
122- + remove(T) : void
123130 }
124131 note right
125132 Cache represents the current state
@@ -204,5 +211,6 @@ namespace OCA.Cookbook {
204211
205212}
206213
214+ ArrayIterator <|-- OCA.Cookbook.Entity.Collections.AbstractCollection
207215
208216@enduml
You can’t perform that action at this time.
0 commit comments