Examples of truncate()


Examples of in.partake.model.dao.access.IMessageAccess.truncate()

    }

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IMessageAccess dao = daos.getMessageAccess();
        dao.truncate(con);

        dao.put(con, new Message(DEFAULT_MESSAGE_ID, "subject", "body", new DateTime(0L), null));
    }
}
View Full Code Here

Examples of in.partake.model.dao.access.ITwitterMessageAccess.truncate()

    }

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        ITwitterMessageAccess dao = daos.getTwitterMessageAccess();
        dao.truncate(con);

        // Do not add TWITTER_MESSAGE_NONEXIST_ID here.
        dao.put(con, new TwitterMessage(TWITTER_MESSAGE_INQUEUE_ID, DEFAULT_USER_ID, "message", MessageDelivery.INQUEUE, new DateTime(0), null));
    }
}
View Full Code Here

Examples of in.partake.model.dao.access.IUserAccess.truncate()

     * @throws DAOException
     */
    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserAccess dao = daos.getUserAccess();
        dao.truncate(con);

        for (int i = 0; i < DEFAULT_USER_IDS.length; ++i)
            dao.put(con, new User(DEFAULT_USER_IDS[i], DEFAULT_USER_TWITTER_SCREENNAME[i], "http://www.example.com/", TimeUtil.getCurrentDateTime(), null, false));

        dao.put(con, new User(DEFAULT_USER_ID, DEFAULT_TWITTER_SCREENNAME, "http://www.example.com/", TimeUtil.getCurrentDateTime(), null, false));
View Full Code Here

Examples of in.partake.model.dao.access.IUserCalendarLinkageAccess.truncate()

    }

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserCalendarLinkageAccess dao = daos.getCalendarAccess();
        dao.truncate(con);

        dao.put(con, new UserCalendarLink(DEFAULT_CALENDAR_ID, DEFAULT_USER_ID));
        dao.put(con, new UserCalendarLink(ENROLLED_USER_CALENDAR_ID, EVENT_ENROLLED_USER_ID));
    }
}
View Full Code Here

Examples of in.partake.model.dao.access.IUserImageAccess.truncate()

    }

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserImageAccess dao = daos.getImageAccess();
        dao.truncate(con);

        // IMAGE_OWNED_BY_DEFAULT_USER_ID contains DEFAULT_IMAGE_ID.
        dao.put(con, new UserImage(EVENT_FOREIMAGE_ID, EVENT_OWNER_ID, "byte/octet-stream", defaultImageContent, TimeUtil.getCurrentDateTime()));
        dao.put(con, new UserImage(EVENT_BACKIMAGE_ID, EVENT_OWNER_ID, "byte/octet-stream", defaultImageContent, TimeUtil.getCurrentDateTime()));
        dao.put(con, new UserImage(IMAGE_OWNER_IMAGE_ID, IMAGE_OWNER_ID, "byte/octet-stream", defaultImageContent, TimeUtil.getCurrentDateTime()));
View Full Code Here

Examples of in.partake.model.dao.access.IUserNotificationAccess.truncate()

        return array;
    }

    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserNotificationAccess dao = daos.getUserNotificationAccess();
        dao.truncate(con);

        dao.put(con, new UserNotification(USER_NOTIFICATION_INQUEUE_ID, DEFAULT_EVENT_TICKET_ID, DEFAULT_USER_ID, NotificationType.EVENT_ONEDAY_BEFORE_REMINDER, MessageDelivery.INQUEUE, new DateTime(0), null));
    }
}
View Full Code Here

Examples of in.partake.model.dao.access.IUserOpenIDLinkAccess.truncate()

        return array;
    }

    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserOpenIDLinkAccess dao = daos.getOpenIDLinkageAccess();
        dao.truncate(con);

        dao.put(con, new UserOpenIDLink(DEFAULT_USER_OPENID_ID, DEFAULT_USER_ID, DEFAULT_USER_OPENID_IDENTIFIER));
        dao.put(con, new UserOpenIDLink(DEFAULT_USER_OPENID_ALTERNATIVE_ID, DEFAULT_USER_ID, DEFAULT_USER_OPENID_ALTERNATIVE_IDENTIFIER));
    }
}
View Full Code Here

Examples of in.partake.model.dao.access.IUserPreferenceAccess.truncate()

    }

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserPreferenceAccess dao = daos.getUserPreferenceAccess();
        dao.truncate(con);

        dao.put(con, new UserPreference(DEFAULT_USER_ID, true, true, false));
        dao.put(con, new UserPreference(USER_WITH_PRIVATE_PREF_ID, false, true, false));
    }
}
View Full Code Here

Examples of in.partake.model.dao.access.IUserReceivedMessageAccess.truncate()

    }

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserReceivedMessageAccess dao = daos.getUserReceivedMessageAccess();
        dao.truncate(con);

        dao.put(con, new UserReceivedMessage(USER_RECEIVED_MESSAGE_INQUEUE_ID,
                DEFAULT_SENDER_ID, DEFAULT_RECEIVER_ID, DEFAULT_EVENT_ID, DEFAULT_MESSAGE_ID.toString(),
                false, MessageDelivery.INQUEUE, null, null, new DateTime(0L), null));
    }
View Full Code Here

Examples of in.partake.model.dao.access.IUserThumbnailAccess.truncate()

    }

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserThumbnailAccess dao = daos.getThumbnailAccess();
        dao.truncate(con);

        dao.put(con, new UserThumbnail(DEFAULT_IMAGE_ID, DEFAULT_USER_ID, "byte/octet-stream", defaultImageContent, new DateTime(0L)));
    }
}
View Full Code Here
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.