ibm.com/developerWorks
Presented by developerWorks, your source for great tutorials
want to define extra finders.   >
XDoclet and EJB: ejb.create tag
The
ejb.create
tag is used to identify create methods. All create methods
(
ejbCreateXXX
) will have corresponding create methods generated in the generated
home by XDoclet. Here is an example of using the
ejb.create
tag.
public abstract class DeptBean implements EntityBean {
/**
*
* @ejb.create method
*/
public Integer ejbCreate(String name)
throws CreateException {
setName(name);
return null;
}
The above
ejb.create
tag would cause XDoclet to generate the following create
method in the home.
/*
* Generated by XDoclet   Do not edit!
*/
package ejb;
/**
* Local home interface for DeptBean.
*/
public interface DeptHome
extends javax.ejb.EJBLocalHome
{
...
public ejb.Dept create(java.lang.String name)
throws javax.ejb.CreateException;
...
}
Page 34 of 49
Enhance J2EE component reuse with XDoclets






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

j2ee web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved