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 booleanequals(java.lang.Object object)Determines whether another object is equal to this Item.XBEXUsergetCreatedByUser()java.sql.TimegetCreationDate()longgetId()org.exbin.xbup.core.catalog.base.XBCItemgetItem()XBEXUsergetOwner()inthashCode()Returns a hash code value for the object.voidsetCreatedByUser(org.exbin.xbup.core.catalog.base.XBCXUser createdByUser)Sets created by user.voidsetCreationDate(java.sql.Time creationDate)Sets creation date.voidsetItem(org.exbin.xbup.core.catalog.base.XBCItem item)Sets related item.voidsetOwner(org.exbin.xbup.core.catalog.base.XBCXUser owner)Sets item owner.java.lang.StringtoString()Returns a string representation of the object.
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getIdin 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:
hashCodein 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 istrueif and only if the argument is not null and is a Item object that has the same id field values as this object.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- the reference object with which to compare- Returns:
trueif this object is the same as the argument;falseotherwise.
-
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:
toStringin classjava.lang.Object- Returns:
- a string representation of the object
-
getItem
@Nonnull public org.exbin.xbup.core.catalog.base.XBCItem getItem()
- Specified by:
getItemin interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setItem
public void setItem(org.exbin.xbup.core.catalog.base.XBCItem item)
Description copied from interface:XBMXItemInfoSets related item.- Specified by:
setItemin interfaceXBMXItemInfo- Parameters:
item- item
-
getOwner
@Nonnull public XBEXUser getOwner()
- Specified by:
getOwnerin interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setOwner
public void setOwner(org.exbin.xbup.core.catalog.base.XBCXUser owner)
Description copied from interface:XBMXItemInfoSets item owner.- Specified by:
setOwnerin interfaceXBMXItemInfo- Parameters:
owner- user
-
getCreatedByUser
@Nonnull public XBEXUser getCreatedByUser()
- Specified by:
getCreatedByUserin interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setCreatedByUser
public void setCreatedByUser(org.exbin.xbup.core.catalog.base.XBCXUser createdByUser)
Description copied from interface:XBMXItemInfoSets created by user.- Specified by:
setCreatedByUserin interfaceXBMXItemInfo- Parameters:
createdByUser- user
-
getCreationDate
@Nonnull public java.sql.Time getCreationDate()
- Specified by:
getCreationDatein interfaceorg.exbin.xbup.core.catalog.base.XBCXItemInfo
-
setCreationDate
public void setCreationDate(java.sql.Time creationDate)
Description copied from interface:XBMXItemInfoSets creation date.- Specified by:
setCreationDatein interfaceXBMXItemInfo- Parameters:
creationDate- creation date
-
-