Package in.partake.model.dto

Examples of in.partake.model.dto.EventFeed


import java.util.UUID;

public class EventFeedTestDataProvider extends TestDataProvider<EventFeed> {
    @Override
    public EventFeed create(long pkNumber, String pkSalt, int objNumber) {
        return new EventFeed(new UUID(pkNumber, pkSalt.hashCode()).toString(), "eventId" + objNumber);
    }
View Full Code Here


    }

    @Override
    public List<EventFeed> createSamples() {
        List<EventFeed> array = new ArrayList<EventFeed>();
        array.add(new EventFeed(new UUID(0, 0).toString(), "eventId"));
        array.add(new EventFeed(new UUID(0, 1).toString(), "eventId"));
        array.add(new EventFeed(new UUID(0, 0).toString(), "eventId1"));
        return array;
    }
View Full Code Here

    }

    @Override
    protected EventFeed create(long pkNumber, String pkSalt, int objNumber) {
        UUID uuid = new UUID(pkNumber, ("feed" + pkSalt).hashCode());
        return new EventFeed(uuid.toString(), "eventId" + objNumber);
    }
View Full Code Here

        // Feed Dao にも挿入。
        String feedId = daos.getEventFeedAccess().findByEventId(con, eventId);
        if (feedId == null) {
            feedId = daos.getEventFeedAccess().getFreshId(con);
            daos.getEventFeedAccess().put(con, new EventFeed(feedId, eventId));
        }

        // Event Activity にも挿入
        {
            IEventActivityAccess eaa = daos.getEventActivityAccess();
View Full Code Here

    }

    @Override
    protected InputStream doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException {
        IEventFeedAccess feedAccess = daos.getEventFeedAccess();
        EventFeed linkage = feedAccess.find(con, feedId);
        if (linkage == null)
            return null;

        event = EventDAOFacade.getEventEx(con, daos, linkage.getEventId());
        if (event == null)
            return null;

        eventActivities = daos.getEventActivityAccess().findByEventId(con, event.getId(), 100);
        return null;
View Full Code Here

import in.partake.model.dao.postgres9.Postgres9IndexDao;
import in.partake.model.dto.EventFeed;

class EntityEventFeedMapper extends Postgres9EntityDataMapper<EventFeed> {
    public EventFeed map(ObjectNode obj) {
        return new EventFeed(obj).freeze();
    }
View Full Code Here

TOP

Related Classes of in.partake.model.dto.EventFeed

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.