Class XBESpecService

  • All Implemented Interfaces:
    java.io.Serializable, org.exbin.xbup.core.catalog.base.service.XBCService<org.exbin.xbup.core.catalog.base.XBCSpec>, org.exbin.xbup.core.catalog.base.service.XBCSpecService

    @ParametersAreNonnullByDefault
    @Service
    public class XBESpecService
    extends XBEDefaultService<org.exbin.xbup.core.catalog.base.XBCSpec>
    implements org.exbin.xbup.core.catalog.base.service.XBCSpecService, java.io.Serializable
    Entity class for XBESpec items service.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.exbin.xbup.core.catalog.base.service.XBCDefaultItemService

        itemManager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XBEBlockSpec createBlockSpec()  
      org.exbin.xbup.core.catalog.base.XBCFormatSpec createFormatSpec()  
      org.exbin.xbup.core.catalog.base.XBCGroupSpec createGroupSpec()  
      org.exbin.xbup.core.catalog.base.XBCSpecDef createSpecDef​(org.exbin.xbup.core.catalog.base.XBCSpec spec, org.exbin.xbup.core.block.definition.XBParamType type)  
      XBEBlockSpec findBlockSpecByXB​(org.exbin.xbup.core.catalog.base.XBCNode node, long xbIndex)  
      XBEFormatSpec findFormatSpecByXB​(org.exbin.xbup.core.catalog.base.XBCNode node, long xbIndex)  
      XBEGroupSpec findGroupSpecByXB​(org.exbin.xbup.core.catalog.base.XBCNode node, long xbIndex)  
      java.lang.Long findMaxBlockSpecXB​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      java.lang.Long findMaxFormatSpecXB​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      java.lang.Long findMaxGroupSpecXB​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      java.lang.Long findMaxSpecDefXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      XBESpecDef findSpecDefByXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec, long xbIndex)  
      java.lang.Long getAllBlockSpecsCount()  
      java.lang.Long getAllFormatSpecsCount()  
      java.lang.Long getAllGroupSpecsCount()  
      java.lang.Long getAllSpecsCount()  
      org.exbin.xbup.core.block.declaration.local.XBLBlockDecl getBlockDeclAsLocal​(org.exbin.xbup.core.block.declaration.catalog.XBCBlockDecl blockDecl)  
      XBEBlockSpec getBlockSpec​(org.exbin.xbup.core.catalog.base.XBCNode node, long index)  
      java.util.List<org.exbin.xbup.core.catalog.base.XBCBlockSpec> getBlockSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      long getBlockSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      long getDefsCount()  
      org.exbin.xbup.core.block.declaration.local.XBLFormatDecl getFormatDeclAsLocal​(org.exbin.xbup.core.block.declaration.catalog.XBCFormatDecl formatDecl)  
      XBEFormatSpec getFormatSpec​(org.exbin.xbup.core.catalog.base.XBCNode node, long index)  
      java.util.List<org.exbin.xbup.core.catalog.base.XBCFormatSpec> getFormatSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      long getFormatSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      org.exbin.xbup.core.block.declaration.local.XBLGroupDecl getGroupDeclAsLocal​(org.exbin.xbup.core.block.declaration.catalog.XBCGroupDecl groupDecl)  
      XBEGroupSpec getGroupSpec​(org.exbin.xbup.core.catalog.base.XBCNode node, long index)  
      java.util.List<org.exbin.xbup.core.catalog.base.XBCGroupSpec> getGroupSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      long getGroupSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      XBESpec getSpecByOrder​(org.exbin.xbup.core.catalog.base.XBCNode node, long index)  
      XBESpecDef getSpecDef​(long itemId)  
      XBESpecDef getSpecDefByOrder​(org.exbin.xbup.core.catalog.base.XBCSpec spec, long index)  
      java.util.List<org.exbin.xbup.core.catalog.base.XBCSpecDef> getSpecDefs​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      long getSpecDefsCount​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      java.util.List<org.exbin.xbup.core.catalog.base.XBCSpec> getSpecs​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      long getSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      java.lang.Long[] getSpecXBPath​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      void init()  
      void persistSpecDef​(org.exbin.xbup.core.catalog.base.XBCSpecDef specDef)  
      void removeItemDepth​(org.exbin.xbup.core.catalog.base.XBCSpecDef specDef)  
      void removeSpecDef​(org.exbin.xbup.core.catalog.base.XBCSpecDef specDef)  
      • Methods inherited from class org.exbin.xbup.core.catalog.base.service.XBCDefaultItemService

        createItem, getAllItems, getItem, getItemsCount, persistItem, removeItem
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.exbin.xbup.core.catalog.base.service.XBCService

        createItem, getAllItems, getItem, getItemsCount, persistItem, removeItem
    • Constructor Detail

      • XBESpecService

        public XBESpecService()
      • XBESpecService

        public XBESpecService​(XBECatalog catalog)
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • getAllBlockSpecsCount

        public java.lang.Long getAllBlockSpecsCount()
        Specified by:
        getAllBlockSpecsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • getAllFormatSpecsCount

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

        public java.lang.Long getAllGroupSpecsCount()
        Specified by:
        getAllGroupSpecsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • getAllSpecsCount

        public java.lang.Long getAllSpecsCount()
        Specified by:
        getAllSpecsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • getBlockSpecsCount

        public long getBlockSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getBlockSpecsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • getFormatSpecsCount

        public long getFormatSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getFormatSpecsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • getGroupSpecsCount

        public long getGroupSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getGroupSpecsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • getSpecByOrder

        public XBESpec getSpecByOrder​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                      long index)
        Specified by:
        getSpecByOrder in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • getSpecsCount

        public long getSpecsCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getSpecsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • 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.service.XBCSpecService
      • findMaxSpecDefXB

        public java.lang.Long findMaxSpecDefXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        findMaxSpecDefXB in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • 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.service.XBCSpecService
      • 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.service.XBCSpecService
      • getSpecDefsCount

        public long getSpecDefsCount​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        getSpecDefsCount in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • getDefsCount

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

        public XBESpecDef getSpecDef​(long itemId)
        Specified by:
        getSpecDef in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • createSpecDef

        public org.exbin.xbup.core.catalog.base.XBCSpecDef 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.service.XBCSpecService
      • createBlockSpec

        public XBEBlockSpec createBlockSpec()
        Specified by:
        createBlockSpec in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • createGroupSpec

        public org.exbin.xbup.core.catalog.base.XBCGroupSpec createGroupSpec()
        Specified by:
        createGroupSpec in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • createFormatSpec

        public org.exbin.xbup.core.catalog.base.XBCFormatSpec createFormatSpec()
        Specified by:
        createFormatSpec in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • persistSpecDef

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

        public void removeSpecDef​(org.exbin.xbup.core.catalog.base.XBCSpecDef specDef)
        Specified by:
        removeSpecDef in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • removeItemDepth

        public void removeItemDepth​(org.exbin.xbup.core.catalog.base.XBCSpecDef specDef)
        Specified by:
        removeItemDepth in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • getFormatDeclAsLocal

        public org.exbin.xbup.core.block.declaration.local.XBLFormatDecl getFormatDeclAsLocal​(org.exbin.xbup.core.block.declaration.catalog.XBCFormatDecl formatDecl)
        Specified by:
        getFormatDeclAsLocal in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • getGroupDeclAsLocal

        public org.exbin.xbup.core.block.declaration.local.XBLGroupDecl getGroupDeclAsLocal​(org.exbin.xbup.core.block.declaration.catalog.XBCGroupDecl groupDecl)
        Specified by:
        getGroupDeclAsLocal in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService
      • getBlockDeclAsLocal

        public org.exbin.xbup.core.block.declaration.local.XBLBlockDecl getBlockDeclAsLocal​(org.exbin.xbup.core.block.declaration.catalog.XBCBlockDecl blockDecl)
        Specified by:
        getBlockDeclAsLocal in interface org.exbin.xbup.core.catalog.base.service.XBCSpecService