{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

Java EE核心框架实战

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

Java EE核心框架实战

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

《Java EE核心框架实战》旨在提高读者的学习效率,增强其项目实战能力。为此,《Java EE核心框架实战》摒弃了软件公司中不常用或不实用的技术,而是采用近200个开发案例,为读者讲解了开发商业软件的必备知识,帮组读者进行“精要”式的学习,汲取JavaEE的思想,正确地进行项目实战。
《Java EE核心框架实战》涵盖了MyBatis 3、Struts 2、Ajax+JSON、Spring 4 MVC、Hibernate 4、Spring 4、WebLogic+EJB3等主流JavaEE框架的核心开发技术,介绍了MVC框架的原理实现、上传、下载、数据验证、国际化、多模块分组开发、转发/重定向;JSON的解析;将Ajax及JSON和MVC框架进行整合开发;ORM框架的CURD及MyBatis和Hibernate中映射文件的使用;Spring 4中的IOC及AOP技术;企业中常使用的Struts 2、Spring 4 MVC、MyBatis 3、Hibernate 4、Spring 4整合开发,以及通过WebLogic+EJB3深入学习JavaEE的体系结构等实用内容。
《Java EE核心框架实战》语言简洁,示例丰富,适合具有一定Java编程基础的读者阅读,以及使用Java进行软件开发、测试的从业人员阅读。
Author Description

高洪岩,毕业于东北电力大学计算机科学与技术专业,获得软件工程硕士学位。曾任职于大连东软软件公司、北京中软、中国海洋石油集团、中国石化,现工作于教育与技术之间,喜欢分享,乐于学习。
Catalogue

目录

第1章MyBatis 3操作数据库1
1.1MyBatis介绍1
1.2MyBatis操作数据库的步骤2
1.2.1使用XML配置文件创建SqlSessionFactory对象3
1.2.2SqlSessionFactoryBuilder和SqlSessionFactory类的结构4
1.2.3使用MyBatis Generator工具逆向5
1.2.4使用SqlSession对象在MsSql数据库中新建记录7
1.2.5使用SqlSession对象在Oracle数据库中新建记录10
1.3使用MyBatis针对3种数据库(Oracle、MSSQL和MySQL)实现CURD10
1.3.1针对Oracle的CURD10
1.3.2针对MSSQL的CURD17
1.3.3针对MySQL的CURD20
1.4MyBatis核心对象的生命周期与封装22
1.4.1创建GetSqlSessionFactory.java类23
1.4.2创建GetSqlSession.java类24
1.4.3创建DBOperate.java类25
1.4.4创建userinfoMapping.xml映射文件25
1.4.5创建连接数据库的mybatis-config.xml配置文件26
1.4.6创建名为test的Servlet对象26
1.4.7添加记录及异常回滚的测试27
1.4.8删除记录29
1.4.9更改记录30
1.4.10查询单条记录31
1.4.11查询多条记录32

第2章MyBatis 3常用技能33
2.1MyBatis 3的SQL映射文件33
2.2连接DB数据库的参数来自于Properties对象33
2.3标签34
2.4标签35
2.5将SQL语句作为字符串变量传入37
2.6动态SQL的使用38
2.6.1插入null值时的处理第1种方法——jdbcType38
2.6.2插入null值时的处理第2种方法——39
2.6.3标签的使用40
2.6.4标签的使用42
2.6.5标签的使用43
2.7插入超大的字符串文本内容45
2.8分页46

第3章Struts 2必备开发技能48
3.1使用Struts 2进行登录功能的开发48
3.1.1为什么要使用MVC48
3.1.2准备JAR文件54
3.1.3创建Web项目、添加jar文件及配置web.xml文件55
3.1.4创建控制层Controller文件——Login.java56
3.1.5创建业务逻辑层Model文件——UserinfoService.java57
3.1.6创建视图层View文件——login.jsp57
3.1.7添加核心配置文件struts.xml及解释58
3.1.8添加ok.jsp和no.jsp登录结果文件59
3.1.9运行项目59
3.1.10Struts 2的拦截器60
3.1.11Struts 2的数据类型自动转换64
3.2MVC框架的开发模型71
3.2.1基础知识准备1——解析并创建xml文件71
3.2.2基础知识准备2——Java的反射74
3.2.3实现MVC模型——自定义配置文件77
3.2.4实现MVC模型——ActionMapping.java封装信息78
3.2.5实现MVC模型——ResultMapping.java以封装信息78
3.2.6实现MVC模型——管理映射信息的ActionMappingManager.java对象79
3.2.7实现MVC模型——创建反射Action的ActionManager.java对象81
3.2.8实现MVC模型——创建核心控制器ActionServlet.java81
3.2.9实现MVC模型——创建Action接口及控制层Controller实现类83
3.2.10实现MVC模型——创建视图层V对应的JSP文件84
3.2.11实现MVC模型——在web.xml中配置核心控制器86
3.2.12实现MVC模型——运行结果86
3.3Struts 2的刷新验证功能86
3.3.1Action接口87
3.3.2Validateable和ValidationAware接口88
3.3.3TextProvider和LocaleProvider接口88
3.3.4使用ActionSupport实现有刷新的验证89
3.4对Struts 2有刷新验证的示例进行升级91
3.4.1加入xml配置来屏蔽自动生成的table/tr/td代码92
3.4.2解决“出错信息不能自动显示”的问题93
3.5用标签显示全部出错信息96
3.6出错信息进行传参及国际化98
3.6.1创建info_en_US.properties和info_zh_CN.properties属性文件98
3.6.2在JSP文件中显示国际化的静态文本101
3.6.3在JSP文件中显示国际化的静态文本时传递参数102
3.6.4在Action中使用国际化功能103
3.7用实体类封装URL中的参数——登录功能的URL封装105
3.8Struts 2中的转发操作107
3.8.1Servlet中的转发操作107
3.8.2Struts 2中的转发操作107
3.9由Action重定向到Action——参数109
3.9.1何种情况下使用重定向109
3.9.2新建起始控制层Login.java109
3.9.3新建目的控制层List.java110
3.9.4在struts.xml文件中配置重定向的重点110
3.9.5新建显示列表的JSP文件111
3.10由Action重定向到Action——有参数112
3.10.1何种情况下需要重定向传递参数112
3.10.2新建起始控制层Login.java文件112
3.10.3更改struts.xml配置文件113
3.10.4新建目的控制层List.java文件113
3.10.5用JSTL和EL在JSP文件中输出数据114
3.11让Struts 2支持多模块多配置文件开发115
3.11.1新建4个模块的控制层115
3.11.2新建3个模块的配置文件116
3.11.3使用include标记导入多个配置文件118
3.11.4创建各模块使用的JSP文件118
3.11.5运行各模块的结果119
3.12在Action中有多个业务方法时的处理120
3.12.1第一种实现方式——通过url叹号“!”参数120
3.12.2第二种实现方式——在action标记中加入method属性122
3.13自定义全局result124
3.13.1新建全局result实例和控制层代码124
3.13.2声明全局result对象125
3.13.3部署项目并运行126
3.14在Action中使用Servlet的API(紧耦版)126
3.14.1将数据放到不同的作用域中126
3.14.2从不同作用域中取值128
3.15在Action中使用Servlet的API(松耦版)128
3.15.1新建控制层128
3.15.2新建JSP视图129
3.16Session与Cookie在request与response对象中的运行机制130
3.17在MyEclipse中使用Web Service135

第4章Struts 2文件的上传与下载141
4.1使用Struts 2进行单文件上传141
4.1.1Struts 2上传功能的底层依赖141
4.1.2新建上传文件的JSP文件141
4.1.3新建上传文件的控制层Register.java文件142
4.1.4Action中File实例的命名规则143
4.1.5设置上传文件的大小143
4.1.6设计struts.xml配置文件143
4.1.7成功上传单个文件144
4.2使用Struts 2进行多文件上传145
4.2.1新建上传多个文件的JSP145
4.2.2设计上传的控制层代码145
4.2.3成功上传多个文件147
4.3使用属性驱动形式的文件上传148
4.3.1创建上传多个文件的JSP148
4.3.2设计上传文件的控制层149
4.3.3新建上传文件的封装类150
4.3.4将JSP文件中s:file标签的name属性进行更改151
4.3.5以属性驱动方式成功上传多个文件152
4.4用Struts 2实现下载文件的功能(支持中文文件名)153
4.4.1新建下载文件的JSP文件153
4.4.2新建下载文件的控制层文件154
4.4.3更改struts.xml配置文件155
4.4.4成功下载中文文件名的文件155

第5章JSON、Ajax、jQuery与Struts 2联合使用156
5.1JSON介绍156
5.2用JSON创建对象157
5.2.1用JSON创建对象的语法格式157
5.2.2在JSP中用JSON创建对象157
5.2.3运行结果157
5.3用JSON创建字符串的限制158
5.3.1需要转义的特殊字符158
5.3.2在JSP中对JSON特殊字符进行转义158
5.3.3运行结果159
5.4用JSON创建数字类型的语法格式159
5.4.1在JSP中用JSON创建数字类型160
5.4.2运行结果160
5.5用JSON创建数组对象的语法格式160
5.5.1在JSP中用JSON创建数组对象161
5.5.2运行结果161
5.6用JSON创建嵌套的对象类型161
5.7将对象转换成JSON字符串162
5.7.1什么情况下需要将对象转换成JSON字符串162
5.7.2在JSP中用stringify方法将对象转换成JSON字符串163
5.8将对象转换成JSON字符串提交到Action并解析(以post方式提交)164
5.8.1在JSP中创建JSON和Ajax对象164
5.8.2用Action控制层接收通过Ajax传递过来的JSON字符串165
5.8.3运行结果166
5.8.4在控制台输出的数据166
5.9将对象转换成JSON字符串提交到Action并解析(以get方式提交)167
5.9.1新建创建JSON字符串的JSP文件167
5.9.2新建接收JSON字符串的Action控制层168
5.9.3运行结果168
5.9.4在控制台输出的数据169
5.10将数组转换成JSON字符串提交到Action并解析(以get和post方式提交)169
5.10.1在服务器端用get方法解析JSON字符串171
5.10.2在服务器端用post方法解析JSON字符串171
5.10.3运行结果172
5.10.4在控制台输出的数据172
5.11使用Ajax调用Action并生成JSON再传递到客户端(以get和post方式提交)173
5.11.1新建具有Ajax提交功能的JSP173
5.11.2在Action控制层创建List中存放的String176
5.11.3在Action控制层创建List中存放的Bean177
5.11.4在Action控制层创建Map中存放的String178
5.11.5在Action控制层创建Map中存放的Bean178
5.11.6单击不同的button按钮调用不同的Action179
5.12jQuery、JSON和Struts 2181
5.12.1jQuery框架的Ajax功能介绍181
5.12.2用jQuery的Ajax功能调用远程action(返回结果)181
5.12.3jQuery的Ajax方法的结构183
5.12.4用jQuery的Ajax功能调用远程action(有返回结果)184
5.12.5用jQuery的Ajax功能调用远程action并且传递JSON格式参数(有返回值)185
5.12.6用jQuery解析从action返回List中存放String的JSON字符串188

第6章Spring 4 MVC实用开发191
6.1Spring 4 MVC介绍191
6.1.1Spring 4 MVC核心控制器191
6.1.2基于注解的Spring 4 MVC开发192
6.2Spring 4 MVC的第一个登录测试193
6.2.1添加Spring 4 MVC的依赖jar文件193
6.2.2在web.xml中配置核心控制器193
6.2.3新建springMVC-servlet.xml配置文件193
6.2.4新建相关的JSP文件194
6.2.5新建控制层Java类文件195
6.2.6部署项目并运行195
6.2.7第一个示例的总结196
6.2.8Spring更加方便的参数获取方法196
6.3执行Controller控制层与限制提交的method方式197
6.3.1新建控制层ListUsername.java文件197
6.3.2新建登录及显示数据的JSP文件198
6.3.3部署项目并测试199
6.4解决多人开发路径可能重复的问题200
6.4.1错误的情况200
6.4.2解决办法201
6.5在控制层中使用指定方式处理get或post提交方式203
6.5.1控制层代码203
6.5.2新建JSP文件并运行204
6.6控制层重定向到控制层——参数传递205
6.6.1新建控制层Java文件205
6.6.2创建JSP文件并运行项目206
6.7控制层重定向到控制层——有参数传递206
6.7.1创建两个控制层Java文件207
6.7.2部署项目并运行207
6.8匹配URL路径执行指定Controller208
6.8.1新建控制层文件208
6.8.2部署项目并运行209
6.9在服务器端获取JSON字符串并解析——方式1210
6.9.1在web.xml中配置字符编码过滤器210
6.9.2新建JSP文件211
6.9.3新建控制层Java文件212
6.9.4添加依赖的jar包文件212
6.9.5运行项目213
6.10在服务器端获取JSON字符串并解析——方式2213
6.10.1新建封装JSON对象属性的实体类213
6.10.2新建控制层214
6.10.3在配置文件中添加注解214
6.10.4新建JSP文件215
6.10.5添加jacksonJSON解析处理类库并运行215
6.10.6解析不同格式的JSON字符串示例216
6.11将URL中的参数转成实体的示例218
6.11.1新建控制层文件218
6.11.2新建登录用途的JSP文件219
6.11.3在web.xml中注册编码过滤器219
6.11.4运行结果219
6.12在控制层传回JSON对象示例220
6.12.1新建控制层文件220
6.12.2新建JSP文件220
6.12.3部署项目并运行222
6.13在控制层传回JSON字符串示例222
6.13.1新建控制层文件222
6.13.2新建JSP文件及在配置文件中注册utf——8编码处理223
6.13.3运行项目224
6.14在控制层获取HttpServletRequest和HttpServletResponse对象224
6.14.1新建控制层224
6.14.2JSP文件中的EL代码及运行结果225
6.14.3直接使用HttpServletResopnse对象输出响应字符225
6.15通过URL参数访问指定的业务方法227
6.15.1新建控制层文件List.java227
6.15.2运行结果227
6.16Spring 4 MVC单文件上传——写法1228
6.16.1新建控制层228
6.16.2在配置文件springMVC-servlet.xml中声明上传请求229
6.16.3创建前台JPS文件229
6.16.4运行结果230
6.17Spring 4 MVC单文件上传——写法2230
6.18Spring 4 MVC多文件上传231
6.18.1新建控制层及JSP文件231
6.18.2运行结果232
6.19Spring 4 MVC支持下载文件名为中文的文件232
6.20控制层返回List对象及实体的结果233
6.20.1新建控制层文件233
6.20.2新建JSP文件234
6.20.3更改springMVC-servlet.xml配置文件234
6.20.4运行结果235
6.21控制层ModelMap对象236
6.21.1新建控制层236
6.21.2JSP文件代码236
6.21.3运行结果237
6.22对Spring 4 MVC提交的表单进行手动数据验证237
6.22.1创建控制层文件237
6.22.2创建JSP文件238
6.22.3运行结果238

第7章Spring 4 MVC必备知识239
7.1web.xml中的不同配置方法239
7.1.1将配置文件存放于src路径中239
7.1.2指定存放路径240
7.1.3指定多个配置文件240
7.2路径中添加通配符的功能241
7.3Service业务逻辑层在Controller中进行注入241
7.3.1新建业务逻辑层241
7.3.2创建控制层文件242
7.3.3设计springMVC-servlet.xml配置文件242
7.3.4运行结果242
7.3.5多个实现类的情况243
7.4对象ModelAndView的使用244
7.4.1创建控制层及JSP文件244
7.4.2程序运行结果244
7.5控制层返回void数据的情况245
7.5.1创建控制层及index.jsp文件245
7.5.2更改配置文件246
7.5.3部署项目并运行程序246
7.6使用Spring 4 MVC中的注解来操作HttpSession中的对象247
7.6.1创建控制层文件PutGetSession.java247
7.6.2创建显示不同作用域中值的JSP文件247
7.6.3部署项目并运行程序248

第8章Spring 4 MVC+MyBatis 3+Spring 4整合249
8.1准备Spring 4的jar包文件249
8.2准备MyBatis的jar包文件250
8.3准备MyBatis 3与Spring 4整合的jar文件250
8.4创建Web项目250
8.5配置web.xml文件251
8.6配置springMVC-servlet.xml文件252
8.7配置MyBatis配置文件252
8.8创建MyBatis与映射有关文件253
8.9配置applicationContext.xml文件254
8.10创建DAO对象255
8.11创建Service对象256
8.12创建Controller对象257
8.13测试整合效果258
8.14回滚的测试258

第9章用Hibernate 4操作数据库260
9.1Hibernate概述与优势260
9.2持久层与持久化与ORM261
9.3用MyEclipse开发第一个Hibernate示例262
9.3.1用MyEclipse Database Explorer工具连接Oracle 11g数据库263
9.3.2创建一个支持Hibernate4环境的Web项目265
9.3.3对数据表进行Hibernate逆向工程267
9.3.4逆向工程后的项目orm结构270
9.3.5使用Hibernate进行持久化273

第10章Hibernate 4核心技能274
10.1Configuration介绍274
10.2SessionFactory介绍275
10.3Session介绍275
10.4使用Session实现CURD操作275
10.4.1Session操作目标表USERINFO276
10.4.2逆向工程后的项目结构276
10.4.3新建添加记录的Servlet277
10.4.4新建查询记录的Servlet278
10.4.5新建更改记录的Servlet279
10.4.6新建删除记录的Servlet280
10.5在Hibernate中使用JNDI技术281
10.5.1备份Tomcat/conf路径下的配置文件281
10.5.2更改配置文件context.xml281
10.5.3更改配置文件web.xml281
10.5.4添加Hibernate框架配置的关键步骤282
10.5.5逆向工程282
10.5.6支持JNDI的hibernate.cfg.xml配置文件内容282
10.5.7创建查询数据的Servlet283
10.5.8部署项目并验证结果283
10.6缓存与实体状态283
10.6.1Hibernate的OID与缓存283
10.6.2Hibernate中的对象状态:瞬时状态、持久化状态和游离状态285
10.7双向一对多在MyEclipse中的实现285
10.7.1创建主表MAIN285
10.7.2创建子表SUB285
10.7.3添加主外键约束对象286
10.7.4设置主外键关系286
10.7.5逆向主从表外键关系287
10.7.6集合与多对一288
10.7.7新建主表main数据289
10.7.8新建子表SUB数据290
10.7.9删除子表SUB数据292
10.7.10删除主表MAIN数据293
10.8Hibernate备忘知识点294
10.9对主从表结构中的HashSet进行排序295
10.10Hibernate中延迟加载的调试实验295
10.10.1主从表表结构的设计295
10.10.2对省表和市表内容的填充295
10.10.3更改映射文件295
10.10.4新建测试用的Servlet对象296
10.10.5更改映射文件Sheng.hbm.xml296
10.11Hibernate中对Oracle中CLOB字段类型的读处理297
10.12Hibernate中的inverse与cascade的测试297

第11章在Hibernate 4中使用HQL语言进行检索302
11.1Hibernate的检索方式302
11.2HQL表别名305
11.3HQL对结果进行排序与list()和iterator()方法的区别306
11.4HQL索引参数绑定309
11.5HQL命名参数绑定与安全性309
11.6HQL方法链的使用311
11.7HQL中的uniqueResult()方法的使用311
11.8HQL中的Where子句与查询条件312
11.9HQL中的聚集函数:distinct、count、min、max、sum和avg314
11.10HQL中的分组查询316

第12章Spring 4的AOP和IOC318
12.1Spring介绍318
12.2Spring架构318
12.3IOC的介绍319
12.4AOP的介绍319
12.5IOC容器320
12.6使用传统方式保存数据功能的测试320
12.7使用Spring的IOC方式保存数据功能的测试321
12.8BeanFactory与ApplicationContext327
12.9Spring的IOC容器的注入类型327
12.9.1通过IOC容器注入基本数据类型327
12.9.2通过IOC容器注入引用数据类型330
12.9.3通过IOC容器注入null类型330
12.9.4通过IOC容器注入Properties类型332
12.9.5通过IOC容器对构造方法进行注入333
12.10Spring中Bean在Singleton和Prototype中的作用域335
12.11Spring中注入外部属性文件的属性值337
12.12Spring中多个applicationContext.xml配置文件的使用339
12.13AOP的概念与介绍342
12.13.1静态代理的实现342
12.13.2动态代理的实现344
12.14实现MethodBeforeAdvice接口——方法执行前增强345
12.15实现AfterReturningAdvice接口——方法执行后增强348
12.16实现MethodInterceptor接口——方法执行前后环绕增强350

第13章Struts 2+Hibernate 4+ Spring 4整合353
13.1目的353
13.2新建Oracle数据表userinfo353
13.2.1新建数据表userinfo353
13.2.2创建序列对象354
13.3新建整合用的Web项目354
13.4添加Struts 2框架支持环境354
13.4.1添加Struts 2框架354
13.4.2在web.xml文件中注册Struts 2的过滤器355
13.4.3在项目的src目录下创建struts.xml配置文件355
13.4.4添加Struts 2框架后的项目文件结构图356
13.5添加Hibernate Database Explorer数据库连接356
13.6添加Hibernate 4框架支持357
13.7添加Spring 4框架支持文件357
13.8创建的applicationContext.xml文件358
13.9在web.xml文件中添加Spring的utf-8编码过滤器和Spring监听器359
13.10添加Spring 4框架后的Web项目结构360
13.11对Oracle 11g数据表userinfo进行Hibernate逆向工程361
13.12创建Hibernate 4的DAO类362
13.13创建All_DAO对象363
13.14创建UserinfoService.java服务对象364
13.15创建AllService服务对象364
13.16继续更改applicationContext.xml和hibernate.cfg.xml365
13.17新建自定义action的父类BaseAction367
13.18新建操作userinfo表中数据的Action367
13.19在applicationContext.xml中配置/base和/test368
13.20部署到Tomcat容器370

第14章有状态/状态会话Bean和消息驱动Bean373
14.1EJB3概述373
14.1.1Java EE体系结构374
14.1.2容器的概念374
14.2有状态会话Bean和状态会话Bean375
14.2.1会话Bean的作用375
14.2.2会话Bean的种类375
14.2.3在MyEclipse中状态会话Bean的创建376
14.2.4用Web方式调用本地SayHello接口390
14.2.5本地和远程状态会话Bean的区别394
14.2.6EJB组件接口注解时的默认情况395
14.2.7调用远程类型的状态会话Bean396
14.2.8状态会话Bean的回调函数和生命周期401
14.2.9状态会话Bean实例变量值保留的问题与状态会话Bean实例池404
14.2.10有状态会话Bean409
14.2.11有状态会话Bean的创建与状态特性409
14.2.12将远程状态会话Bean共享的服务重命名416
14.2.13使用注解声明会话Bean的第2种写法418
14.2.14有状态会话Bean的钝化与激活419
14.2.15有状态会话Bean的回调函数和生命周期420
14.2.16有状态会话Bean的@Remove回调函数的使用425
14.2.17注入其他本地类型的EJB对象428
14.3消息驱动Java Bean(MDB)和在WebLogic中创建消息目的430
14.3.1创建持久性存储对象431
14.3.2创建JMS服务器433
14.3.3创建JMS模块435
14.3.4在JMS模块中创建子部署437
14.3.5在JMS模块中创建资源439
14.3.6点对点式消息驱动Java Bean441
14.3.7发布-订阅式消息驱动Java Bean445
14.4Web Service与在EJB3中创建基于Web Service的业务服务450
14.5计时器与作业调度463

第15章实体Bean466
15.1实体Bean概述466
15.2持久层、持久化与ORM466
15.2.1在WebLogic的JNDI树中创建节点与对象469
15.2.2在WebLogic的JNDI树中创建子节点475
15.2.3在WebLogic的JNDI树中查找节点477
15.2.4在WebLogic的JNDI树中删除节点478
15.3从保存记录开始479
15.3.1安装Oracle11g数据库479
15.3.2使用Toad管理Oracle数据库479
15.3.3使用MyEclipse Database Explorer工具连接Oracle11G数据库486
15.3.4创建EJB3项目489
15.3.5更改实体的主键与序列映射492
15.3.6创建调用外观的Serlvet493
15.3.7更改persistence.xml配置文件493
15.3.8KODO的简要介绍494
15.3.9部署到WebLogic中并且运行494
15.3.10使用JPA技术向Oracle 11g数据库成功添加记录494
15.3.11改成JNDI连接池的示例495
15.4解析实体类所使用的注解501
15.5在SQL 2005数据库中插入记录501
15.6在MySQL数据库中插入记录504
15.7使用表在Oracle数据库中生成主键505
15.8使用EJB3在Oracle中插入Date时间类型508
15.9处理CLOB数据类型510
15.10在WebLogic中实现JDBC+JNDI全局性分布式事务实验510
15.10.1JTA和2PC的概述510
15.10.2进入WebLogic控制台511
15.10.3配置数据源名称511
15.10.4配置数据源属性512
15.10.5设置数据源连接数据库的详细信息513
15.10.6测试是否连接到数据库513
15.10.7将数据源归属到AdminServer服务器514
15.10.8新建名为b_jndi的数据源514
15.10.9数据源列表514
15.10.10SQL在正确的情况下实现多数据源提交事务515
15.10.11SQL在错误的情况下实现多数据源回滚事务518

第16章JPA核心技能521
16.1EntityManager类的概述521
16.1.1实体类的状态522
16.1.2EJB3中的事务522
16.2EntityManager类的方法使用522
16.2.1persist(Object)方法525
16.2.2merge(T)方法和find(Class, Object)方法526
16.2.3remove(Object)方法528
16.2.4getReference(Class, Object)方法530
16.2.5createNativeQuery()方法533
16.2.6close()和isOpen()方法538
16.2.7refresh(Object)方法538
16.2.8clear()和contains(Object)方法542
16.2.9createQuery(String)方法543
16.2.10createNamedQuery(String)方法545
16.3EntityManagerFactory对象介绍546
16.4用Java SE客户端调用远程EJB3组件(使用逆向DAO)547
16.5在Java SE客户端使用EntityManagerFactory实现持久化(手动配置)550
16.6在Java SE客户端使用EntityManagerFactory实现持久化(自动配置)552
16.7在会话Bean中生成EntityManagerFactory557
16.8双向一对多的CURD实战559
16.8.1新建数据表Sheng559
16.8.2新建数据表Shi559
16.8.3配置主从键约束关系559
16.8.4创建企业项目561
16.8.5逆向EJB实体561
16.8.6添加主键生成策略的注解562
16.8.7配置persistence.xml文件563
16.8.8persistence.xml配置文件再次提醒563
16.8.9生成的Sheng.java和Shi.java代码引用563
16.8.10创建Sheng的Servlet564
16.8.11创建Shi的Servlet565
16.8.12更新Sheng的Servlet566
16.8.13更新Shi的Servlet566
16.8.14删除没有市的省571
16.8.15删除有市的省571

第17章JPQL必备技能573
17.1JPQL介绍573
17.2命名参数和索引式参数及实体参数式查询573
17.2.1参数索引式查询574
17.2.2命名式参数查询575
17.2.3为实现主从关联示例创建sheng表和shi表576
17.2.4sheng表和shi表两种关联查询的方式577
17.3JPQL支持的运算符578
17.3.1+、-、*、/、=、>=、>、<、<=、<>、between、like、in运算符的使用578
17.3.2not运算符的使用581
17.3.3is null运算符的使用582
17.3.4is empty运算符的使用582
17.4order by的使用583
17.5查询指定字段的示例584
17.6聚合函数avg、count、max、min、sum的使用586
17.7group by和having的使用587
17.8左外连接的使用588
17.9通过distinct去除重复记录590
17.10JPQL的字符串操作函数590
17.11通过JPQL取得当前的日期和日期时间594
17.12JPQL语言对日期的判断595
17.13JPQL的数学函数598
17.14JPQL中的分页功能599

第18章FreeMarker模板引擎的使用600
18.1输出8种简单数据类型600
18.2简单数据类型的计算603
18.3输出复杂数据类型——数组604
18.4输出集合对象——List605
18.5输出集合对象——Set606
18.6输出集合对象——Map606
18.7输出嵌套类型——List中有Map607
18.8输出嵌套类型——Map中有List608
18.9判断#if和#else标签的使用609
18.10输出实体类的属性及boolean类型注意事项609
18.11FreeMarker中的注释611
18.12FreeMarker中的导入611
18.13FreeMarker中对不存在的变量或null值的处理612

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book