public class PageElementResourceAccess extends Object implements ResourceAccess
Modifier and Type | Class and Description |
---|---|
static class |
PageElementResourceAccess.PageElementType
Type of a PageElementAccess.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
_cacheable |
private boolean |
_cacheHit |
private String |
_internalUuid |
private String |
_pageElementID |
private PageElementResourceAccess.PageElementType |
_pageElementType |
private String |
_pageID |
private RenderingContext |
_renderingContext |
private String |
_workspaceJCR |
Constructor and Description |
---|
PageElementResourceAccess(String uuid,
String pageID,
String peid,
PageElementResourceAccess.PageElementType pet,
RenderingContext rc,
String ws)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getInsertStatementId()
Retrieves the name of the SQL statement to call.
|
Map<String,Object> |
getInsertStatementParameters()
Retrieves the map of parameters to use when executing the insert statement.
|
void |
setCacheable(boolean cacheable)
Set the resource as cacheable or not.
|
void |
setCacheHit(boolean hit)
Set the cache hit to true/false
|
private final String _internalUuid
private final String _pageElementID
private final PageElementResourceAccess.PageElementType _pageElementType
private final RenderingContext _renderingContext
private final String _workspaceJCR
private boolean _cacheable
private boolean _cacheHit
public PageElementResourceAccess(String uuid, String pageID, String peid, PageElementResourceAccess.PageElementType pet, RenderingContext rc, String ws)
uuid
- The internal UUIDpageID
- the page's idpeid
- the id of page elementpet
- the type of page elementrc
- the rendering contextws
- the JCR workspace's namepublic String getInsertStatementId()
ResourceAccess
getInsertStatementId
in interface ResourceAccess
public Map<String,Object> getInsertStatementParameters()
ResourceAccess
getInsertStatementParameters
in interface ResourceAccess
public void setCacheable(boolean cacheable)
cacheable
- true to set cacheablepublic void setCacheHit(boolean hit)
hit
- true to enable cache hit