Class XBERootManager

  • All Implemented Interfaces:
    java.io.Serializable, org.exbin.xbup.core.catalog.base.manager.XBCCatalogManager<org.exbin.xbup.core.catalog.base.XBCRoot>, org.exbin.xbup.core.catalog.base.manager.XBCManager<org.exbin.xbup.core.catalog.base.XBCRoot>, org.exbin.xbup.core.catalog.base.manager.XBCRootManager

    @ParametersAreNonnullByDefault
    @Repository
    public class XBERootManager
    extends XBEDefaultCatalogManager<org.exbin.xbup.core.catalog.base.XBCRoot>
    implements org.exbin.xbup.core.catalog.base.manager.XBCRootManager, java.io.Serializable
    XBUP catalog root manager.
    See Also:
    Serialized Form
    • Constructor Detail

      • XBERootManager

        public XBERootManager()
      • XBERootManager

        public XBERootManager​(XBECatalog catalog)
    • Method Detail

      • getEntityClass

        @Nonnull
        public java.lang.Class getEntityClass()
        Description copied from class: XBEDefaultManager
        Returns entity class.
        Specified by:
        getEntityClass in class XBEDefaultManager<org.exbin.xbup.core.catalog.base.XBCRoot>
        Returns:
        entity class
      • getMainRoot

        @Nonnull
        public XBERoot getMainRoot()
        Specified by:
        getMainRoot in interface org.exbin.xbup.core.catalog.base.manager.XBCRootManager
      • getMainLastUpdate

        @Nonnull
        public java.util.Optional<java.util.Date> getMainLastUpdate()
        Specified by:
        getMainLastUpdate in interface org.exbin.xbup.core.catalog.base.manager.XBCRootManager
      • setMainLastUpdate

        public void setMainLastUpdate​(java.util.Date updateDate)
      • setMainLastUpdateToNow

        public void setMainLastUpdateToNow()
        Set last update time mark to current database time. UPDATE XBROOT SET LASTUPDATE = CURRENT_TIMESTAMP() WHERE url IS NULL
        Specified by:
        setMainLastUpdateToNow in interface org.exbin.xbup.core.catalog.base.manager.XBCRootManager
      • isMainPresent

        public boolean isMainPresent()
        Specified by:
        isMainPresent in interface org.exbin.xbup.core.catalog.base.manager.XBCRootManager
      • initCatalog

        public boolean initCatalog()
        Specified by:
        initCatalog in interface org.exbin.xbup.core.catalog.base.manager.XBCManager<org.exbin.xbup.core.catalog.base.XBCRoot>
        Overrides:
        initCatalog in class XBEDefaultManager<org.exbin.xbup.core.catalog.base.XBCRoot>