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.Object
Invalidation 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 boolean
equals(java.lang.Object o)
int
getInvalidationType()
Returns the type of invalidation.java.lang.Object[]
getKey()
Returns the invalidation key array.int
getTopicDepth()
Returns the number of key elements to be used for invalidation.int
hashCode()
java.lang.String
toString()
-
-
-
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 completeAbstractCacheUnit
keys 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_MODIFIED
orAbstractCacheUnit.INVALIDATIONTYPE_REMOVED
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-