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.Longid
-
Constructor Summary
Constructors Constructor Description XBERoot()
-
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.longgetId()java.util.Optional<java.util.Date>getLastUpdate()XBENodegetNode()java.util.Optional<java.lang.String>getUrl()inthashCode()Returns a hash code value for the object.voidsetLastUpdate(java.util.Date lastUpdate)Sets last update for this catalog root.voidsetNode(org.exbin.xbup.core.catalog.base.XBCNode node)Sets root node for this catalog root.voidsetUrl(java.lang.String url)Sets URL for this catalog root.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
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
-
getNode
@Nonnull public XBENode getNode()
- Specified by:
getNodein interfaceorg.exbin.xbup.core.catalog.base.XBCRoot
-
setNode
public void setNode(org.exbin.xbup.core.catalog.base.XBCNode node)
Description copied from interface:XBMRootSets root node for this catalog root.
-
getUrl
@Nonnull public java.util.Optional<java.lang.String> getUrl()
- Specified by:
getUrlin interfaceorg.exbin.xbup.core.catalog.base.XBCRoot
-
setUrl
public void setUrl(java.lang.String url)
Description copied from interface:XBMRootSets URL for this catalog root.
-
getLastUpdate
@Nonnull public java.util.Optional<java.util.Date> getLastUpdate()
- Specified by:
getLastUpdatein interfaceorg.exbin.xbup.core.catalog.base.XBCRoot
-
setLastUpdate
public void setLastUpdate(@Nullable java.util.Date lastUpdate)Description copied from interface:XBMRootSets last update for this catalog root.- Specified by:
setLastUpdatein interfaceXBMRoot- Parameters:
lastUpdate- date
-
-