Package com.cloud.domain.dao

Examples of com.cloud.domain.dao.DomainDaoImpl


    }
  }
 
  public void testDomain() {
    getRandomMilliseconds(1, 100);   
    DomainDao domainDao = new DomainDaoImpl();
   
    DomainVO domain1 = new DomainVO("d1", 2L, 1L, null);
    domainDao.create(domain1);
   
    DomainVO domain2 = new DomainVO("d2", 2L, 1L, null);
    domainDao.create(domain2);
   
    DomainVO domain3 = new DomainVO("d3", 2L, 1L, null);
    domainDao.create(domain3);

    DomainVO domain11 = new DomainVO("d11", 2L, domain1.getId(), null);
    domainDao.create(domain11);
   
    domainDao.remove(domain11.getId());
   
    DomainVO domain12 = new DomainVO("d12", 2L, domain1.getId(), null);
    domainDao.create(domain12);
   
    domainDao.remove(domain3.getId());
    DomainVO domain4 = new DomainVO("d4", 2L, 1L, null);
    domainDao.create(domain4);
  }
View Full Code Here


        } catch(InterruptedException e) {
        }
    }

    public void testDomain() {
        DomainDao domainDao = new DomainDaoImpl();

    DomainVO domain1 = new DomainVO("d1", 2L, 1L, null, 1);
        domainDao.create(domain1);

    DomainVO domain2 = new DomainVO("d2", 2L, 1L, null, 1);
        domainDao.create(domain2);

    DomainVO domain3 = new DomainVO("d3", 2L, 1L, null, 1);
        domainDao.create(domain3);

    DomainVO domain11 = new DomainVO("d11", 2L, domain1.getId(), null, 1);
        domainDao.create(domain11);

        domainDao.remove(domain11.getId());

    DomainVO domain12 = new DomainVO("d12", 2L, domain1.getId(), null, 1);
        domainDao.create(domain12);

        domainDao.remove(domain3.getId());
    DomainVO domain4 = new DomainVO("d4", 2L, 1L, null, 1);
        domainDao.create(domain4);
    }
View Full Code Here

  @Bean
  public AgentManager agentMgr() {
    return new DirectAgentManagerSimpleImpl();
  }
  @Bean DomainDao domainDao() {
      return new DomainDaoImpl();
  }
View Full Code Here

TOP

Related Classes of com.cloud.domain.dao.DomainDaoImpl

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.