📄 orderlinedaoimpl.java
字号:
package cn.com.tarena.ecport.dao.impl;
import java.util.List;
import org.hibernate.Query;
import org.springframework.orm.hibernate3.HibernateTemplate;
import cn.com.tarena.ecport.common.util.HibernateUtil;
import cn.com.tarena.ecport.dao.IOrderLineDAO;
import cn.com.tarena.ecport.exception.ECPortException;
import cn.com.tarena.ecport.pojo.OrderLine;
public class OrderLineDAOImpl implements IOrderLineDAO {
private HibernateTemplate template;
public void setTemplate(HibernateTemplate template){
this.template = template;
}
public List<OrderLine> findAllOrderLine() throws ECPortException {
try {
String query = "from OrderLine";
return template.find(query);
} catch (RuntimeException re) {
throw new ECPortException(re);
}
}
public void delete(OrderLine persistencePojo) {
// TODO 自动生成方法存根
}
public List<OrderLine> findByExample(OrderLine ExamplePojo) {
// TODO 自动生成方法存根
return null;
}
public OrderLine findById(Long id) {
// TODO 自动生成方法存根
return null;
}
public List<OrderLine> findByProperty(String propertyName, Object value) {
// TODO 自动生成方法存根
return null;
}
public void lock(OrderLine pojo) {
// TODO 自动生成方法存根
}
public OrderLine merge(OrderLine detachedPojo) {
// TODO 自动生成方法存根
return null;
}
public void save(OrderLine transientPojo) {
// TODO 自动生成方法存根
}
public void saveOrUpdate(OrderLine pojo) {
// TODO 自动生成方法存根
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -