UML类图
2021-12-15 16:34:00 175 举报
UML类图是一种用于描述系统结构和关系的静态视图,它展示了系统中的类、接口、关联关系、继承关系等元素。在UML类图中,每个类都由一个矩形表示,类名位于矩形的中心,属性和方法分别列在类的上下两行。类之间的关联关系用实线表示,箭头指向被关联的类;继承关系用空心三角形表示,箭头指向父类。此外,UML类图还可以展示接口和实现、抽象类和具体类等其他复杂关系。通过UML类图,开发人员可以更好地理解系统的设计和结构,从而有效地进行软件分析和设计。
作者其他创作
大纲/内容
CartServlet
-bookService:BookService
Page<T>
+PAGE_SIZE:Integer-pageNo:Integer -pageTotal:Integer -pageSize=PAGE_SIZE:Integer -pageTotal:Integer- items:List<T>-url:String
+getPageNo(): Integer+getPageTotal():Integer+getPageSize():Integer+getPageTotal():Integer+getItems():List<T>+getUrl():String+setPageNo(Integer): void+setPageTotal(Integer):void+setPageSize(Integer):void+setPageTotal(Integer):void+setItems(List<T>):void+setUrl(String):void+toString():String
ClientBookServlet
BookDao
Order
-orderId:String -createTime:Date -price:BigDecimal -status:Integer -userId:Integer
+getId( ):Integer+getCreateTime( ):Date+getPrice( ):BigDecimal+getStatus( ):Integer+getUserId( ):Integer+setId( ):Integer+setCreateTime( ):Date+setPrice( ):BigDecimal+setStatus( ):Integer+setUserId( ):Integer+toString( ):String
OrderItemDao
+saveOrderItem(OrderItem):int+queryOrderDetailByOrderId(String ):List<OrderItem>
OrderDaoImpl
Book
-id :Integer-name:String-author:String-price:BigDecimal-sales:Integer-stock:Integer-imgPath:String
+getAuthor( ):String+getId( ):Integer+getImgPath( ):String+getName( ):String+getPrice( ):BigDecimal+getSales( ):Integer+getStock( ):Integer+setAuthor(String ):void+setId(Integer ):void+setImgPath( String):void+setName( String):void+setPrice(BigDecimal ):void+setSales( Integer):void+setStock( Integer):void+toString() :String
BookService
OrderService
RegistServlet
-userService:UserService
JdbcUtils
-dataSource:DruidDataSource -conns:ThreadLocal<Connection>
+getConnection():Connection+commitAndClose():void+rollbackAndClose():void
Cart
UserDao
ManagerFilter
BaseDao
-queryRunner:QueryRunner
OrderItem
- id:Integer-name:String -count:Integer -prie:BigDecimal -totalPrice:BigDecimal -orderId:String
+getId( ):Integer+getName( ):String+getCount( ):Integer+getPrice( ):BigDecimal+getTotalPrice( ):BigDecimal+getOrderId( ):String+setId(Integer ):void+setName(String ):void+setCount(Integer ):void+setPrice(BigDecimal ):void+setTotalPrice(BigDecimal ):void+setOrderId(String ):void+toString( ):String
BookServiceImpl
-bookDao:BookDao
BaseServlet
OrderServiceImpl
-orderDao :OrderDao - orderItemDao :OrderItemDao- bookDao :BookDao
UserServiceImpl
-userDao:UserDao
+ registUser(User );void +login(User ):User+existsUsername(String ):boolean
TransactionFilter
LoginServlet
-userService:UserService
UserServlet
UserService
BookServlet
WebUtils
OrderDao
CartItem
-id:Integer -name:String -count:Integer -price:BigDecimal-totalPrice:BigDecimal
+getId( ):Integer+getName( ):String+getCount( ):Integer+getPrice( ):BigDecimal+getTotalPrice( ):BigDecimal+setId(Integer ):void+setName(String ):void+setCount(Integer ):void+setPrice(BigDecimal ):void+setTotalPrice(BigDecimal ):void+toString( ):String
OrderServlet
-orderService:OrderService
User
-id:Integer -username:String -password:String -email:String
+getId( ):Integer+getName( ):String+getPassword( ):String+getEmail( ):String+setId(Integer ):void+setName(String ):void+setPassword(String ):void+setEmail(String ):void+toString( ):String
0 条评论
下一页