资源简介
JSP+MYSQL电影订票系统
代码片段和文件信息
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(“
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2949 2013-05-03 09:57 530JSP+MYSQL电影票预定系统\dingpiao\.classpath
文件 467 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\.myhibernatedata
文件 297 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\.myme
文件 1636 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\.project
文件 332 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\.springBeans
文件 3980 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\dao\TAdminDAO.java
文件 4153 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\dao\TLiuyanDAO.java
文件 4475 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\dao\TOrderDAO.java
文件 4377 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\dao\TOrderItemDAO.java
文件 782 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\model\TAdmin.hbm.xm
文件 3782 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\model\TGonggao.java
文件 1510 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\model\TOrder.hbm.xm
文件 6293 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\model\TUser.java
文件 1719 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\service\cartService.java
文件 683 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\service\catelogService.java
文件 1931 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\service\loginService.java
文件 1387 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\util\Cart.java
文件 1300 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\util\safeFileter.java
文件 2922 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\util\upload.java
文件 2534 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\com\util\Util.java
文件 3526 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\struts.properties
文件 7145 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\src\struts.xm
文件 2504 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\catelog\catelogAdd.jsp
文件 2778 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\catelog\catelogMana.jsp
文件 0 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\index\sysPro.jsp
文件 88 2013-03-29 12:10 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\index.jsp
文件 943 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\js\list_nav.js
文件 8346 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\menu.jsp
文件 7786 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\order\orderDetail.jsp
文件 4338 2013-05-03 09:55 530JSP+MYSQL电影票预定系统\dingpiao\WebRoot\admin\order\orderMana.jsp
............此处省略982个文件信息
评论
共有 条评论