Skip to content
Snippets Groups Projects

Document server code structure

Merged Daniel Hornung requested to merge f-doc-structure into dev
3 files
+ 46
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -30,8 +30,12 @@ Transactions are explained in detail in the :ref:`Transactions and Schedules<tra
.. uml::
@startuml
abstract AbstractCaosDBServerResource
class RetrieveEntityResource
abstract AbstractCaosDBServerResource {
{abstract} httpGetInChildClass()
{abstract} httpPostInChildClass()
{abstract} ...InChildClass()
}
abstract RetrieveEntityResource
class EntityResource
AbstractCaosDBServerResource <|-- RetrieveEntityResource
RetrieveEntityResource <|-- EntityResource
@@ -60,6 +64,43 @@ main packages which handle the backend:
method. These classes may use specific backend implementations (like for example the MySQL
implementations) to interact with the backend database.
.. uml::
@startuml
together {
abstract BackendTransaction {
HashMap impl // stores all implementations
abstract execute()
}
note left of BackendTransaction::impl
Stores the
implementation
for each
interface."
end note
package ...backend.interfaces {
interface GetIDByNameImpl {
abstract execute(String name, String role, String limit)
}
}
}
together {
package ...backend.transaction {
class GetIDByName extends BackendTransaction {
execute()
}
}
package ...backend.implementation.MySQL {
class MySQLGetIDByName implements GetIDByNameImpl {
execute(String name, String role, String limit)
}
}
}
GetIDByName::execute --r-> MySQLGetIDByName
@enduml
.. _transactions:
Transactions and Schedules
Loading