21 lines
377 B
Plaintext
21 lines
377 B
Plaintext
@startuml
|
|
class Business {
|
|
- PersonDataAccess backend
|
|
}
|
|
PersonDataAccess <-left- Business : uses
|
|
|
|
interface PersonDataAccess {
|
|
+ store(Person p): void
|
|
+ retrieve(int id): Person
|
|
+ retrieveAll(): List<Person>
|
|
}
|
|
|
|
class PersonDataAccessMap implements PersonDataAccess {
|
|
- Map<int, Person> map
|
|
}
|
|
|
|
class PersonDataAccessSqlite implements PersonDataAccess {
|
|
- Sqlite db
|
|
}
|
|
|
|
@enduml |