Class XBESpecManager

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

    @ParametersAreNonnullByDefault
    @Repository
    public class XBESpecManager
    extends XBEDefaultCatalogManager<org.exbin.xbup.core.catalog.base.XBCSpec>
    implements org.exbin.xbup.core.catalog.base.manager.XBCSpecManager, java.io.Serializable
    XBUP catalog specification manager.
    See Also:
    Serialized Form
    • Constructor Detail

      • XBESpecManager

        public XBESpecManager()
      • XBESpecManager

        public XBESpecManager​(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.XBCSpec>
        Returns:
        entity class
      • getAllSpecsCount

        public java.lang.Long getAllSpecsCount()
        Specified by:
        getAllSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getAllFormatSpecsCount

        public java.lang.Long getAllFormatSpecsCount()
        Specified by:
        getAllFormatSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getAllGroupSpecsCount

        public java.lang.Long getAllGroupSpecsCount()
        Specified by:
        getAllGroupSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getAllBlockSpecsCount

        public java.lang.Long getAllBlockSpecsCount()
        Specified by:
        getAllBlockSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findById

        public XBESpec findById​(long id)
      • getSpecXBPath

        public java.lang.Long[] getSpecXBPath​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        getSpecXBPath in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getSpecs

        public java.util.List<org.exbin.xbup.core.catalog.base.XBCSpec> getSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getSpecs in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getSpec

        public XBESpec getSpec​(org.exbin.xbup.core.catalog.base.XBCNode node,
                               long index)
        Specified by:
        getSpec in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getFormatSpec

        public XBEFormatSpec getFormatSpec​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                           long index)
        Specified by:
        getFormatSpec in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getFormatSpecs

        public java.util.List<org.exbin.xbup.core.catalog.base.XBCFormatSpec> getFormatSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getFormatSpecs in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getBlockSpec

        public XBEBlockSpec getBlockSpec​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                         long index)
        Specified by:
        getBlockSpec in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getBlockSpecs

        public java.util.List<org.exbin.xbup.core.catalog.base.XBCBlockSpec> getBlockSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getBlockSpecs in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getGroupSpec

        public XBEGroupSpec getGroupSpec​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                         long index)
        Specified by:
        getGroupSpec in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getGroupSpecs

        public java.util.List<org.exbin.xbup.core.catalog.base.XBCGroupSpec> getGroupSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getGroupSpecs in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findBlockSpecByXB

        public XBEBlockSpec findBlockSpecByXB​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                              long xbIndex)
        Specified by:
        findBlockSpecByXB in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findGroupSpecByXB

        public XBEGroupSpec findGroupSpecByXB​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                              long xbIndex)
        Specified by:
        findGroupSpecByXB in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findFormatSpecByXB

        public XBEFormatSpec findFormatSpecByXB​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                                long xbIndex)
        Specified by:
        findFormatSpecByXB in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findMaxBlockSpecXB

        public java.lang.Long findMaxBlockSpecXB​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        findMaxBlockSpecXB in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findMaxGroupSpecXB

        public java.lang.Long findMaxGroupSpecXB​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        findMaxGroupSpecXB in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findMaxFormatSpecXB

        public java.lang.Long findMaxFormatSpecXB​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        findMaxFormatSpecXB in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getFormatSpecsCount

        public long getFormatSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getFormatSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getGroupSpecsCount

        public long getGroupSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getGroupSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getBlockSpecsCount

        public long getBlockSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getBlockSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getSpecsCount

        public long getSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getSpecsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getSpecDefByOrder

        public XBESpecDef getSpecDefByOrder​(org.exbin.xbup.core.catalog.base.XBCSpec spec,
                                            long index)
        Specified by:
        getSpecDefByOrder in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getSpecDefs

        public java.util.List<org.exbin.xbup.core.catalog.base.XBCSpecDef> getSpecDefs​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        getSpecDefs in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getSpecDefsCount

        public long getSpecDefsCount​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        getSpecDefsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findSpecDefByXB

        public XBESpecDef findSpecDefByXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec,
                                          long xbIndex)
        Specified by:
        findSpecDefByXB in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • findMaxSpecDefXB

        public java.lang.Long findMaxSpecDefXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
      • getDefsCount

        public long getDefsCount()
        Specified by:
        getDefsCount in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • getSpecDef

        public org.exbin.xbup.core.catalog.base.XBCSpecDef getSpecDef​(long itemId)
        Specified by:
        getSpecDef in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • createSpecDef

        public XBESpecDef createSpecDef​(org.exbin.xbup.core.catalog.base.XBCSpec spec,
                                        org.exbin.xbup.core.block.definition.XBParamType type)
        Specified by:
        createSpecDef in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • createBlockSpec

        @Nonnull
        public XBEBlockSpec createBlockSpec()
        Specified by:
        createBlockSpec in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • createGroupSpec

        @Nonnull
        public org.exbin.xbup.core.catalog.base.XBCGroupSpec createGroupSpec()
        Specified by:
        createGroupSpec in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • createFormatSpec

        @Nonnull
        public org.exbin.xbup.core.catalog.base.XBCFormatSpec createFormatSpec()
        Specified by:
        createFormatSpec in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • persistSpecDef

        public void persistSpecDef​(org.exbin.xbup.core.catalog.base.XBCSpecDef specDef)
        Specified by:
        persistSpecDef in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager
      • removeSpecDef

        public void removeSpecDef​(org.exbin.xbup.core.catalog.base.XBCSpecDef specDef)
        Specified by:
        removeSpecDef in interface org.exbin.xbup.core.catalog.base.manager.XBCSpecManager