@DefaultImplementation(value=PrefetchingUserEventDAO.class) public interface UserEventDAO
| Modifier and Type | Method and Description |
|---|---|
UserHistory<Event> |
getEventsForUser(long user)
Get the events for a specific user.
|
<E extends Event> |
getEventsForUser(long user,
Class<E> type)
Get the events for a specific user, filtering by type.
|
Cursor<UserHistory<Event>> |
streamEventsByUser()
Stream events grouped by user.
|
<E extends Event> |
streamEventsByUser(Class<E> type)
Stream events grouped by user.
|
Cursor<UserHistory<Event>> streamEventsByUser()
<E extends Event> Cursor<UserHistory<E>> streamEventsByUser(Class<E> type)
type - The type of item to look for.type. If a
user exists, but does not have any history, they may or may not be included depending
on the DAO implementation.@Nullable UserHistory<Event> getEventsForUser(long user)
user - The user ID.null if the user is unknown.@Nullable <E extends Event> UserHistory<E> getEventsForUser(long user, Class<E> type)
user - The user ID.type - The type of events to retrieve.null if the user is unknown.