Package org.exbin.xbup.catalog.entity
Class XBEXItemInfo
- java.lang.Object
-
- org.exbin.xbup.catalog.entity.XBEXItemInfo
-
- All Implemented Interfaces:
java.io.Serializable
,XBMBase
,XBMXItemInfo
,org.exbin.xbup.core.catalog.base.XBCBase
,org.exbin.xbup.core.catalog.base.XBCXItemInfo
@ParametersAreNonnullByDefault public class XBEXItemInfo extends java.lang.Object implements XBMXItemInfo, java.io.Serializable
Item information database entity.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XBEXItemInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Determines whether another object is equal to this Item.XBEXUser
getCreatedByUser()
java.sql.Time
getCreationDate()
long
getId()
org.exbin.xbup.core.catalog.base.XBCItem
getItem()
XBEXUser
getOwner()
int
hashCode()
Returns a hash code value for the object.void
setCreatedByUser(org.exbin.xbup.core.catalog.base.XBCXUser createdByUser)
Sets created by user.void
setCreationDate(java.sql.Time creationDate)
Sets creation date.void
setItem(org.exbin.xbup.core.catalog.base.XBCItem item)
Sets related item.void
setOwner(org.exbin.xbup.core.catalog.base.XBCXUser owner)
Sets item owner.java.lang.String
toString()
Returns a string representation of the object.
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceorg.exbin.xbup.core.catalog.base.XBCBase
-
hashCode
public int hashCode()
Returns a hash code value for the object. This implementation computes a hash code value based on the id fields in this object.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- a hash code value for this object.
-
equals
public boolean equals(@Nullable java.lang.Object object)
Determines whether another object is equal to this Item. The result istrue
if and only if the argument is not null and is a Item object that has the same id field values as this object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- the reference object with which to compare- Returns:
true
if this object is the same as the argument;false
otherwise.
-
toString
@Nonnull public java.lang.String toString()
Returns a string representation of the object. This implementation constructs that representation based on the id fields.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of the object
-
getItem
@Nonnull public org.exbin.xbup.core.catalog.base.XBCItem getItem()
- Specified by:
getItem
in interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setItem
public void setItem(org.exbin.xbup.core.catalog.base.XBCItem item)
Description copied from interface:XBMXItemInfo
Sets related item.- Specified by:
setItem
in interfaceXBMXItemInfo
- Parameters:
item
- item
-
getOwner
@Nonnull public XBEXUser getOwner()
- Specified by:
getOwner
in interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setOwner
public void setOwner(org.exbin.xbup.core.catalog.base.XBCXUser owner)
Description copied from interface:XBMXItemInfo
Sets item owner.- Specified by:
setOwner
in interfaceXBMXItemInfo
- Parameters:
owner
- user
-
getCreatedByUser
@Nonnull public XBEXUser getCreatedByUser()
- Specified by:
getCreatedByUser
in interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setCreatedByUser
public void setCreatedByUser(org.exbin.xbup.core.catalog.base.XBCXUser createdByUser)
Description copied from interface:XBMXItemInfo
Sets created by user.- Specified by:
setCreatedByUser
in interfaceXBMXItemInfo
- Parameters:
createdByUser
- user
-
getCreationDate
@Nonnull public java.sql.Time getCreationDate()
- Specified by:
getCreationDate
in interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setCreationDate
public void setCreationDate(java.sql.Time creationDate)
Description copied from interface:XBMXItemInfo
Sets creation date.- Specified by:
setCreationDate
in interfaceXBMXItemInfo
- Parameters:
creationDate
- creation date
-
-