Class KBKeyImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.interf.impl.KBKeyImpl
-
-
Constructor Summary
Constructors Constructor Description KBKeyImpl(java.lang.String productCode)Minimal constructor, will use the actual Date for the KB key.KBKeyImpl(java.lang.String productCode, java.lang.String kbName, java.lang.String kbLogsys, java.lang.String kbVersion)Convenience constructor, will use the actual Date for the KB key.KBKeyImpl(java.lang.String productCode, java.lang.String kbName, java.lang.String kbLogsys, java.lang.String kbVersion, java.util.Date date)Constructor that allows to set all fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.DategetDate()java.lang.StringgetKbLogsys()java.lang.StringgetKbName()java.lang.StringgetKbVersion()java.lang.StringgetProductCode()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
KBKeyImpl
public KBKeyImpl(java.lang.String productCode)
Minimal constructor, will use the actual Date for the KB key. Other fields will be null.- Parameters:
productCode- code of the product this KBKey represents
-
KBKeyImpl
public KBKeyImpl(java.lang.String productCode, java.lang.String kbName, java.lang.String kbLogsys, java.lang.String kbVersion)Convenience constructor, will use the actual Date for the KB key.- Parameters:
productCode- code of the product this KBKey representskbName- name of KB objectkbLogsys- name of the KN logical systemkbVersion- version of the KB object
-
KBKeyImpl
public KBKeyImpl(java.lang.String productCode, java.lang.String kbName, java.lang.String kbLogsys, java.lang.String kbVersion, java.util.Date date)Constructor that allows to set all fields.- Parameters:
productCode- code of the product this KBKey representskbName- name of KB objectkbLogsys- name of the KN logical systemkbVersion- version of the KB objectdate- KB needs to be valid at this date to match this KBKey
-
-
Method Detail
-
getProductCode
public java.lang.String getProductCode()
- Specified by:
getProductCodein interfaceKBKey- Returns:
- the product code
-
getKbName
public java.lang.String getKbName()
-
getKbLogsys
public java.lang.String getKbLogsys()
- Specified by:
getKbLogsysin interfaceKBKey- Returns:
- the knowledge base logical system
-
getKbVersion
public java.lang.String getKbVersion()
- Specified by:
getKbVersionin interfaceKBKey- Returns:
- the knowledge base version
-
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 obj)
- Overrides:
equalsin classjava.lang.Object
-
-