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 Details

  • Constructor Details

    • AbstractBDMCodeGenerator

      protected AbstractBDMCodeGenerator()
  • Method Details

    • disableRuntimeClassesValidation

      public AbstractBDMCodeGenerator disableRuntimeClassesValidation()
      Overrides:
      disableRuntimeClassesValidation in class CodeGenerator
    • 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:
      IOException
      com.sun.codemodel.JClassAlreadyExistsException
      org.bonitasoft.engine.bdm.BusinessObjectModelValidationException
      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, ClassNotFoundException
      Throws:
      com.sun.codemodel.JClassAlreadyExistsException
      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)