public class Cmp2Generator
extends java.lang.Object
| Constructor and Description | 
|---|
Cmp2Generator(java.lang.String cmpImplClass,
             java.lang.Class beanClass,
             java.lang.String pkField,
             java.lang.Class<?> primKeyClass,
             java.lang.String[] cmpFields)
Constructor for a Cmp2Generator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCmrField(CmrField cmrField)
Add a field to the list of fields defined as CMR
 fields. 
 | 
void | 
addSelectMethod(java.lang.reflect.Method selectMethod)
Add a method to the list of ejbSelect methods that
 need to be processed. 
 | 
void | 
createEjbActivate()  | 
void | 
createEjbLoad()  | 
void | 
createEjbPassivate()  | 
void | 
createEjbRemove()  | 
void | 
createEjbStore()  | 
void | 
createSetEntityContext()  | 
void | 
createUnsetEntityContext()  | 
byte[] | 
generate()
Perform the generation step for a CMP Entity Bean. 
 | 
public Cmp2Generator(java.lang.String cmpImplClass,
                     java.lang.Class beanClass,
                     java.lang.String pkField,
                     java.lang.Class<?> primKeyClass,
                     java.lang.String[] cmpFields)
cmpImplClass - The name of the implementation class we're generating.beanClass - The bean implementation class that is our starting
                     point for code generation.pkField - The name of the primary key field (optional if the
                     primary key class is given).primKeyClass - The optional primary key class for complex primary
                     keys.cmpFields - The list of fields that are managed using cmp.public void addCmrField(CmrField cmrField)
cmrField - The new CMR field definition pulled from the
                 EJB metadata.public void addSelectMethod(java.lang.reflect.Method selectMethod)
selectMethod - The method that needs to be processed.public byte[] generate()
public void createEjbActivate()
public void createEjbLoad()
public void createEjbPassivate()
public void createEjbRemove()
public void createEjbStore()
public void createSetEntityContext()
public void createUnsetEntityContext()