Skip to content

Commit 4083e95

Browse files
Added collection classes to UML
Signed-off-by: Christian Wolf <github@christianwolf.email>
1 parent 78f94e6 commit 4083e95

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

documentation/uml/dbwrappers.txt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)