Package com.vst.dao

Examples of com.vst.dao.ConstructionExampleDao


                DefectParameter defectParameter = (DefectParameter) objectList.get(i);
                Integer constructionDefectId = defectParameter.getConstructionDefectId();
                try {
                    ConstructionDefectDao constructionDefectDao = (ConstructionDefectDao) factory.getBean("constructionDefectDao");
                    ConstructionDefect constructionDefect = (ConstructionDefect) constructionDefectDao.getConstructionDefect(constructionDefectId);
                    ConstructionExampleDao constructionExampleDao = (ConstructionExampleDao) factory.getBean("constructionExampleDao");
                    ConstructionExample constructionExample = constructionExampleDao.getConstructionExample(constructionDefect.getExampleId());
                    referenceList.add("<a href='constructionDefects.html?constructionDefectId=" + defectParameter.getConstructionDefectId() + "&exampleId=" + constructionDefect.getExampleId() + "'>Параметр дефекта экземпляра конструкции - " + (constructionExample.getExampleName() == null ? String.valueOf(constructionExample.getExampleRelativeNumber()) : constructionExample.getExampleName()) + ". Тип конструкции - " + constructionExample.getConstructionType() + "</a><br/>");
                    //System.out.println("<a href='constructionDefects.html?constructionDefectId=" + defectParameter.getConstructionDefectId() + "&exampleId=" + constructionDefect.getExampleId() + "'>Параметр дефекта экземпляра конструкции - " + (constructionExample.getExampleName() == null ? constructionExample.getExampleNumber() : constructionExample.getExampleName()) + ". Тип конструкции - " + constructionExample.getConstructionType() + "</a><br/>");
                }
                catch (Exception e) {
View Full Code Here


         (BuildingObjectDao) context.getBean("buildingObjectDao");

       final RegionDao regionDao =
         (RegionDao) context.getBean("regionDao");

       final ConstructionExampleDao csamplesDao =
         (ConstructionExampleDao) context.getBean("constructionExampleDao");

       final DetailDaoHibernate detailDao =
         (DetailDaoHibernate) context.getBean("detailDao");
View Full Code Here

         (BuildingObjectDao) context.getBean("buildingObjectDao");

       final RegionDao regionDao =
         (RegionDao) context.getBean("regionDao");

       final ConstructionExampleDao csamplesDao =
         (ConstructionExampleDao) context.getBean("constructionExampleDao");

       PlatformTransactionManager txManager =
         (PlatformTransactionManager) context.getBean("txManager");

       new TransactionTemplate(txManager).execute(new TransactionCallback() {

    @Override
    public Object doInTransaction(TransactionStatus arg0) {
      long start = System.currentTimeMillis();

           List<?> rlist = regionDao.getObjects();
           List<?> blist = buildingDao.getBuildingObjectsForTree();

           System.out.println(rlist);
           System.out.println(blist);

           for (Object o : blist){
             BuildingObject bo = (BuildingObject) o;
             List<?> clist =
               buildingDao.getConstructionTypesForTree(bo.getObjectId());
             System.out.println(bo);
             System.out.println(clist);
             for (Object c: clist){
               ObjectConstruction ct = (ObjectConstruction) c;
               List<?> samplelist =
                 csamplesDao.getConstructionExamplesLite("" + ct.getTypeId(), "tree");

               System.out.println(samplelist);
             }
           }
View Full Code Here

         (BuildingObjectDao) context.getBean("buildingObjectDao");

       final RegionDao regionDao =
         (RegionDao) context.getBean("regionDao");

       final ConstructionExampleDao csamplesDao =
         (ConstructionExampleDao) context.getBean("constructionExampleDao");

       PlatformTransactionManager txManager =
         (PlatformTransactionManager) context.getBean("txManager");
View Full Code Here

         (BuildingObjectDao) context.getBean("buildingObjectDao");

       final ObjectConstructionDao ocDao =
         (ObjectConstructionDao) context.getBean("objectConstructionDao");

       final ConstructionExampleDao csamplesDao =
         (ConstructionExampleDao) context.getBean("constructionExampleDao");

       final QuestionDao questionDao =
         (QuestionDao) context.getBean("questionDao");
View Full Code Here

TOP

Related Classes of com.vst.dao.ConstructionExampleDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.