Record Class AdminItem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebelongsto
record component.Returns the value of thecontainerdefid
record component.Returns the value of thecontainerid
record component.creation()
Returns the value of thecreation
record component.Returns the value of thediscriminator
record component.final boolean
Indicates whether some other object is "equal to" this one.static AdminItem
final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.itemid()
Returns the value of theitemid
record component.owner()
Returns the value of theowner
record component.room()
Returns the value of theroom
record component.Returns the value of theshopkeeper
record component.toJson()
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
GET_ITEMDEFS_QUERY
Provides all item instances with this itemdefinition.- See Also:
-
GET_PERSONS_QUERY
Provides all item instances belonging to a person.- See Also:
-
GET_ROOMS_QUERY
-
-
Constructor Details
-
AdminItem
public AdminItem(Integer id, Long itemid, Integer containerid, Long containerdefid, String belongsto, Long room, Integer discriminator, String shopkeeper, String owner, LocalDateTime creation) Creates an instance of aAdminItem
record class.- Parameters:
id
- the value for theid
record componentitemid
- the value for theitemid
record componentcontainerid
- the value for thecontainerid
record componentcontainerdefid
- the value for thecontainerdefid
record componentbelongsto
- the value for thebelongsto
record componentroom
- the value for theroom
record componentdiscriminator
- the value for thediscriminator
record componentshopkeeper
- the value for theshopkeeper
record componentowner
- the value for theowner
record componentcreation
- the value for thecreation
record component
-
AdminItem
-
-
Method Details
-
toJson
-
fromJson
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
itemid
Returns the value of theitemid
record component.- Returns:
- the value of the
itemid
record component
-
containerid
Returns the value of thecontainerid
record component.- Returns:
- the value of the
containerid
record component
-
containerdefid
Returns the value of thecontainerdefid
record component.- Returns:
- the value of the
containerdefid
record component
-
belongsto
Returns the value of thebelongsto
record component.- Returns:
- the value of the
belongsto
record component
-
room
Returns the value of theroom
record component.- Returns:
- the value of the
room
record component
-
discriminator
Returns the value of thediscriminator
record component.- Returns:
- the value of the
discriminator
record component
-
shopkeeper
Returns the value of theshopkeeper
record component.- Returns:
- the value of the
shopkeeper
record component
-
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
creation
Returns the value of thecreation
record component.- Returns:
- the value of the
creation
record component
-