Class SerializationStrategyLeanImpl.LeanItemModelHandler
- java.lang.Object
-
- de.hybris.platform.util.AbstractTenantAwareSerializationDTO
-
- de.hybris.platform.servicelayer.model.strategies.SerializationStrategyLeanImpl.LeanItemModelHandler
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SerializationStrategyLeanImpl
public static class SerializationStrategyLeanImpl.LeanItemModelHandler extends AbstractTenantAwareSerializationDTO
The Class LeanItemModelHandler. This is the class that is actually serialized.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LeanItemModelHandler(PK pk, java.lang.String tenantID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectresolveObject()The readResolve method is called when ObjectInputStream has read an object from the stream and is preparing to return it to the caller.java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.util.AbstractTenantAwareSerializationDTO
getTenant, getTenantID, readResolve
-
-
-
-
Constructor Detail
-
LeanItemModelHandler
public LeanItemModelHandler(PK pk, java.lang.String tenantID)
-
-
Method Detail
-
resolveObject
public java.lang.Object resolveObject() throws java.io.ObjectStreamExceptionThe readResolve method is called when ObjectInputStream has read an object from the stream and is preparing to return it to the caller. The object that was de-serialized is an instance of SerializationStrategyLeanImpl with the PK of the ItemModel we want So we retrieve the itemModel show PK is primaryKey, and return that.- Specified by:
resolveObjectin classAbstractTenantAwareSerializationDTO- Returns:
- The object whose PK is equal to the PK that was serialized
- Throws:
java.io.ObjectStreamException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractTenantAwareSerializationDTO
-
-