資源簡介
系統的主要功能包括:車輛管理、駕駛員管理及出車信息管理
代碼片段和文件信息
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(“
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5258??2012-06-02?14:53??182JSP企業車輛管理系統\che\.classpath
?????文件????????526??2012-06-05?15:29??182JSP企業車輛管理系統\che\.myhibernatedata
?????文件????????282??2012-06-03?12:19??182JSP企業車輛管理系統\che\.myme
?????文件???????1631??2012-06-03?06:05??182JSP企業車輛管理系統\che\.project
?????文件????????330??2012-06-02?22:47??182JSP企業車輛管理系統\che\.settings\org.eclipse.jdt.core.prefs
?????文件????????273??2012-06-04?01:04??182JSP企業車輛管理系統\che\.springBeans
?????文件???????3980??2012-06-04?18:50??182JSP企業車輛管理系統\che\src\com\dao\TAdminDAO.java
?????文件???????4617??2012-06-04?16:48??182JSP企業車輛管理系統\che\src\com\dao\TCheDAO.java
?????文件????????907??2012-06-08?00:24??182JSP企業車輛管理系統\che\src\com\model\TAdmin.hbm.xm
?????文件???????1325??2012-06-09?01:03??182JSP企業車輛管理系統\che\src\com\model\TChe.hbm.xm
?????文件???????1200??2012-06-06?09:19??182JSP企業車輛管理系統\che\src\com\model\TChuche.hbm.xm
?????文件???????1383??2012-06-05?14:56??182JSP企業車輛管理系統\che\src\com\model\TSiji.hbm.xm
?????文件????????840??2012-06-06?21:26??182JSP企業車輛管理系統\che\src\com\service\DwrService.java
?????文件???????2508??2012-06-03?17:48??182JSP企業車輛管理系統\che\src\com\service\loginService.java
?????文件???????1300??2012-06-03?12:38??182JSP企業車輛管理系統\che\src\com\util\safeFileter.java
?????文件???????1589??2012-06-07?23:24??182JSP企業車輛管理系統\che\src\log4j.properties
?????文件??????????0??2012-06-04?11:52??182JSP企業車輛管理系統\che\src\messages_en_US.properties
?????文件??????????8??2012-06-07?03:24??182JSP企業車輛管理系統\che\src\messages_zh_CN.properties
?????文件???????3526??2012-06-05?08:24??182JSP企業車輛管理系統\che\src\struts.properties
?????文件???????3440??2012-06-09?07:52??182JSP企業車輛管理系統\che\src\struts.xm
?????文件???????2806??2012-06-01?11:04??182JSP企業車輛管理系統\che\WebRoot\admin\admin\adminAdd.jsp
?????文件???????2798??2012-06-08?08:35??182JSP企業車輛管理系統\che\WebRoot\admin\admin\adminMana.jsp
?????文件???????5016??2012-06-06?15:47??182JSP企業車輛管理系統\che\WebRoot\admin\che\cheAdd.jsp
?????文件???????3630??2012-06-03?13:29??182JSP企業車輛管理系統\che\WebRoot\admin\che\cheAll.jsp
?????文件???????3341??2012-06-02?02:41??182JSP企業車輛管理系統\che\WebRoot\admin\che\cheSearch_re.jsp
?????文件???????4653??2012-06-10?23:55??182JSP企業車輛管理系統\che\WebRoot\admin\chuche\chucheAdd.jsp
?????文件???????5010??2012-06-02?04:31??182JSP企業車輛管理系統\che\WebRoot\admin\chuche\chucheEditPre.jsp
?????文件???????2818??2012-06-08?07:07??182JSP企業車輛管理系統\che\WebRoot\admin\index\adminAdd.jsp
?????文件???????2903??2012-06-09?14:34??182JSP企業車輛管理系統\che\WebRoot\admin\index\adminManage.jsp
?????文件???????1030??2012-06-07?04:17??182JSP企業車輛管理系統\che\WebRoot\admin\index\sysPro.jsp
............此處省略1100個文件信息
- 上一篇:忍者突襲游戲Android源碼
- 下一篇:JSP+SQL電影票預定系統(畢業設計)
評論
共有 條評論