Class HitDAO
java.lang.Object
fr.paris.lutece.plugins.extend.modules.hit.business.HitDAO
- All Implemented Interfaces:
IHitDAO
InteractionHitDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete.voiddeleteByResource(String strIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete hits of a given resourcefindByResourceList(List<String> listIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get list of Hit by ids resources.findIdMostHitedResources(String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the ids of resources ordered by their number of hitsvoidincrement(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Adds one hit, in the database (no lost increment between concurrent requests or instances)voidInsert.load(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load.loadByParameters(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load by id extender.voidUpdate.
-
Constructor Details
-
HitDAO
public HitDAO()
-
-
Method Details
-
insert
Insert. -
store
Update. -
increment
public void increment(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Adds one hit, in the database (no lost increment between concurrent requests or instances) -
delete
public void delete(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete. -
deleteByResource
public void deleteByResource(String strIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete hits of a given resource- Specified by:
deleteByResourcein interfaceIHitDAO- Parameters:
strIdResource- the id of the resource, or a wildcare to remove allstrResourceType- The resource type to deleteplugin- the plugin
-
load
Load. -
loadByParameters
public Hit loadByParameters(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load by id extender.- Specified by:
loadByParametersin interfaceIHitDAO- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typeplugin- the plugin- Returns:
- the hit
-
findIdMostHitedResources
public List<Integer> findIdMostHitedResources(String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the ids of resources ordered by their number of hits- Specified by:
findIdMostHitedResourcesin interfaceIHitDAO- Parameters:
strExtendableResourceType- The type of resources to considernItemsOffset- The offset of the items to get, or 0 to get items from the first onenMaxItemsNumber- The maximum number of items to return, or 0 to get every itemsplugin- the plugin- Returns:
- The list of ids of resources ordered by the number hits
-
findByResourceList
public List<Hit> findByResourceList(List<String> listIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IHitDAOGet list of Hit by ids resources.- Specified by:
findByResourceListin interfaceIHitDAO- Parameters:
listIdExtendableResource- the list of str id extendable resourcestrExtendableResourceType- the str extendable resource typeplugin- the plugin- Returns:
- the hit list
-