/** * Construct a rating vector source. * @param dao The data access object. * @param type An entity type. Entities of this type should have {@link CommonAttributes#USER_ID} and * {@link CommonAttributes#ITEM_ID} attributes, and a rating vector will makeVector the number * of times an item ID appears for a given user ID. */ @Inject public CountSumRatingVectorPDAO(DataAccessObject dao, @InteractionEntityType EntityType type) { super(dao); this.type = type; }
/** * Construct a rating vector source. * @param dao The data access object. * @param type An entity type. Entities of this type should have {@link CommonAttributes#USER_ID} and * {@link CommonAttributes#ITEM_ID} attributes, and a rating vector will makeVector the number * of times an item ID appears for a given user ID. */ @Inject public EntityCountRatingVectorPDAO(DataAccessObject dao, @InteractionEntityType EntityType type) { super(dao); this.type = type; }
/** * Construct the provider. * @param type The entity type. It should have {@link CommonAttributes#ITEM_ID} attributes. * @param dao The data access object. */ @Inject public ISProvider(@InteractionEntityType EntityType type, @Transient DataAccessObject dao) { entityType = type; this.dao = dao; }
/** * Construct the provider. * @param type The entity type. It should have {@link CommonAttributes#ITEM_ID} attributes. * @param dao The data access object. */ @Inject public CountSumISProvider(@InteractionEntityType EntityType type, @Transient DataAccessObject dao) { entityType = type; this.dao = dao; }
/** * Construct a rating vector source. * @param dao The data access object. * @param type An entity type. Entities of this type should have {@link CommonAttributes#USER_ID} and * {@link CommonAttributes#ITEM_ID} attributes, and a rating vector will makeVector the number * of times an item ID appears for a given user ID. */ @Inject public EntityCountRatingVectorPDAO(DataAccessObject dao, @InteractionEntityType EntityType type) { super(dao); this.type = type; }
/** * Construct a rating vector source. * @param dao The data access object. * @param type An entity type. Entities of this type should have {@link CommonAttributes#USER_ID} and * {@link CommonAttributes#ITEM_ID} attributes, and a rating vector will makeVector the number * of times an item ID appears for a given user ID. */ @Inject public CountSumRatingVectorPDAO(DataAccessObject dao, @InteractionEntityType EntityType type) { super(dao); this.type = type; }
/** * Construct the provider. * @param type The entity type. It should have {@link CommonAttributes#ITEM_ID} attributes. * @param dao The data access object. */ @Inject public ISProvider(@InteractionEntityType EntityType type, @Transient DataAccessObject dao) { entityType = type; this.dao = dao; }
/** * Construct the provider. * @param type The entity type. It should have {@link CommonAttributes#ITEM_ID} attributes. * @param dao The data access object. */ @Inject public CountSumISProvider(@InteractionEntityType EntityType type, @Transient DataAccessObject dao) { entityType = type; this.dao = dao; }