protected static class

AbstractLayoutSource.LayoutCacheHint

extends Object
implements CacheHint
java.lang.Object
   ↳ com.microstrategy.web.transform.AbstractLayoutSource.LayoutCacheHint

Class Overview

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.

Summary

[Expand]
Inherited Fields
From interface com.microstrategy.utils.cache.CacheHint
Public Constructors
AbstractLayoutSource.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
From class java.lang.Object
From interface com.microstrategy.utils.cache.CacheHint

Public Constructors

public AbstractLayoutSource.LayoutCacheHint (String sourceLocation, LayoutParser layoutParser, LayoutSource layoutSource)

The constructor of the LayoutCacheHint class. The source location and the fully qualified class name of the layout parser are used as keys

Parameters
sourceLocation the layout location
layoutParser the layout parser
layoutSource the layout source

Public Methods

public boolean equals (Object anObject)

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.

Parameters
anObject another LayoutCacheHint.
Returns
  • true if the current LayoutCacheHint is equal to the object passed in.

public Long getCacheStateId (String name)

This method returns an cache state id of zero.

Parameters
name the cache name
Returns
  • the state id

public int hashCode ()

Returns a hash code value for the object. This method "xor" the hash codes of the source location and the parser class name.

Returns
  • a hash code value for this object.

public void setCacheStateId (String name, Long stateId)

This method is a no-op.

Parameters
name the cache name
stateId the cache state id