Class MongoInventoryItemId

java.lang.Object
dev.getelements.elements.dao.mongo.model.goods.MongoInventoryItemId
All Implemented Interfaces:
HexableId

@Embedded public class MongoInventoryItemId extends Object implements HexableId
  • Constructor Details

    • MongoInventoryItemId

      public MongoInventoryItemId()
    • MongoInventoryItemId

      public MongoInventoryItemId(String hexString)
    • MongoInventoryItemId

      public MongoInventoryItemId(MongoUser mongoUser, MongoItem mongoItem, int priority)
    • MongoInventoryItemId

      public MongoInventoryItemId(org.bson.types.ObjectId userObjectId, org.bson.types.ObjectId itemObjectId, int priority)
  • Method Details

    • getUserObjectId

      public org.bson.types.ObjectId getUserObjectId()
    • setUserObjectId

      public void setUserObjectId(org.bson.types.ObjectId userObjectId)
    • getItemObjectId

      public org.bson.types.ObjectId getItemObjectId()
    • setItemObjectId

      public void setItemObjectId(org.bson.types.ObjectId itemObjectId)
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)
    • toByteArray

      public byte[] toByteArray()
    • toHexString

      public String toHexString()
      Description copied from interface: HexableId
      Converts the object to a Hex string.
      Specified by:
      toHexString in interface HexableId
      Returns:
      the hex string representation.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public static MongoInventoryItemId parseOrThrowNotFoundException(String inventoryItemId)