资源简介
B/S 公交管理系统 Java源码 eclipse工程
毕业设计必备,你们懂的。。机不可失。。
代码片段和文件信息
package com.svse.dao;
import java.util.List;
import java.util.Set;
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.svse.entity.BusCompany;
/**
* A data access object (DAO) providing persistence and search support for
* BusCompany entities. Transaction control of the save() update() and delete()
* operations can directly support Spring container-managed transactions or they
* can be augmented to handle user-managed Spring transactions. Each of these
* methods provides additional information for how to configure it for the
* desired type of transaction control.
*
* @see com.svse.entity.BusCompany
* @author MyEclipse Persistence Tools
*/
public class BusCompanyDAO extends HibernateDaoSupport {
private static final Log log = LogFactory.getLog(BusCompanyDAO.class);
// property constants
public static final String COM_NAME = “comName“;
public static final String COM_MANAGER = “comManager“;
public static final String COM_BUS_NUMBER = “comBusNumber“;
public static final String COM_MEMO = “comMemo“;
protected void initDao() {
// do nothing
}
public void save(BusCompany transientInstance) {
log.debug(“saving BusCompany instance“);
try {
getHibernateTemplate().save(transientInstance);
log.debug(“save successful“);
} catch (RuntimeException re) {
log.error(“save failed“ re);
throw re;
}
}
public void delete(BusCompany persistentInstance) {
log.debug(“deleting BusCompany instance“);
try {
getHibernateTemplate().delete(persistentInstance);
log.debug(“delete successful“);
} catch (RuntimeException re) {
log.error(“delete failed“ re);
throw re;
}
}
public BusCompany findById(java.lang.Long id) {
log.debug(“getting BusCompany instance with id: “ + id);
try {
BusCompany instance = (BusCompany) getHibernateTemplate().get(
“com.svse.entity.BusCompany“ id);
return instance;
} catch (RuntimeException re) {
log.error(“get failed“ re);
throw re;
}
}
public List findByExample(BusCompany instance) {
log.debug(“finding BusCompany 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 BusCompany instance with property: “ + propertyName
+ “ value: “ + value);
try {
String queryString = “from BusCompany as model where model.“
+ propertyName + “= ?“;
return getHibernateTemplate().find(queryString value);
} catch (RuntimeException re) {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5488 2009-10-15 09:35 Bus_Manage\.classpath
文件 489 2009-10-14 15:45 Bus_Manage\.myhibernatedata
文件 303 2002-04-12 00:57 Bus_Manage\.myme
文件 255 2009-10-14 15:33 Bus_Manage\.mystrutsdata
文件 1909 2009-10-14 17:23 Bus_Manage\.project
文件 406 2009-10-14 14:45 Bus_Manage\.settings\.jsdtscope
文件 105 2002-04-10 20:30 Bus_Manage\.settings\com.genuitec.eclipse.core.prefs
文件 334 2009-10-14 14:45 Bus_Manage\.settings\org.eclipse.jdt.core.prefs
文件 49 2009-10-14 14:45 Bus_Manage\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2009-10-14 14:45 Bus_Manage\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 785 2009-10-15 08:48 Bus_Manage\.settings\org.eclipse.wst.validation.prefs
文件 422 2009-10-15 09:54 Bus_Manage\.springBeans
文件 6578 2002-04-11 21:31 Bus_Manage\src\applicationContext.xm
文件 4865 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\BusCompanyDAO.java
文件 4473 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\BusDAO.java
文件 4313 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\BusMoneyDAO.java
文件 5568 2002-04-10 20:12 Bus_Manage\src\com\svse\dao\BusNewsDAO.java
文件 4391 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\BusPadDAO.java
文件 5418 2002-04-10 20:12 Bus_Manage\src\com\svse\dao\BusRouteDAO.java
文件 4281 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\BusSpotDAO.java
文件 4435 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\BusTypeDAO.java
文件 4970 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\ManagerDAO.java
文件 5553 2002-04-11 21:04 Bus_Manage\src\com\svse\dao\ResortDAO.java
文件 4271 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\RouteBusTypeDAO.java
文件 4563 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\RouteTypeDAO.java
文件 4816 2002-04-10 20:12 Bus_Manage\src\com\svse\dao\SpotRouteDAO.java
文件 5130 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\ThingsDAO.java
文件 5156 2009-10-14 15:47 Bus_Manage\src\com\svse\dao\VipUserDAO.java
文件 1685 2002-04-11 01:59 Bus_Manage\src\com\svse\entity\Bus.hbm.xm
文件 2230 2002-04-11 01:57 Bus_Manage\src\com\svse\entity\Bus.java
............此处省略910个文件信息
- 上一篇:JSP科技企业信息管理系统
- 下一篇:编译原理课程设计-java版
评论
共有 条评论