package pers.anshay.tmall.service.impl;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Filter;
import org.hibernate.HibernateException;
import org.hibernate.Interceptor;
import org.hibernate.LockMode;
import org.hibernate.ReplicationMode;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.support.SQLExceptionTranslator;
import org.springframework.orm.hibernate3.HibernateCallback;
import pers.anshay.tmall.dao.impl.DAOImpl;
/**
* @author Anshay
* @date 2018年6月5日
* @explain 使用委托模式对注入的dao进行委托
*/
public class ServiceDelegateDAO {
@Autowired
DAOImpl dao;
public void delete(Object entity) throws DataAccessException {
dao.delete(entity);
}
public Serializable save(Object entity) throws DataAccessException {
return dao.save(entity);
}
public void afterPropertiesSet() {
dao.afterPropertiesSet();
}
public int bulkUpdate(String queryString, Object... values) throws DataAccessException {
return dao.bulkUpdate(queryString, values);
}
public int bulkUpdate(String queryString, Object value) throws DataAccessException {
return dao.bulkUpdate(queryString, value);
}
public int bulkUpdate(String queryString) throws DataAccessException {
return dao.bulkUpdate(queryString);
}
public void clear() throws DataAccessException {
dao.clear();
}
public void closeIterator(Iterator arg0) throws DataAccessException {
dao.closeIterator(arg0);
}
public boolean contains(Object entity) throws DataAccessException {
return dao.contains(entity);
}
public DataAccessException convertHibernateAccessException(HibernateException ex) {
return dao.convertHibernateAccessException(ex);
}
public void delete(Object entity, LockMode lockMode) throws DataAccessException {
dao.delete(entity, lockMode);
}
public void delete(String entityName, Object entity, LockMode lockMode) throws DataAccessException {
dao.delete(entityName, entity, lockMode);
}
public void delete(String entityName, Object entity) throws DataAccessException {
dao.delete(entityName, entity);
}
public void deleteAll(Collection entities) throws DataAccessException {
dao.deleteAll(entities);
}
public Filter enableFilter(String filterName) throws IllegalStateException {
return dao.enableFilter(filterName);
}
public boolean equals(Object obj) {
return dao.equals(obj);
}
public void evict(Object entity) throws DataAccessException {
dao.evict(entity);
}
public <T> T execute(HibernateCallback<T> action) throws DataAccessException {
return dao.execute(action);
}
public List executeFind(HibernateCallback<?> action) throws DataAccessException {
return dao.executeFind(action);
}
public <T> T executeWithNativeSession(HibernateCallback<T> action) {
return dao.executeWithNativeSession(action);
}
public <T> T executeWithNewSession(HibernateCallback<T> action) {
return dao.executeWithNewSession(action);
}
public List find(String queryString, Object... values) throws DataAccessException {
return dao.find(queryString, values);
}
public List find(String queryString, Object value) throws DataAccessException {
return dao.find(queryString, value);
}
public List find(String queryString) throws DataAccessException {
return dao.find(queryString);
}
public List findByCriteria(DetachedCriteria criteria, int firstResult, int maxResults) throws DataAccessException {
return dao.findByCriteria(criteria, firstResult, maxResults);
}
public List findByCriteria(DetachedCriteria criteria) throws DataAccessException {
return dao.findByCriteria(criteria);
}
public List findByExample(Object exampleEntity, int firstResult, int maxResults) throws DataAccessException {
return dao.findByExample(exampleEntity, firstResult, maxResults);
}
public List findByExample(Object exampleEntity) throws DataAccessException {
return dao.findByExample(exampleEntity);
}
public List findByExample(String entityName, Object exampleEntity, int firstResult, int maxResults)
throws DataAccessException {
return dao.findByExample(entityName, exampleEntity, firstResult, maxResults);
}
public List findByExample(String entityName, Object exampleEntity) throws DataAccessException {
return dao.findByExample(entityName, exampleEntity);
}
public List findByNamedParam(String queryString, String paramName, Object value) throws DataAccessException {
return dao.findByNamedParam(queryString, paramName, value);
}
public List findByNamedParam(String queryString, String[] paramNames, Object[] values) throws DataAccessException {
return dao.findByNamedParam(queryString, paramNames, values);
}
public List findByNamedQuery(String queryName, Object... values) throws DataAccessException {
return dao.findByNamedQuery(queryName, values);
}
public List findByNamedQuery(String queryName, Object value) throws DataAccessException {
return dao.findByNamedQuery(queryName, value);
}
public List findByNamedQuery(String queryName) throws DataAccessException {
return dao.findByNamedQuery(queryName);
}
public List findByNamedQueryAndNamedParam(String queryName, String paramName, Object value)
throws DataAccessException {
return dao.findByNamedQueryAndNamedParam(queryName, paramName, value);
}
public List findByNamedQueryAndNamedParam(String queryName, String[] paramNames, Object[] values)
throws DataAccessException {
return dao.findByNamedQueryAndNamedParam(queryName, paramNames, values);
}
public List findByNamedQueryAndValueBean(String queryName, Object valueBean) throws DataAccessException {
return dao.findByNamedQueryAndValueBean(queryName, valueBean);
}
public List findByValueBean(String queryString, Object valueBean) throws DataAccessException {
return dao.findByValueBean(queryString, valueBean);
}
public void flush() throws DataAccessException {
dao.flush();
}
public <T> T get(Class<T> entityClass, Serializable id, LockMode lockMode) throws DataAccessException {
return dao.get(entityClass, id, lockMode);
}
public <T> T get(Class<T> entityClass, Serializable id) throws DataAccessException {
return dao.get(entityClass, id);
}
public Object get(String entityName, Serializable id, LockMode lockMode) throws DataAccessException {
return dao.get(entityName, id, lockMode);
}
public Object get(String entityName, Serializable id) throws DataAccessException {
return dao.get(entityName, id);
}
public Interceptor getEntityInterceptor() throws IllegalStateException, BeansException {
return dao.getEntityInterceptor();
}
public int getFetchSize() {
return dao.getFetchSize();
}
public String[] getFilterNames() {
return dao.getFilterNames();
}
public int getFlushMode() {
return dao.getFlushMode();
}
public SQLExceptionTranslator getJdbcExceptionTranslator() {
return dao.getJdbcExceptionTranslator();
}
public int getMaxResults() {
return dao.getMaxResults();
}
public String getQueryCacheRegion() {
return dao.getQueryCacheRegion();
}
public SessionFactory getSessionFactory() {
return dao.getSessionFactory();
}
public int hashCode() {
return dao.hashCode();
}
public void initialize(Object arg0) throws DataAccessException {
dao.initialize(arg0);
}
public boolean isAllowCreate() {
return dao.isAllowCreate();
}
public boolean isAlwaysUseNewSession() {
return dao.isAlwaysUseNewSession();
}
public boolean isCac
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
项目工程资源经过严格测试可直接运行成功且功能正常的情况才上传,可轻松复刻,拿到资料包后可轻松复现出一样的项目,本人系统开发经验充足(全领域),有任何使用问题欢迎随时与我联系,我会及时为您解惑,提供帮助。 【资源内容】:包含完整源码+工程文件+说明(如有)等。答辩评审平均分达到96分,放心下载使用!可轻松复现,设计报告也可借鉴此项目,该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的。 【提供帮助】:有任何使用问题欢迎随时与我联系,我会及时解答解惑,提供帮助 【附带帮助】:若还需要相关开发工具、学习资料等,我会提供帮助,提供资料,鼓励学习进步 【项目价值】:可用在相关项目设计中,皆可应用在项目、毕业设计、课程设计、期末/期中/大作业、工程实训、大创等学科竞赛比赛、初期项目立项、学习/练手等方面,可借鉴此优质项目实现复刻,设计报告也可借鉴此项目,也可基于此项目来扩展开发出更多功能 下载后请首先打开README文件(如有),项目工程可直接复现复刻,如果基础还行,也可在此程序基础上进行修改,以实现其它功能。供开源学习/技术交流/学习参考,勿用于商业用途。质量优质,放心下载使用。
资源推荐
资源详情
资源评论
收起资源包目录
采用Spring+Struts2+Hibernate框架,实现一个仿天猫购物网站的web工程(毕设&课设&实训&大作业&竞赛&项 (2000个子文件)
.classpath 842B
org.eclipse.wst.common.component 479B
org.eclipse.wst.jsdt.ui.superType.container 49B
bootstrap.css 143KB
bootstrap.min.css 118KB
style.css 37KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
style.css 1KB
logo.gif 77KB
wangwang.gif 4KB
hibernate3.jar 3.95MB
aspectjweaver.jar 1.81MB
xwork-core-2.2.1.jar 997KB
freemarker-2.3.16.jar 860KB
spring-context-3.2.0.M1.jar 832KB
struts2-core-2.2.1.jar 756KB
javassist-3.12.0.GA.jar 618KB
spring-beans-3.2.0.M1.jar 587KB
spring-webmvc-3.2.0.M1.jar 585KB
spring-web-3.2.0.M1.jar 561KB
commons-collections-3.1.jar 546KB
javassist-3.7.ga.jar 531KB
mysql-connector-java-5.0.8-bin.jar 528KB
spring-core-3.2.0.M1.jar 440KB
antlr-2.7.6.jar 433KB
spring-jdbc-3.2.0.M1.jar 394KB
commons-lang3-3.2.jar 376KB
spring-orm-3.2.0.M1.jar 374KB
log4j-1.2.14.jar 359KB
spring-aop-3.2.0.M1.jar 326KB
cglib-nodep-2.1_3.jar 317KB
junit-4.12.jar 308KB
dom4j-1.6.1.jar 307KB
hamcrest-all-1.3.jar 299KB
standard.jar 287KB
spring-tx-3.2.0.M1.jar 241KB
ognl-3.0.jar 224KB
spring-test-3.2.0.M1.jar 221KB
ehcache-1.2.4.jar 207KB
spring-jms-3.2.0.M1.jar 199KB
servlet-api.jar 193KB
spring-webmvc-portlet-3.2.0.M1.jar 186KB
spring-expression-3.2.0.M1.jar 169KB
spring-context-support-3.2.0.M1.jar 108KB
hibernate-jpa-2.0-api-1.0.1.Final.jar 100KB
commons-io-1.3.2.jar 86KB
spring-oxm-3.2.0.M1.jar 73KB
spring-aspects-3.2.0.M1.jar 71KB
struts2-convention-plugin-2.1.7.jar 65KB
commons-logging-1.1.1.jar 59KB
spring-asm-3.2.0.M1.jar 57KB
commons-fileupload-1.2.1.jar 56KB
commons-logging-api-1.1.jar 44KB
slf4j-api-1.7.24.jar 40KB
commons-logging-1.0.4.jar 37KB
spring-struts-3.2.0.M1.jar 35KB
struts2-spring-plugin-2.2.3.1.jar 21KB
jstl.jar 17KB
jta-1.1.jar 11KB
spring-instrument-tomcat-3.2.0.M1.jar 10KB
spring-instrument-3.2.0.M1.jar 7KB
aopalliance-1.0.jar 4KB
ServiceDelegateDAO.java 13KB
ForeAction.java 12KB
Order.java 6KB
BaseServiceImpl.java 5KB
Action4Pojo.java 5KB
Action4Result.java 3KB
Product.java 3KB
ProductImageAction.java 3KB
Action4Parameter.java 3KB
ProductServiceImpl.java 3KB
ImageUtil.java 3KB
AuthInterceptor.java 2KB
Page.java 2KB
CategoryAction.java 2KB
PropertyValueServiceImpl.java 2KB
OrderItem.java 2KB
CartTotalItemNumberInterceptor.java 2KB
Review.java 2KB
Action4Service.java 2KB
OrderServiceImpl.java 2KB
PropertyValue.java 2KB
CategoryNamesBelowSearchInterceptor.java 2KB
Category.java 2KB
User.java 2KB
BaseService.java 1KB
ProductAction.java 1KB
TestTmall.java 1KB
OrderItemServiceImpl.java 1KB
PropertyAction.java 1KB
ProductService.java 1KB
Property.java 1KB
ProductImage.java 1KB
OrderAction.java 972B
OrderService.java 927B
ReviewServiceImpl.java 920B
ProductImageServiceImpl.java 912B
UserServiceImpl.java 725B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
热爱技术。
- 粉丝: 2775
- 资源: 7860
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功