src/com/dao/ShengyuantypeDAO.java
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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.Shengyuantype;
public class ShengyuantypeDAO extends HibernateDaoSupport {
private static final Log log = LogFactory.getLog(ShengyuantypeDAO.class);
public void save(Shengyuantype transientInstance){
try {
getHibernateTemplate().save(transientInstance);
log.debug("ShengyuantypeDAO save successful");
} catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public void delete(Shengyuantype persistentInstance){
log.debug("deleting Shengyuantype instance");
try {
getHibernateTemplate().delete(persistentInstance);
log.debug("Shengyuantype delete successful");
} catch (RuntimeException re) {
log.error("Shengyuantype delete failed", re);
throw re;
}
}
public Shengyuantype findById(java.lang.Integer id){
log.debug("getting Shengyuantype instance with id: " + id);
try {
Shengyuantype instance = (Shengyuantype) getHibernateTemplate().get(
"com.model.Shengyuantype", id);
return instance;
} catch (RuntimeException re) {
log.error("Shengyuantype get failed", re);
throw re;
}
}
public List findByExample(Shengyuantype instance){
log.debug("finding Shengyuantype 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 Shengyuantype instance with property: " + propertyName
后面还有 58 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。