Class AbstractBDMCodeGenerator
java.lang.Object
org.bonitasoft.engine.business.data.generator.CodeGenerator
org.bonitasoft.engine.business.data.generator.AbstractBDMCodeGenerator
- Direct Known Subclasses:
ClientBDMCodeGenerator,ServerBDMCodeGenerator
- Author:
- Romain Bioteau, Matthieu Chaffotte
-
Field Summary
FieldsFields inherited from class org.bonitasoft.engine.business.data.generator.CodeGenerator
shouldValidateRuntimeClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddDAO(org.bonitasoft.engine.bdm.model.BusinessObject bo, com.sun.codemodel.JDefinedClass entity) protected voidaddNewInstanceMethodBody(com.sun.codemodel.JMethod method, com.sun.codemodel.JDefinedClass entity) protected com.sun.codemodel.JDefinedClasscreateDAOInterface(org.bonitasoft.engine.bdm.model.BusinessObject bo, com.sun.codemodel.JDefinedClass entity) protected com.sun.codemodel.JMethodcreateMethodForNewInstance(org.bonitasoft.engine.bdm.model.BusinessObject bo, com.sun.codemodel.JDefinedClass entity, com.sun.codemodel.JDefinedClass daoInterface) protected com.sun.codemodel.JMethodcreateMethodForQuery(com.sun.codemodel.JDefinedClass entity, com.sun.codemodel.JDefinedClass targetClass, org.bonitasoft.engine.bdm.model.Query query) voidgenerateBom(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom, File destDir) Methods inherited from class org.bonitasoft.engine.business.data.generator.CodeGenerator
addAddMethod, addAnnotation, addClass, addField, addField, addField, addGetter, addInterface, addInterface, addMethodSignature, addRemoveMethod, addSetter, generate, getModel, toJavaClass
-
Field Details
-
DAO_IMPL_SUFFIX
- See Also:
-
-
Constructor Details
-
AbstractBDMCodeGenerator
protected AbstractBDMCodeGenerator()
-
-
Method Details
-
disableRuntimeClassesValidation
- Overrides:
disableRuntimeClassesValidationin classCodeGenerator
-
generateBom
public void generateBom(org.bonitasoft.engine.bdm.model.BusinessObjectModel bom, File destDir) throws IOException, com.sun.codemodel.JClassAlreadyExistsException, org.bonitasoft.engine.bdm.BusinessObjectModelValidationException, ClassNotFoundException - Throws:
IOExceptioncom.sun.codemodel.JClassAlreadyExistsExceptionorg.bonitasoft.engine.bdm.BusinessObjectModelValidationExceptionClassNotFoundException
-
addNewInstanceMethodBody
protected void addNewInstanceMethodBody(com.sun.codemodel.JMethod method, com.sun.codemodel.JDefinedClass entity) -
addDAO
protected abstract void addDAO(org.bonitasoft.engine.bdm.model.BusinessObject bo, com.sun.codemodel.JDefinedClass entity) throws com.sun.codemodel.JClassAlreadyExistsException, ClassNotFoundException - Throws:
com.sun.codemodel.JClassAlreadyExistsExceptionClassNotFoundException
-
createDAOInterface
protected com.sun.codemodel.JDefinedClass createDAOInterface(org.bonitasoft.engine.bdm.model.BusinessObject bo, com.sun.codemodel.JDefinedClass entity) throws com.sun.codemodel.JClassAlreadyExistsException - Throws:
com.sun.codemodel.JClassAlreadyExistsException
-
createMethodForNewInstance
protected com.sun.codemodel.JMethod createMethodForNewInstance(org.bonitasoft.engine.bdm.model.BusinessObject bo, com.sun.codemodel.JDefinedClass entity, com.sun.codemodel.JDefinedClass daoInterface) -
createMethodForQuery
protected com.sun.codemodel.JMethod createMethodForQuery(com.sun.codemodel.JDefinedClass entity, com.sun.codemodel.JDefinedClass targetClass, org.bonitasoft.engine.bdm.model.Query query)
-