- 博客(1)
- 资源 (6)
- 收藏
- 关注
原创 Dao层设计
在MVC架构中,Service层负责业务逻辑实现,Dao层负责和数据库交互。那么Dao层就有两种设计角度,以业务驱动和以数据驱动。以业务驱动,即每种业务都有对应的数据查询,Dao的接口也依据业务需求来定。比如按条件查询数据,若service中收到的根据业务制定的查询类为A,那么Dao中就应有根据A来查询的接口。这样设计,如果A和Dao中直接能用的查询类一致还好说。如果不一致,则Dao还需将A转换成它
2015-12-23 23:59:46 407
JavaTM Memory Model and Thread
This document is the public review version of the JSR-133 specification, the Java Memory
Model (JMM) and Thread Specification. This specification is intended to be part of the JSR-
176 umbrella for the Tiger (1.5) release of Java, and is intended to replace Chapter 17 of
the Java Language Specification and Chapter 8 of the Java Virtual Machine Specification.
The current document has been written generically to apply to both, the final version will
include two different versions, essentially identical in semantics but using the appropriate
terminology for each.
2013-08-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人