Package de.hybris.platform.tx
Class InvalidationSet.Invalidation
- java.lang.Object
-
- de.hybris.platform.tx.InvalidationSet.Invalidation
-
- Enclosing class:
- InvalidationSet
@NotThreadSafe public static final class InvalidationSet.Invalidation extends java.lang.ObjectInvalidation object representation. It contains all information to execute the actual invalidation.This class is intended to be used inside a running transaction and therefore should be used by one thread only!
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetInvalidationType()Returns the type of invalidation.java.lang.Object[]getKey()Returns the invalidation key array.intgetTopicDepth()Returns the number of key elements to be used for invalidation.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.Object[] getKey()
Returns the invalidation key array.Please note that the amount of key elements used for invalidation depends upon the number returned by
getTopicDepth()! This is mainly because we re-use completeAbstractCacheUnitkeys for invalidation instead of creating new arrays all the time.- See Also:
getTopicDepth()
-
getTopicDepth
public int getTopicDepth()
Returns the number of key elements to be used for invalidation. Consequently this method returns either the full key array length or a lower number. All key elements that exceed this number are simply ignored during invalidation process.- See Also:
getKey()
-
getInvalidationType
public int getInvalidationType()
Returns the type of invalidation. May be one ofAbstractCacheUnit.INVALIDATIONTYPE_MODIFIEDorAbstractCacheUnit.INVALIDATIONTYPE_REMOVED.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-