DataAccessObject
.@DefaultProvider(value=BridgeItemEventDAO.DynamicProvider.class) @Deprecated public interface ItemEventDAO
DAO to retrieve events by item.
Modifier and Type | Method and Description |
---|---|
List<Event> |
getEventsForItem(long item)
Deprecated.
Get the events for a specific item.
|
<E extends Event> |
getEventsForItem(long item,
Class<E> type)
Deprecated.
Get the events for a specific item, filtering by type.
|
LongSet |
getUsersForItem(long item)
Deprecated.
Get the users who have interacted with an item.
|
ObjectStream<ItemEventCollection<Event>> |
streamEventsByItem()
Deprecated.
Stream events grouped by item.
|
<E extends Event> |
streamEventsByItem(Class<E> type)
Deprecated.
Stream events grouped by item.
|
ObjectStream<ItemEventCollection<Event>> streamEventsByItem()
Stream events grouped by item.
<E extends Event> ObjectStream<ItemEventCollection<E>> streamEventsByItem(Class<E> type)
Stream events grouped by item.
type
- The type of item to look for.type
from all items. If an item exists but does not have any events, it may or may not be included depending on the DAO implementation.List<Event> getEventsForItem(long item)
Get the events for a specific item.
item
- The item ID.null
if the item is unknown.@Nullable <E extends Event> List<E> getEventsForItem(long item, Class<E> type)
Get the events for a specific item, filtering by type.
item
- The item ID.type
- The type of events to retrieve.null
if the item is unknown.