public class PageElementResourceStatistics extends Object implements ResourceStatistics
Modifier and Type | Field and Description |
---|---|
private boolean |
_cacheable |
private boolean |
_cacheHit |
private int |
_newHits |
private String |
_pageElementId |
private String |
_pageId |
private String |
_renderingContext |
private String |
_workspaceJCR |
Constructor and Description |
---|
PageElementResourceStatistics(String pageElementId,
String pageId,
String renderingContext,
String jcrWorkspace,
boolean cacheable,
boolean cacheHit,
int increment)
Creates a statistics
|
Modifier and Type | Method and Description |
---|---|
private int |
_getCacheHits() |
void |
createStat(SqlSession sqlSession)
Creates and configure a statement with an insert query.
|
int |
getHits()
Returns the number of hits
|
boolean |
statExists(SqlSession sqlSession)
Creates and configure a statement with a find query.
|
void |
updateStat(SqlSession sqlSession)
Creates and configure a statement with an update query.
|
private final String _pageElementId
private final String _renderingContext
private final String _workspaceJCR
private final boolean _cacheable
private final boolean _cacheHit
private final int _newHits
public PageElementResourceStatistics(String pageElementId, String pageId, String renderingContext, String jcrWorkspace, boolean cacheable, boolean cacheHit, int increment)
pageElementId
- The page element idpageId
- The page idrenderingContext
- The rendering contextjcrWorkspace
- The jcr workspacecacheable
- The cacheable statuscacheHit
- The cache hit statusincrement
- The number of incrementpublic boolean statExists(SqlSession sqlSession)
ResourceStatistics
statExists
in interface ResourceStatistics
sqlSession
- The sql sessionpublic void createStat(SqlSession sqlSession)
ResourceStatistics
createStat
in interface ResourceStatistics
sqlSession
- The sql sessionpublic void updateStat(SqlSession sqlSession)
ResourceStatistics
updateStat
in interface ResourceStatistics
sqlSession
- The sql sessionpublic int getHits()
ResourceStatistics
getHits
in interface ResourceStatistics
private int _getCacheHits()