Skip to content

Commit

Permalink
add plantUML diagram (iluwatar#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejsvisockis committed Apr 1, 2024
1 parent 99bd30c commit f308c15
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions active-record/etc/active-record.urm.puml
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
@startuml
package com.iluwatar.activerecord {
abstract class RecordBase<T extends RecordBase<?>> {
- dataSource : DataSource
- clazz : Class<T>
+ setDataSource(DataSource) : void
# getConnection() : Connection
# abstract getTableName() : String
# abstract setFieldsFromResultSet(ResultSet rs) : void
# abstract setPreparedStatementParams(PreparedStatement pstmt) : void
+ findAll() : List<T>
+ findById(Long id): T
+ save() : void
+ delete() : void
- constructFindByIdQuery() : String
- constructFindAllQuery() : String
- getDeclaredClassInstance() : T
}

class Customer extends RecordBase {
- id : Long
- customerNumber : String
- firstName : String
- lastName : String
- List<Order> orders
+ getId() : Long
+ setId(Long id) : void
+ getCustomerNumber() : String
+ setCustomerNumber(String customerNumber) : void
+ getfirstName() : String
+ setFirstName(String firstName) : void
+ getLastName() : String
+ setLastName(String lastName) : void
+ findByNumber(String customerNumber) : Customer
+ addOrder(Order order) : void
}

class Order extends RecordBase {
- id : Long
- orderNumber : String
+ getId() : Long
+ setId(Long id) : void
+ getOrderNumber() : String
+ setOrderNumber(String orderNumber) : String
}
}
@enduml

0 comments on commit f308c15

Please sign in to comment.