Class MongoInventoryItemId
java.lang.Object
dev.getelements.elements.dao.mongo.model.goods.MongoInventoryItemId
- All Implemented Interfaces:
HexableId
-
Constructor Summary
ConstructorsConstructorDescriptionMongoInventoryItemId
(MongoUser mongoUser, MongoItem mongoItem, int priority) MongoInventoryItemId
(String hexString) MongoInventoryItemId
(org.bson.types.ObjectId userObjectId, org.bson.types.ObjectId itemObjectId, int priority) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.bson.types.ObjectId
int
org.bson.types.ObjectId
int
hashCode()
static MongoInventoryItemId
parseOrThrowNotFoundException
(String inventoryItemId) void
setItemObjectId
(org.bson.types.ObjectId itemObjectId) void
setPriority
(int priority) void
setUserObjectId
(org.bson.types.ObjectId userObjectId) byte[]
Converts the object to a Hex string.toString()
-
Constructor Details
-
MongoInventoryItemId
public MongoInventoryItemId() -
MongoInventoryItemId
-
MongoInventoryItemId
-
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
Description copied from interface:HexableId
Converts the object to a Hex string.- Specified by:
toHexString
in interfaceHexableId
- Returns:
- the hex string representation.
-
equals
-
hashCode
public int hashCode() -
toString
-
parseOrThrowNotFoundException
-