Package de.timefinder.data.access

Examples of de.timefinder.data.access.LocationDao


    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);
        dataPool.setDao(fDao);
        dataPool.setDao(pDao);
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");

        Feature newFeature1 = newFDao.findFirstByName("feature1");
        Feature newFeature2 = newFDao.findFirstByName("feature2");

        assertTrue(newPerson1.getEventsMap().containsKey(newEv1));
View Full Code Here

TOP

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

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.