package com.dao;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import com.model.TAdmin;
/**
* Data access object (DAO) for domain model class TAdmin.
*
* @see com.model.TAdmin
* @author MyEclipse Persistence Tools
*/
public class TAdminDAO extends HibernateDaoSupport {
private static final Log log = LogFactory.getLog(TAdminDAO.class);
// property constants
public static final String USER_NAME = "userName";
public static final String USER_PW = "userPw";
protected void initDao() {
// do nothing
}
public void save(TAdmin transientInstance) {
log.debug("saving TAdmin instance");
try {
getHibernateTemplate().save(transientInstance);
log.debug("save successful");
} catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public void delete(TAdmin persistentInstance) {
log.debug("deleting TAdmin instance");
try {
getHibernateTemplate().delete(persistentInstance);
log.debug("delete successful");
} catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public TAdmin findById(java.lang.Integer id) {
log.debug("getting TAdmin instance with id: " + id);
try {
TAdmin instance = (TAdmin) getHibernateTemplate().get(
"com.model.TAdmin", id);
return instance;
} catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
}
public List findByExample(TAdmin instance) {
log.debug("finding TAdmin instance by example");
try {
List results = getHibernateTemplate().findByExample(instance);
log.debug("find by example successful, result size: "
+ results.size());
return results;
} catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
}
public List findByProperty(String propertyName, Object value) {
log.debug("finding TAdmin instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "from TAdmin as model where model."
+ propertyName + "= ?";
return getHibernateTemplate().find(queryString, value);
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
}
public List findByUserName(Object userName) {
return findByProperty(USER_NAME, userName);
}
public List findByUserPw(Object userPw) {
return findByProperty(USER_PW, userPw);
}
public List findAll() {
log.debug("finding all TAdmin instances");
try {
String queryString = "from TAdmin";
return getHibernateTemplate().find(queryString);
} catch (RuntimeException re) {
log.error("find all failed", re);
throw re;
}
}
public TAdmin merge(TAdmin detachedInstance) {
log.debug("merging TAdmin instance");
try {
TAdmin result = (TAdmin) getHibernateTemplate().merge(
detachedInstance);
log.debug("merge successful");
return result;
} catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public void attachDirty(TAdmin instance) {
log.debug("attaching dirty TAdmin instance");
try {
getHibernateTemplate().saveOrUpdate(instance);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(TAdmin instance) {
log.debug("attaching clean TAdmin instance");
try {
getHibernateTemplate().lock(instance, LockMode.NONE);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public static TAdminDAO getFromApplicationContext(ApplicationContext ctx) {
return (TAdminDAO) ctx.getBean("TAdminDAO");
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
JSP+MYSQL宾馆酒店客房管理系统
共115个文件
jar:22个
class:19个
jsp:16个
4星 · 超过85%的资源 需积分: 21 73 下载量 163 浏览量
2017-04-10
12:45:18
上传
评论 7
收藏 8.08MB RAR 举报
温馨提示
包括客房基本信息的管理,客房预定信息的管理、客房入住信息的管理以及客房的结算及收入统计。
资源推荐
资源详情
资源评论
收起资源包目录
JSP+MYSQL宾馆酒店客房管理系统 (115个子文件)
vCode.bmp 4KB
ruzhuAction.class 8KB
TRenyuanDAO.class 6KB
TAdminDAO.class 5KB
TKefangDAO.class 5KB
TYudingDAO.class 5KB
TRuzhuDAO.class 5KB
kefangAction.class 4KB
yudingAction.class 4KB
renyuanAction.class 4KB
tongjiAction.class 4KB
upload.class 4KB
loginService.class 4KB
TRuzhu.class 3KB
adminAction.class 3KB
Util.class 3KB
TKefang.class 2KB
TRenyuan.class 2KB
TYuding.class 2KB
TAdmin.class 1KB
.classpath 743B
org.eclipse.wst.common.component 453B
org.eclipse.wst.jsdt.ui.superType.container 49B
header.css 10KB
base.css 5KB
ui.datepicker.css 4KB
login.css 3KB
JSP宾馆酒店客房管理系统录像.exe 1.67MB
lo_left.gif 10KB
lo_bg.gif 1KB
m1.gif 1KB
loading.gif 310B
x.gif 281B
calendar.gif 269B
dialogclose.gif 114B
m2.gif 108B
spring.jar 2.58MB
freemarker-2.3.8.jar 784KB
commons-collections-3.2.jar 562KB
mysql-connector-java-5.0.4-bin.jar 484KB
dwr.jar 478KB
xwork-2.0.5.jar 447KB
antlr-2.7.6.jar 433KB
jstl-1.2.jar 363KB
dom4j-1.6.1.jar 307KB
cglib-2.1.3.jar 276KB
spring-hibernate3.jar 105KB
commons-dbcp-1.2.1.jar 104KB
commons-io-1.3.2.jar 86KB
commons-io.jar 82KB
commons-pool-1.3.jar 60KB
commons-fileupload-1.2.1.jar 56KB
commons-fileupload.jar 52KB
fckeditor-java-core-2.4.1.jar 49KB
commons-logging-1.0.4.jar 37KB
asm.jar 26KB
jta.jar 9KB
slf4j-simple-1.5.2.jar 7KB
TAdminDAO.java 4KB
upload.java 3KB
loginService.java 3KB
tongjiAction.java 2KB
Util.java 2KB
TRenyuan.java 1KB
1346402572599.jpg 253KB
jquery-1.2.6.js 101KB
ui.datepicker.js 61KB
popup_shuaxin.js 16KB
popup_shuaxin_no.js 16KB
public.js 10KB
menu.js 3KB
ui.datepicker-zh-CN.js 1KB
.jsdtscope 500B
top.jsp 7KB
renyuaninfo.jsp 6KB
tongji_yingye_pre.jsp 4KB
userinfo.jsp 4KB
updown.jsp 2KB
tongji_yingye_res.jsp 2KB
upload.jsp 1KB
upload_re.jsp 1KB
loginSuccess.jsp 934B
msg.jsp 860B
succeed.jsp 731B
login.jsp 88B
login.jsp 88B
index.jsp 61B
index.jsp 61B
sysPro.jsp 0B
org.eclipse.wst.common.project.facet.core.builder (3).launch 552B
org.eclipse.wst.jsdt.core.javascriptValidator (5).launch 548B
MANIFEST.MF 36B
.myhibernatedata 565B
.mymetadata 282B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.jdt.core.prefs 395B
org.eclipse.core.resources.prefs 155B
.project 3KB
struts.properties 3KB
struts.properties 3KB
共 115 条
- 1
- 2
资源评论
- weixin_384360702017-12-07不能运行。。
- qyhhyj2017-10-24下载错误是什么情况
rubao6936
- 粉丝: 5
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 在matlab中通过yalmip平台调用cplex求解器,可用于求解MILP问题,适合于综合能源系统优化求解(注释完全,可直接运
- MT8852B labview 驱动,MT8852B labview 代码,蓝牙测试仪MT8852B代码,蓝牙低功耗测试
- 导照片2.0(只适合索尼微单)
- KMP算法python代码实现与使用场景.docx
- 基于MATLABCPLEX 的机组最优组合,成功求解表格化,图示化的机组组合结果(注释完全,可直接运行)(文档加Matlab源码
- postgresql-9.5.3-1-windows-x64
- 基于大数据和产业互联网的企业数字化转型.rar
- MySQL5与PHP5开发的相册系统源码.zip
- 支持linux CentOS安装 jdk1.8的jenkins
- Clover四叶草引导中文版
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功