资源简介
JAVA 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.TLiuyan;
/**
* Data access object (DAO) for domain model class TLiuyan.
*
* @see com.model.TLiuyan
* @author MyEclipse Persistence Tools
*/
public class TLiuyanDAO extends HibernateDaoSupport
{
private static final Log log = LogFactory.getLog(TLiuyanDAO.class);
// property constants
public static final String LIUYAN_title = “liuyantitle“;
public static final String LIUYAN_CONTENT = “liuyanContent“;
protected void initDao()
{
// do nothing
}
public void save(TLiuyan transientInstance)
{
log.debug(“saving TLiuyan instance“);
try
{
getHibernateTemplate().save(transientInstance);
log.debug(“save successful“);
} catch (RuntimeException re)
{
log.error(“save failed“ re);
throw re;
}
}
public void delete(TLiuyan persistentInstance)
{
log.debug(“deleting TLiuyan instance“);
try
{
getHibernateTemplate().delete(persistentInstance);
log.debug(“delete successful“);
} catch (RuntimeException re)
{
log.error(“delete failed“ re);
throw re;
}
}
public TLiuyan findById(java.lang.Integer id)
{
log.debug(“getting TLiuyan instance with id: “ + id);
try
{
TLiuyan instance = (TLiuyan) getHibernateTemplate().get(
“com.model.TLiuyan“ id);
return instance;
} catch (RuntimeException re)
{
log.error(“get failed“ re);
throw re;
}
}
public List findByExample(TLiuyan instance)
{
log.debug(“finding TLiuyan 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 TLiuyan instance with property: “ + propertyName
+ “ value: “ + value);
try
{
String queryString = “from TLiuyan 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 findByLiuyantitle(object liuyantitle)
{
return findByProperty(LIUYAN_title liuyantitle);
}
public List findByLiuyanContent(object liuyanContent)
{
return findByProperty(LIUYAN_CONTENT liuyanContent);
}
public List findAll()
{
log.debug(“finding all TLiuyan instances“);
try
{
String queryString = “from TLiuyan“;
return getHibernateTemplate().find(queryString);
} catch (RuntimeException
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 20734464 2012-09-13 12:08 066JAVA JSP电影网站\143JSP电影网站录像.avi
文件 1048576 2012-06-06 07:33 066JAVA JSP电影网站\db_dianbo_Data.MDF
文件 1048576 2012-06-09 07:33 066JAVA JSP电影网站\db_dianbo_Log.LDF
文件 5186 2012-06-06 00:19 066JAVA JSP电影网站\dianying\.classpath
文件 531 2012-06-02 14:26 066JAVA JSP电影网站\dianying\.myhibernatedata
文件 297 2012-06-10 07:02 066JAVA JSP电影网站\dianying\.myme
文件 1636 2012-06-02 12:11 066JAVA JSP电影网站\dianying\.project
文件 330 2012-06-05 15:50 066JAVA JSP电影网站\dianying\.settings\org.eclipse.jdt.core.prefs
文件 273 2012-06-05 13:40 066JAVA JSP电影网站\dianying\.springBeans
文件 4153 2012-06-05 01:00 066JAVA JSP电影网站\dianying\src\com\dao\TLiuyanDAO.java
文件 5211 2012-06-09 02:30 066JAVA JSP电影网站\dianying\src\com\dao\TNewsDAO.java
文件 3780 2012-06-01 08:33 066JAVA JSP电影网站\dianying\src\com\dao\TShipinDAO.java
文件 782 2012-06-09 16:03 066JAVA JSP电影网站\dianying\src\com\model\TAdmin.hbm.xm
文件 2327 2012-06-11 07:22 066JAVA JSP电影网站\dianying\src\com\model\TGonggao.hbm.xm
文件 1224 2012-06-06 04:00 066JAVA JSP电影网站\dianying\src\com\model\TLiuyan.hbm.xm
文件 1977 2012-06-10 08:09 066JAVA JSP电影网站\dianying\src\com\model\TNews.hbm.xm
文件 2097 2012-06-07 00:54 066JAVA JSP电影网站\dianying\src\com\model\TShipin.hbm.xm
文件 3151 2012-06-10 11:06 066JAVA JSP电影网站\dianying\src\com\model\TShipin.java
文件 799 2012-06-06 21:49 066JAVA JSP电影网站\dianying\src\com\model\TToupiao.hbm.xm
文件 3808 2012-06-10 05:43 066JAVA JSP电影网站\dianying\src\com\model\TUser.hbm.xm
文件 1956 2012-06-07 17:13 066JAVA JSP电影网站\dianying\src\com\service\loginService.java
文件 2451 2012-06-08 01:26 066JAVA JSP电影网站\dianying\src\com\util\Pagination.java
文件 1300 2012-06-02 06:13 066JAVA JSP电影网站\dianying\src\com\util\safeFileter.java
文件 2534 2012-06-04 03:40 066JAVA JSP电影网站\dianying\src\com\util\Util.java
文件 1589 2012-06-08 00:01 066JAVA JSP电影网站\dianying\src\log4j.properties
文件 0 2012-06-02 07:46 066JAVA JSP电影网站\dianying\src\messages_en_US.properties
文件 8 2012-06-05 05:11 066JAVA JSP电影网站\dianying\src\messages_zh_CN.properties
文件 3526 2012-06-03 19:55 066JAVA JSP电影网站\dianying\src\struts.properties
文件 5891 2012-06-10 11:03 066JAVA JSP电影网站\dianying\src\struts.xm
文件 2979 2012-06-02 22:44 066JAVA JSP电影网站\dianying\WebRoot\admin\gonggao\gonggaoAdd.jsp
............此处省略1147个文件信息
评论
共有 条评论