Class AbstractItemModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DummyModel, ItemModel

public abstract class AbstractItemModel extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • AbstractItemModel

      public AbstractItemModel()
    • AbstractItemModel

      protected AbstractItemModel(ItemModelContext ctx)
  • Method Details

    • getItemModelContext

      public ItemModelContext getItemModelContext()
    • getPersistenceContext

      protected ItemModelInternalContext getPersistenceContext()
    • getTenantId

      public String getTenantId()
    • getPk

      public PK getPk()
    • getItemtype

      public String getItemtype()
    • getProperty

      public <T> T getProperty(String name)
    • setProperty

      public void setProperty(String name, Object value)
    • getProperty

      public <T> T getProperty(String name, Locale locale)
    • setProperty

      public void setProperty(String name, Locale locale, Object value)
    • equals

      public boolean equals(Object obj)
      Equals implementation based on pk. If pk is null the super equals is used.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Hash code based on PK. If PK is null the object hash code is used.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • writeReplace

      public Object writeReplace() throws ObjectStreamException
      Throws:
      ObjectStreamException
    • readResolve

      public Object readResolve() throws ObjectStreamException
      Throws:
      ObjectStreamException
    • toPrimitive

      protected static boolean toPrimitive(Boolean value)
    • toPrimitive

      protected static int toPrimitive(Integer value)
    • toPrimitive

      protected static double toPrimitive(Double value)
    • toPrimitive

      protected static float toPrimitive(Float value)
    • toPrimitive

      protected static byte toPrimitive(Byte value)
    • toPrimitive

      protected static long toPrimitive(Long value)
    • toPrimitive

      protected static short toPrimitive(Short value)
    • toPrimitive

      protected static char toPrimitive(Character value)
    • toObject

      protected static Boolean toObject(boolean value)
    • toObject

      protected static Integer toObject(int value)
    • toObject

      protected static Double toObject(double value)
    • toObject

      protected static Float toObject(float value)
    • toObject

      protected static Byte toObject(byte value)
    • toObject

      protected static Long toObject(long value)
    • toObject

      protected static Short toObject(short value)
    • toObject

      protected static Character toObject(char value)