java.lang.Object | |
↳ | com.microstrategy.web.transform.AbstractLayoutSource.LayoutCacheHint |
This class serves as both CacheHint and Cache key. To act as CacheHint, it needs to implement getCacheStateId and setCacheStateId. To act as Cache key, it needs to provides the equals and hashCode methods.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LayoutCacheHint(String sourceLocation, LayoutParser layoutParser, LayoutSource layoutSource)
The constructor of the
LayoutCacheHint class. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
equals(Object anObject)
Indicates whether some other object is "equal to" this one.
| ||||||||||
Long |
getCacheStateId(String name)
This method returns an cache state id of zero.
| ||||||||||
int |
hashCode()
Returns a hash code value for the object.
| ||||||||||
void |
setCacheStateId(String name, Long stateId)
This method is a no-op.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The constructor of the LayoutCacheHint
class.
The source location and the fully qualified class name of the layout
parser are used as keys
sourceLocation | the layout location |
---|---|
layoutParser | the layout parser |
layoutSource | the layout source |
Indicates whether some other object is "equal to" this one.
This method uses the layout source location and layout parser
name to compare the equalness of two LayoutCacheHint
.
anObject | another LayoutCacheHint . |
---|
true
if the current LayoutCacheHint
is equal to the object passed in.
This method returns an cache state id of zero.
name | the cache name |
---|
Returns a hash code value for the object. This method "xor" the hash codes of the source location and the parser class name.
This method is a no-op.
name | the cache name |
---|---|
stateId | the cache state id |