Examples of Dao


Examples of org.internna.iwebmvc.dao.DAO

     */
    @RemoteProperty public PollVote getCurrentUserVote() {
        HttpServletRequest request = RequestContextUtils.getActiveRequest();
        if (request != null) {
            UserManager userManager = (UserManager) WebApplicationContextUtils.getBean("sessionUserManager");
            DAO dao = (DAO) WebApplicationContextUtils.getBean("baseDAO");
            if ((userManager!= null) && (dao != null))
                return getUserVote(userManager.getActiveUser(request), request.getRemoteAddr(), dao);
        }
        return null;
    }

Examples of org.jboss.embedded.test.ejb.DAO

      group.addClasspath("ejb-test.jar");
      group.process();

      outputJNDI();
      InitialContext ctx = new InitialContext();
      DAO dao = (DAO)ctx.lookup("DAOBean/local");
      Customer cust = dao.createCustomer("Bill");
      cust = dao.findCustomer("Bill");
      assert cust != null;
      assert cust.getName().equals("Bill");

      group.undeploy();

Examples of org.jboss.embedded.test.ejb.DAO

       group.addClasspath("ejb-test.jar");
       group.process();

       outputJNDI();
       InitialContext ctx = new InitialContext();
       DAO dao = (DAO)ctx.lookup("DAOBean/local");
       Customer cust = dao.createCustomer("Bill");
       cust = dao.findCustomer("Bill");
       assert cust != null;
       assert cust.getName().equals("Bill");

       group.undeploy();

Examples of org.jboss.embedded.test.ejb.DAO

      group.addClasspath("ejb-test.jar");
      group.process();

      outputJNDI();
      InitialContext ctx = new InitialContext();
      DAO dao = (DAO)ctx.lookup("DAOBean/local");
      Customer cust = dao.createCustomer("Bill");
      cust = dao.findCustomer("Bill");
      assert cust != null;
      assert cust.getName().equals("Bill");

      group.undeploy();

Examples of org.jboss.embedded.test.ejb.DAO

       group.addClasspath("ejb-test.jar");
       group.process();

       outputJNDI();
       InitialContext ctx = new InitialContext();
       DAO dao = (DAO)ctx.lookup("DAOBean/local");
       Customer cust = dao.createCustomer("Bill");
       cust = dao.findCustomer("Bill");
       assert cust != null;
       assert cust.getName().equals("Bill");

       group.undeploy();

Examples of org.jboss.embedded.test.ejb.DAO


   public void testSimpleEjb() throws Exception
   {
      InitialContext ctx = getInitialContext();
      DAO dao = (DAO)ctx.lookup("DAOBean/local");
      Customer cust = dao.createCustomer("Bill");
      cust = dao.findCustomer("Bill");
      assertNotNull(cust);
      assertEquals(cust.getName(), "Bill");
   }

Examples of org.jboss.embedded.test.vfs.DAO

      AssembledDirectory jar = AssembledContextFactory.getInstance().create("vfs-test2.jar");
      String[] includes = {"org/jboss/embedded/test/vfs/*.class"};
      jar.addResources(DAO.class, includes, null);
      jar.mkdir("META-INF").addResource("vfs-test-persistence.xml", "persistence.xml");
      Bootstrap.getInstance().deploy(jar);
      DAO dao = (DAO)new InitialContext().lookup("DAOBean/local");
      dao.create("Bill");
      Customer cust = dao.find("Bill");
      assertNotNull(cust);

   }

Examples of org.kitesdk.data.hbase.impl.Dao

        subEntityClasses.add(subEntityClass);
      } catch (ClassNotFoundException e) {
        throw new DatasetOperationException("Failed to resolve sub-type", e);
      }
    }
    Dao dao = SpecificAvroDao.buildCompositeDaoWithEntityManager(tablePool,
        tableName, subEntityClasses, schemaManager);
    return new DaoDataset<E>(namespace, name, dao, descriptors.get(0),
        new URIBuilder(repositoryUri, namespace, name).build(), type);
  }

Examples of org.nanocontainer.aop.Dao

                "    component(key:Dao, class:DaoImpl)\n" +
                "    component(key:StringBuffer, instance:log)\n" +
                "}\n";

        PicoContainer pico = buildContainer(script);
        Dao dao = (Dao) pico.getComponentInstance(Dao.class);
        StringBuffer log = (StringBuffer) pico.getComponentInstance(StringBuffer.class);
        verifyIntercepted(dao, log);
    }

Examples of org.nanocontainer.aop.Dao

                "    component(key:Dao, class:DaoImpl)\n" +
                "    component(key:StringBuffer, instance:log)\n" +
                "}\n";

        PicoContainer pico = buildContainer(script);
        Dao dao = (Dao) pico.getComponentInstance(Dao.class);
        StringBuffer log = (StringBuffer) pico.getComponentInstance(StringBuffer.class);
        verifyIntercepted(dao, log);
    }
TOP
Copyright © 2018 www.massapi.com. 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.