📄 bookcmp.java
字号:
/* * Generated by XDoclet - Do not edit! */package de.laliluna.tutorial.library.entity.ejb;/** * CMP layer for Book. * @xdoclet-generated at ${TODAY} * @copyright The XDoclet Team * @author XDoclet * @version ${version} */public abstract class BookCMP extends de.laliluna.tutorial.library.entity.ejb.Book implements javax.ejb.EntityBean{ public de.laliluna.tutorial.library.entity.interfaces.BookData getData() { de.laliluna.tutorial.library.entity.interfaces.BookData dataHolder = null; try { dataHolder = new de.laliluna.tutorial.library.entity.interfaces.BookData(); dataHolder.setId( getId() ); dataHolder.setTitle( getTitle() ); dataHolder.setAuthor( getAuthor() ); dataHolder.setAvailable( getAvailable() ); dataHolder.setUserId( getUserId() ); } catch (RuntimeException e) { throw new javax.ejb.EJBException(e); } return dataHolder; } public void ejbLoad() throws javax.ejb.EJBException { super.ejbLoad(); } public void ejbStore() throws javax.ejb.EJBException { super.ejbStore(); } public void ejbActivate() throws javax.ejb.EJBException { super.ejbActivate(); } public void ejbPassivate() throws javax.ejb.EJBException { super.ejbPassivate(); BookValue = null; } public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException { super.setEntityContext(ctx); } public void unsetEntityContext() throws javax.ejb.EJBException { super.unsetEntityContext(); } public void ejbRemove() throws javax.ejb.EJBException, javax.ejb.RemoveException { super.ejbRemove(); } /* Value Objects BEGIN */ private de.laliluna.tutorial.library.entity.interfaces.BookValue BookValue = null; public de.laliluna.tutorial.library.entity.interfaces.BookValue getBookValue() { BookValue = new de.laliluna.tutorial.library.entity.interfaces.BookValue(); try { BookValue.setId( getId() ); BookValue.setTitle( getTitle() ); BookValue.setAuthor( getAuthor() ); BookValue.setAvailable( getAvailable() ); BookValue.setUserId( getUserId() ); } catch (Exception e) { throw new javax.ejb.EJBException(e); } return BookValue; } public void setBookValue( de.laliluna.tutorial.library.entity.interfaces.BookValue valueHolder ) { try { setTitle( valueHolder.getTitle() ); setAuthor( valueHolder.getAuthor() ); setAvailable( valueHolder.getAvailable() ); setUserId( valueHolder.getUserId() ); } catch (Exception e) { throw new javax.ejb.EJBException(e); } }/* Value Objects END */ public abstract java.lang.Integer getId() ; public abstract void setId( java.lang.Integer id ) ; public abstract java.lang.String getTitle() ; public abstract void setTitle( java.lang.String title ) ; public abstract java.lang.String getAuthor() ; public abstract void setAuthor( java.lang.String author ) ; public abstract java.lang.Boolean getAvailable() ; public abstract void setAvailable( java.lang.Boolean available ) ; public abstract java.lang.Integer getUserId() ; public abstract void setUserId( java.lang.Integer userId ) ;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -