Examples of DAO


Examples of com.gwesm.dao.DAO

public class TestDAO {

  @Test
  public void testLoadSave() throws Exception {
    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData\\GWESM-Sample.xml");
    dao.saveData(gwesm, "testsData\\outputs\\GWESM-Sample-Output.xml");
  }

Examples of com.gwesm.dao.DAO

  @Test
  public void testSaveGWESM() throws Exception {

    final String outputFile = "testsData\\outputs\\SaveGWESM.xml";
    DAO dao = new CastorDAO();

    // Creation de l'arbre
    GWESM gwesm = new GWESM();

    Account account1 = new Account("Mon Compte");
    gwesm.addAccount(account1);

    // Verif création
    Assert.assertEquals(1, gwesm.getAccounts().size());

    // Sauvegarde
    dao.saveData(gwesm, outputFile);

    // Chargement
    GWESM loadedGwesm = dao.loadData(outputFile);
    // Verif persistence
    Assert.assertEquals(1, loadedGwesm.getAccounts().size());

  }

Examples of com.gwesm.dao.DAO

    }
  }

  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData" + File.separator
        + "GWESM-Sample.xml");
    Account account = gwesm.getAccounts().get(0);

    Display display = new Display();
    final Shell shell = new Shell(display);

Examples of com.gwesm.dao.DAO

   * @param args
   * @throws DAOException
   */
  public static void main(final String[] args) throws DAOException {

    DAO dao = new CastorDAO();
    GWESM gwesm = dao.loadData("testsData" + File.separator
        + "GWESM-Sample.xml");
    Account account = gwesm.getAccounts().get(1);

    Display display = new Display();
    final Shell shell = new Shell(display);

Examples of com.ibatis.dao.client.Dao

          daoImpl.setDaoContext(daoContext);
          daoImpl.setDaoInterface(Resources.classForName(iface));
          daoImpl.setDaoImplementation(Resources.classForName(impl));

          Class daoClass = daoImpl.getDaoImplementation();
          Dao dao = null;

          try {
            Constructor constructor = daoClass.getConstructor(new Class[]{DaoManager.class});
            dao = (Dao) constructor.newInstance(new Object[]{daoManager});
          } catch (Exception e) {

Examples of com.ibatis.dao.client.Dao

          daoImpl.setDaoContext(daoContext);
          daoImpl.setDaoInterface(Resources.classForName(iface));
          daoImpl.setDaoImplementation(Resources.classForName(impl));

          Class daoClass = daoImpl.getDaoImplementation();
          Dao dao = null;

          try {
            Constructor constructor = daoClass.getConstructor(new Class[]{DaoManager.class});
            dao = (Dao) constructor.newInstance(new Object[]{daoManager});
          } catch (Exception e) {

Examples of com.mmoscene.h4j.database.DAO

        getLogger().info("");

        config.load("props/server.properties");
        network.listen();
        pool.load();
        db_obj = new DAO();
        communication_manager = new CommunicationManager();

        habbo_hotel = new HabboHotel();
    }

Examples of com.vst.dao.Dao

           new String[]{"com/vst/snippets/snippetsContext-hibernate.xml"});

       final VstDomainDaoRegistry registry =
         (VstDomainDaoRegistry) context.getBean("daoRegistry");

       Dao dao= registry.getAnswerDao();
       System.out.println(dao.getClass().getName());

  }

Examples of com.zesped.DAO

public class CityWriter {

    public static void main(String[] args) throws Exception {
      ModelManager oMan = new ModelManager();
      DAO oDao = new DAO();   
      oDao.init(oMan.getConnectionProperties());
      AtrilSession oSes = DAO.getAdminSession("CityWriter");
      oSes.autoCommit(true);
      oMan.writeCities(oSes, "es");
      oSes.disconnect();
      oSes.close();
      oDao.destroy();
      }

Examples of comum.database.Dao

     
      List itensLista = new ArrayList();
     
      /** Cria uma inst�ncia do objeto **/ 
        Object obj = Class.forName(getObjeto()).newInstance();
        Dao dao = new Dao();
        Session session = dao.getSession();
     
      if (getColecao() == null){
          /** Cria um criteria para selecionar o objeto desejado **/
          Criteria select = session.createCriteria( Class.forName(getObjeto()) );
         
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.