Class GenericCacheKey
- java.lang.Object
-
- de.hybris.platform.sap.core.bol.cache.GenericCacheKey
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_SAP_TYPECODEDefault typecode used if no other is specified.
-
Constructor Summary
Constructors Constructor Description GenericCacheKey(java.lang.Object[] keys, java.lang.String typeCode)Creates GenericCacheKey for given array of keys and a type code.GenericCacheKey(java.lang.Object[] keys, java.lang.String typeCode, java.lang.String tenant, CacheUnitValueType valueType)Creates GenericCacheKey for given array of keys, type code, tenant and value type.GenericCacheKey(java.lang.Object key, java.lang.String typeCode)Creates GenericCacheKey for given key and type code.GenericCacheKey(java.lang.Object key, java.lang.String typeCode, java.lang.String tenant, CacheUnitValueType valueType)Creates GenericCacheKey for given key, type code, tenant and value type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Returns true, if this object is equal to the provided one.CacheUnitValueTypegetCacheValueType()gets value type.java.lang.StringgetTenantId()Gets tenantjava.lang.ObjectgetTypeCode()Gets code from typesystem.inthashCode()Returns the hash code for this object.java.lang.StringtoString()Returns the object as string.
-
-
-
Field Detail
-
DEFAULT_SAP_TYPECODE
public static final java.lang.String DEFAULT_SAP_TYPECODE
Default typecode used if no other is specified.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GenericCacheKey
public GenericCacheKey(java.lang.Object[] keys, java.lang.String typeCode)Creates GenericCacheKey for given array of keys and a type code.- Parameters:
keys- array of key objectstypeCode- typecode of the GenericCacheKey
-
GenericCacheKey
public GenericCacheKey(java.lang.Object[] keys, java.lang.String typeCode, java.lang.String tenant, CacheUnitValueType valueType)Creates GenericCacheKey for given array of keys, type code, tenant and value type.- Parameters:
keys- array of key objectstypeCode- typecode of the GenericCacheKeytenant- tenant of the GenericCacheKeyvalueType- valuetype of the GenericCacheKey
-
GenericCacheKey
public GenericCacheKey(java.lang.Object key, java.lang.String typeCode)Creates GenericCacheKey for given key and type code.- Parameters:
key- key of the GenericCacheKeytypeCode- typecode of the GenericCacheKey
-
GenericCacheKey
public GenericCacheKey(java.lang.Object key, java.lang.String typeCode, java.lang.String tenant, CacheUnitValueType valueType)Creates GenericCacheKey for given key, type code, tenant and value type.- Parameters:
key- the keytypeCode- typecode of the GenericCacheKeytenant- tenant of the GenericCacheKeyvalueType- valuetype of the GenericCacheKey
-
-
Method Detail
-
hashCode
public int hashCode()
Returns the hash code for this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- Hash code for the object
-
equals
public boolean equals(java.lang.Object o)
Returns true, if this object is equal to the provided one.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- Object to compare this with- Returns:
trueif both objects are equal,falseif not.
-
toString
public java.lang.String toString()
Returns the object as string.- Overrides:
toStringin classjava.lang.Object- Returns:
- String which contains all important fields of the object
-
getCacheValueType
public CacheUnitValueType getCacheValueType()
Description copied from interface:CacheKeygets value type. Currently not used. To be used in hybris 5.- Specified by:
getCacheValueTypein interfaceCacheKey
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:CacheKeyGets tenant- Specified by:
getTenantIdin interfaceCacheKey
-
getTypeCode
public java.lang.Object getTypeCode()
Description copied from interface:CacheKeyGets code from typesystem.- Specified by:
getTypeCodein interfaceCacheKey
-
-