Package org.exbin.xbup.catalog.entity
Class XBERoot
- java.lang.Object
-
- org.exbin.xbup.catalog.entity.XBERoot
-
- All Implemented Interfaces:
java.io.Serializable
,XBMBase
,XBMRoot
,org.exbin.xbup.core.catalog.base.XBCBase
,org.exbin.xbup.core.catalog.base.XBCRoot
@ParametersAreNonnullByDefault public class XBERoot extends java.lang.Object implements XBMRoot, java.io.Serializable
Root node database entity.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Long
id
-
Constructor Summary
Constructors Constructor Description XBERoot()
-
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.long
getId()
java.util.Optional<java.util.Date>
getLastUpdate()
XBENode
getNode()
java.util.Optional<java.lang.String>
getUrl()
int
hashCode()
Returns a hash code value for the object.void
setLastUpdate(java.util.Date lastUpdate)
Sets last update for this catalog root.void
setNode(org.exbin.xbup.core.catalog.base.XBCNode node)
Sets root node for this catalog root.void
setUrl(java.lang.String url)
Sets URL for this catalog root.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
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
-
getNode
@Nonnull public XBENode getNode()
- Specified by:
getNode
in interfaceorg.exbin.xbup.core.catalog.base.XBCRoot
-
setNode
public void setNode(org.exbin.xbup.core.catalog.base.XBCNode node)
Description copied from interface:XBMRoot
Sets root node for this catalog root.
-
getUrl
@Nonnull public java.util.Optional<java.lang.String> getUrl()
- Specified by:
getUrl
in interfaceorg.exbin.xbup.core.catalog.base.XBCRoot
-
setUrl
public void setUrl(java.lang.String url)
Description copied from interface:XBMRoot
Sets URL for this catalog root.
-
getLastUpdate
@Nonnull public java.util.Optional<java.util.Date> getLastUpdate()
- Specified by:
getLastUpdate
in interfaceorg.exbin.xbup.core.catalog.base.XBCRoot
-
setLastUpdate
public void setLastUpdate(@Nullable java.util.Date lastUpdate)
Description copied from interface:XBMRoot
Sets last update for this catalog root.- Specified by:
setLastUpdate
in interfaceXBMRoot
- Parameters:
lastUpdate
- date
-
-