Class AbstractBDMCodeGenerator
- java.lang.Object
-
- org.bonitasoft.engine.business.data.generator.CodeGenerator
-
- org.bonitasoft.engine.business.data.generator.AbstractBDMCodeGenerator
-
- Direct Known Subclasses:
ClientBDMCodeGenerator,ServerBDMCodeGenerator
public abstract class AbstractBDMCodeGenerator extends CodeGenerator
- Author:
- Romain Bioteau, Matthieu Chaffotte
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDAO_IMPL_SUFFIX
-
Constructor Summary
Constructors Constructor Description AbstractBDMCodeGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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, java.io.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 Detail
-
DAO_IMPL_SUFFIX
protected static final java.lang.String DAO_IMPL_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateBom
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- Throws:
java.io.IOExceptioncom.sun.codemodel.JClassAlreadyExistsExceptionorg.bonitasoft.engine.bdm.BusinessObjectModelValidationExceptionjava.lang.ClassNotFoundException
-
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, java.lang.ClassNotFoundException- Throws:
com.sun.codemodel.JClassAlreadyExistsExceptionjava.lang.ClassNotFoundException
-
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)
-
-