public abstract class AbstractBDMCodeGenerator extends CodeGenerator
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DAO_IMPL_SUFFIX |
| Constructor and Description |
|---|
AbstractBDMCodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addDAO(org.bonitasoft.engine.bdm.model.BusinessObject bo,
com.sun.codemodel.JDefinedClass entity) |
protected void |
addNewInstanceMethodBody(com.sun.codemodel.JMethod method,
com.sun.codemodel.JDefinedClass entity) |
protected com.sun.codemodel.JDefinedClass |
createDAOInterface(org.bonitasoft.engine.bdm.model.BusinessObject bo,
com.sun.codemodel.JDefinedClass entity) |
protected com.sun.codemodel.JMethod |
createMethodForNewInstance(org.bonitasoft.engine.bdm.model.BusinessObject bo,
com.sun.codemodel.JDefinedClass entity,
com.sun.codemodel.JDefinedClass daoInterface) |
protected com.sun.codemodel.JMethod |
createMethodForQuery(com.sun.codemodel.JDefinedClass entity,
com.sun.codemodel.JDefinedClass targetClass,
org.bonitasoft.engine.bdm.model.Query query) |
void |
generateBom(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom,
java.io.File destDir) |
addAddMethod, addAnnotation, addClass, addDefaultConstructor, addField, addField, addField, addGetter, addInterface, addInterface, addListField, addListSetter, addMethodSignature, addRemoveMethod, addSetter, checkAnnotationTarget, generate, getGetterName, getGetterName, getModel, getSetterName, getSupportedElementTypes, narrowClass, toJavaClass, toJavaClassprotected static final java.lang.String DAO_IMPL_SUFFIX
public void generateBom(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom,
java.io.File destDir)
throws java.io.IOException,
com.sun.codemodel.JClassAlreadyExistsException,
org.bonitasoft.engine.bdm.BusinessObjectModelValidationException,
java.lang.ClassNotFoundException
java.io.IOExceptioncom.sun.codemodel.JClassAlreadyExistsExceptionorg.bonitasoft.engine.bdm.BusinessObjectModelValidationExceptionjava.lang.ClassNotFoundExceptionprotected void addNewInstanceMethodBody(com.sun.codemodel.JMethod method,
com.sun.codemodel.JDefinedClass entity)
protected abstract void addDAO(org.bonitasoft.engine.bdm.model.BusinessObject bo,
com.sun.codemodel.JDefinedClass entity)
throws com.sun.codemodel.JClassAlreadyExistsException,
java.lang.ClassNotFoundException
com.sun.codemodel.JClassAlreadyExistsExceptionjava.lang.ClassNotFoundExceptionprotected com.sun.codemodel.JDefinedClass createDAOInterface(org.bonitasoft.engine.bdm.model.BusinessObject bo,
com.sun.codemodel.JDefinedClass entity)
throws com.sun.codemodel.JClassAlreadyExistsException
com.sun.codemodel.JClassAlreadyExistsExceptionprotected com.sun.codemodel.JMethod createMethodForNewInstance(org.bonitasoft.engine.bdm.model.BusinessObject bo,
com.sun.codemodel.JDefinedClass entity,
com.sun.codemodel.JDefinedClass daoInterface)
protected com.sun.codemodel.JMethod createMethodForQuery(com.sun.codemodel.JDefinedClass entity,
com.sun.codemodel.JDefinedClass targetClass,
org.bonitasoft.engine.bdm.model.Query query)