📄 ejscmpusershomebean_789ae0b4.java
字号:
package com.leeman.wkexs.master.users.dao;import com.ibm.ejs.container.*;/** * EJSCMPUsersHomeBean_789ae0b4 */public class EJSCMPUsersHomeBean_789ae0b4 extends EJSHome { /** * EJSCMPUsersHomeBean_789ae0b4 */ public EJSCMPUsersHomeBean_789ae0b4() throws java.rmi.RemoteException { super(); } /** * findByPrimaryKey */ public com.leeman.wkexs.master.users.dao.Users findByPrimaryKey(com.leeman.wkexs.master.users.dao.UsersKey primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException { return (com.leeman.wkexs.master.users.dao.Users)super.activateBean(primaryKey); } /** * create */ public com.leeman.wkexs.master.users.dao.Users create(java.lang.String company_id, java.lang.String user_id) throws javax.ejb.CreateException, java.rmi.RemoteException { BeanO beanO = null; com.leeman.wkexs.master.users.dao.Users result = null; boolean createFailed = false; boolean preCreateFlag = false; try { beanO = super.createBeanO(); com.leeman.wkexs.master.users.dao.UsersBean bean = (com.leeman.wkexs.master.users.dao.UsersBean) beanO.getEnterpriseBean(); preCreateFlag = super.preEjbCreate(beanO); bean.ejbCreate(company_id, user_id); Object ejsKey = keyFromBean(bean); result = (com.leeman.wkexs.master.users.dao.Users) super.postCreate(beanO, ejsKey, true); bean.ejbPostCreate(company_id, user_id); super.afterPostCreate(beanO, ejsKey); } catch (javax.ejb.CreateException ex) { createFailed = true; throw ex; } catch (java.rmi.RemoteException ex) { createFailed = true; throw ex; } catch (Throwable ex) { createFailed = true; throw new CreateFailureException(ex); } finally { if(preCreateFlag && !createFailed) super.afterPostCreateCompletion(beanO); if (createFailed) { super.createFailure(beanO); } } return result; } /** * findByPrimaryKey_Local */ public com.leeman.wkexs.master.users.dao.UsersLocal findByPrimaryKey_Local(com.leeman.wkexs.master.users.dao.UsersKey primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException { return (com.leeman.wkexs.master.users.dao.UsersLocal)super.activateBean_Local(primaryKey); } /** * create_Local */ public com.leeman.wkexs.master.users.dao.UsersLocal create_Local(java.lang.String company_id, java.lang.String user_id) throws javax.ejb.CreateException, java.rmi.RemoteException { BeanO beanO = null; com.leeman.wkexs.master.users.dao.UsersLocal result = null; boolean createFailed = false; boolean preCreateFlag = false; try { beanO = super.createBeanO(); com.leeman.wkexs.master.users.dao.UsersBean bean = (com.leeman.wkexs.master.users.dao.UsersBean) beanO.getEnterpriseBean(); preCreateFlag = super.preEjbCreate(beanO); bean.ejbCreate(company_id, user_id); Object ejsKey = keyFromBean(bean); result = (com.leeman.wkexs.master.users.dao.UsersLocal) super.postCreate_Local(beanO, ejsKey, true); bean.ejbPostCreate(company_id, user_id); super.afterPostCreate(beanO, ejsKey); } catch (javax.ejb.CreateException ex) { createFailed = true; throw ex; } catch (java.rmi.RemoteException ex) { createFailed = true; throw ex; } catch (Throwable ex) { createFailed = true; throw new CreateFailureException(ex); } finally { if(preCreateFlag && !createFailed) super.afterPostCreateCompletion(beanO); if (createFailed) { super.createFailure(beanO); } } return result; } /** * keyFromBean */ public Object keyFromBean(javax.ejb.EntityBean generalEJB) { com.leeman.wkexs.master.users.dao.ConcreteUsers_789ae0b4 tmpEJB = (com.leeman.wkexs.master.users.dao.ConcreteUsers_789ae0b4) generalEJB; com.leeman.wkexs.master.users.dao.UsersKey keyClass = new com.leeman.wkexs.master.users.dao.UsersKey(); keyClass.company_id = tmpEJB.getCompany_id(); keyClass.user_id = tmpEJB.getUser_id(); return keyClass; } /** * keyFromFields */ public com.leeman.wkexs.master.users.dao.UsersKey keyFromFields(java.lang.String f0, java.lang.String f1) { com.leeman.wkexs.master.users.dao.UsersKey keyClass = new com.leeman.wkexs.master.users.dao.UsersKey(); keyClass.company_id = f0; keyClass.user_id = f1; return keyClass; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -