Class AbstractBDMCodeGenerator

    • Field Detail

      • DAO_IMPL_SUFFIX

        protected static final java.lang.String DAO_IMPL_SUFFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractBDMCodeGenerator

        public AbstractBDMCodeGenerator()
    • 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.IOException
        com.sun.codemodel.JClassAlreadyExistsException
        org.bonitasoft.engine.bdm.BusinessObjectModelValidationException
        java.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.JClassAlreadyExistsException
        java.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)