⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewf03linkmandao.java

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JAVA
字号:
package  com.tops.crm.model;import java.util.*;import com.tops.j2eebase.model.*;import org.hibernate.*;import com.tops.j2eebase.exception.DBOperaterException;import com.tops.j2eebase.exception.BugReportBaseException;public final class ViewF03LinkmanDAO extends PagedHibernateViewDAO{   private ViewF03LinkmanDAO() {}   public static ViewF03LinkmanDAO getNewInstance() {     return new ViewF03LinkmanDAO();   }   public ActfrmViewF03Linkman findByPrimaryKey(java.io.Serializable key,Session outSession) throws BugReportBaseException{       Session session=outSession;       try{                                  if(session==null)  session= ConnectionFactory.getInstance().getSession();         ActfrmViewF03Linkman result=(ActfrmViewF03Linkman)findByPrimaryKey(ActfrmViewF03Linkman.class,key, session);          //处理延迟读取的集合属性或从表内容          if(result!=null){              //Hibernate.initialize(result.get***s());          }          return result;       }       catch(HibernateException ex){         throw new DBOperaterException("提取F03联系人失败 ,可能对象已经被删除 ",ex,                                       "findByPrimaryKey失败 ,表名 : VIEW_F03_LINKMAN, 主码 :"+key,                                       DBOperaterException.operType_load_by_hql);       }       finally {           if (session != null && outSession == null) {               try {                     session.close();                }               catch (HibernateException e) {                  new DBOperaterException("", e, "关闭session时发生错误",DBOperaterException.operType_close_session).saveToBugManager("底层错误 ");              }               }       }    }   public ActfrmViewF03Linkman findByPrimaryKey(java.io.Serializable key)  throws BugReportBaseException{     return (ActfrmViewF03Linkman)findByPrimaryKey(key,null);   }   public List findAll(Session outSession)  throws BugReportBaseException{     return findAll(ActfrmViewF03Linkman.class,outSession);   }   public List findAll()  throws BugReportBaseException{     return  findAll(ActfrmViewF03Linkman.class);   }   public DataPage findAll(String pageurl,int ipage,int pagesize,Session outSession)  throws BugReportBaseException{     return  this.findAll(ActfrmViewF03Linkman.class,pageurl,ipage,outSession);   }   public DataPage findAll(String pageurl,int ipage,int pagesize)  throws BugReportBaseException{     return  this.findAll(ActfrmViewF03Linkman.class,pageurl,ipage,pagesize,null);   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -