Package de.timefinder.data.access

Examples of de.timefinder.data.access.EventDao


    }

    public long start(int seconds, long seed, String fileOrFolder) throws Exception {
//        logger.info("process file:" + fileOrFolder);

        EventDao eDao = new EventDaoSimpl();
        PersonDao pDao = new PersonDaoSimpl();
        LocationDao lDao = new LocationDaoSimpl();
        FeatureDao fDao = new FeatureDaoSimpl();
        DataPool dataPool = new DataPoolImpl();
        dataPool.setDao(eDao);
View Full Code Here


    }

    // taken from xstream import
    private void oldAssertations(DataPool importDataPool) {
        PersonDao newPDao = (PersonDao) importDataPool.getDao(Person.class);
        EventDao newEDao = (EventDao) importDataPool.getDao(Event.class);
        FeatureDao newFDao = (FeatureDao) importDataPool.getDao(Feature.class);
        LocationDao newLDao = (LocationDao) importDataPool.getDao(Location.class);

        assertEquals(4, newPDao.getAll().size());
        assertEquals(4, newFDao.getAll().size());
        assertEquals(4, newEDao.getAll().size());
        assertEquals(4, newLDao.getAll().size());

        assertNotNull(newPDao);
        assertNotNull(newFDao);
        assertNotNull(newEDao);
        assertNotNull(newLDao);

        Person newPerson1 = newPDao.findFirstByName("person1");
        Person newPerson2 = newPDao.findFirstByName("person2");
        Person newPerson3 = newPDao.findFirstByName("person3");
        Person newPerson4 = newPDao.findFirstByName("person4");

        Event newEv1 = newEDao.findFirstByName("event1");
        Event newEv2 = newEDao.findFirstByName("event2");
        Event newEv3 = newEDao.findFirstByName("event3");
        Event newEv4 = newEDao.findFirstByName("event4");

        Location newLoc1 = newLDao.findFirstByName("location1");
        Location newLoc2 = newLDao.findFirstByName("location2");
        Location newLoc3 = newLDao.findFirstByName("location3");
        Location newLoc4 = newLDao.findFirstByName("location4");
View Full Code Here

TOP

Related Classes of de.timefinder.data.access.EventDao

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.