public class FrontResourceAccess extends Object implements ResourceAccess
Modifier and Type | Field and Description |
---|---|
private boolean |
_cacheable |
private boolean |
_cacheHit1 |
private boolean |
_cacheHit2 |
private String |
_internalUuid |
private String |
_path |
private String |
_pathHash |
private String |
_site |
private String |
_uniqueID |
Constructor and Description |
---|
FrontResourceAccess(String uniqueID,
String internalUuid,
String site,
String path)
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 |
setCacheHit1(boolean hit)
Set the first cache hit to true/false
|
void |
setCacheHit2(boolean hit)
Set the second cache hit to true/false
|
private final String _internalUuid
private boolean _cacheable
private boolean _cacheHit1
private boolean _cacheHit2
public FrontResourceAccess(String uniqueID, String internalUuid, String site, String path)
uniqueID
- the id of the front resource accessinternalUuid
- the internal uuid the resourcesite
- the involved sitepath
- the path of the resourcepublic String getInsertStatementId()
ResourceAccess
getInsertStatementId
in interface ResourceAccess
public Map<String,Object> getInsertStatementParameters()
ResourceAccess
getInsertStatementParameters
in interface ResourceAccess
public void setCacheable(boolean cacheable)
cacheable
- is the front esource access cacheable ?public void setCacheHit1(boolean hit)
hit
- the value to set to the first cache hitpublic void setCacheHit2(boolean hit)
hit
- the value to set to the second cache hit