Class PageResourceStatistics

    • Constructor Detail

      • PageResourceStatistics

        public PageResourceStatistics​(String pageId,
                                      String hashPath,
                                      String path,
                                      String renderingContext,
                                      String jcrWorkspace,
                                      boolean cacheable,
                                      int increment)
        Creates a page resource statistics
        Parameters:
        pageId - The page id
        hashPath - a consistent hash of the path.
        path - The associated path
        renderingContext - The rendering context
        jcrWorkspace - The jcr workspace
        cacheable - Is the page cacheable ?
        increment - Number of associated hits
    • Method Detail

      • statExists

        public boolean statExists​(org.apache.ibatis.session.SqlSession sqlSession)
        Description copied from interface: ResourceStatistics
        Creates and configure a statement with a find query.
        Specified by:
        statExists in interface ResourceStatistics
        Parameters:
        sqlSession - The sql session
        Returns:
        A non null ready to execute prepared statement
      • createStat

        public void createStat​(org.apache.ibatis.session.SqlSession sqlSession)
        Description copied from interface: ResourceStatistics
        Creates and configure a statement with an insert query.
        Specified by:
        createStat in interface ResourceStatistics
        Parameters:
        sqlSession - The sql session
      • updateStat

        public void updateStat​(org.apache.ibatis.session.SqlSession sqlSession)
        Description copied from interface: ResourceStatistics
        Creates and configure a statement with an update query.
        Specified by:
        updateStat in interface ResourceStatistics
        Parameters:
        sqlSession - The sql session