S A M P L E   P R O J E C T  
 *           jndi name="ejb/test/Manager" 
 * @ejb:env entry name="SequenceName" 
 *                value="Manager" 
 * @ejb:ejb ref ejb name="test/SequenceGenerator" 
 * @ejb:transaction type="Required" 
 * @ejb:data object extends="test.interfaces.AbstractData" 
 *                  setdata="false" 
 * @ejb:finder signature="java.util.Collection findAll()" 
 * @ejb:finder signature="test.interfaces.Manager findByName( java.lang.String pSurname, 
java.lang.String pLastName )" 
 * @jboss:finder query name="findByName" 
 *                     query="First_Name = {0} AND Last_Name = {1}" 
 * @jboss:table name table name="Manager" 
 * @jboss:create table create="true" 
 * @jboss:remove table remove="true" 
Write the XDoclet method level tags indicating  create ,  remote ,  local  and CMP 
attributes methods like a remote interface method 
   /** 
   * Store the data within the provided data object into this bean. 
   * 
   * @param pManager The Value Object containing the Manager values 
   * 
   * @ejb:interface method view type="remote" 
   **/ 
   public void setValueObject( ManagerData pManager ) 
      throws 
         InvalidValueException 
   { 
Finally write additional classes or XML / Code snippet to merged into the XDoclet input like 
this class used as super class of all generated Bulk Data objects in the example 
package test.interfaces; 
import java.io.Serializable; 
/** 
 * Base Data Container for all other Value Objects 
 * @author Andreas Schaefer 
 **/ 
public abstract class AbstractData 
   implements Cloneable, Serializable 
{ 
   /** 
    * Returns a copy of itself. Is necessary because this 
    * method is protected within java.lang.Object. 
    * 
    * @return Copy of this instance 
    **/ 
   public Object clone() 
31






footer




 

 

 

 

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

best web hosting

 

Our partners: PHP: Hypertext Preprocessor Cheap Web Hosting JSP Web Hosting Ontario Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Java Hosting Cheapest Hosting

Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved