📄 pubhibernate.java
字号:
// // Copyright 2007
2008 2000 el . avel . avel .uznetsov.home page: http://www.shopcopy.cn//ad. tml html mlhlhtml st si rstst tst strstst tst sttst sttst st st stnsi st ansi ansi
// Source File Name: PubHibernate.java
package cn.shopcopy.pub.bo;
import cn.shopcopy.pub.util.Pager;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
import net.sf.hibernate.*;
import net.sf.hibernate.cfg.Configuration;
public class PubHibernate
{
protected static SessionFactory sessionFactory;
protected Session session;
protected Transaction transaction;
protected String beanClass;
public PubHibernate()
throws HibernateException
{
}
protected void initHibernate()
throws HibernateException
{
}
protected void beginTransaction()
throws HibernateException
{
}
protected void beginTransaction(Session sess)
throws HibernateException
{
}
protected void openSession()
throws HibernateException
{
}
public Session createSession()
throws HibernateException
{
}
protected void endTransaction(boolean commit)
throws HibernateException
{
}
public void deleteById(Serializable id, Class poClass, Session sess)
throws Exception
{
}
public void deleteById(Object po, Session sess)
throws Exception
{
}
public void load(Object bean, Serializable id)
throws Exception
{
return;
}
public List list(String querySQL, Session sess)
throws Exception
{
}
public Iterator iterate(String querySQL, Session sess)
throws Exception
{
}
public Iterator iterate(String querySQL)
throws Exception
{
return list;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -