psdi.app.assetcatalog

Class ClassSpecSet

    • Field Detail

      • counterAddSqlServer

        public int counterAddSqlServer
        IV82055: this counter is used only to indicate the number of ClassSpec being added. For example, if the classification is associated with a large number of assets and user adds several attributes and save once. This helps bumping up the maximo sequence for assetspec and assetspechist.
      • newAssetSpecReserved

        public long newAssetSpecReserved
        IV82055: store the next maxreserved before it is actually updated in insertLargeQuantitySpecs(). In ClassSpec.prepareInsertAssetSpec - if there are multiple Attributes entered and save once, the mxreserved needs to be maintained as a running total, not always from the db.
      • newAssetSpecHistReserved

        public long newAssetSpecHistReserved
        IV82055: store the next maxreserved before it is actually updated in insertLargeQuantitySpecs(). In ClassSpec.prepareInsertAssetSpecHist - if there are multiple Attributes entered and save once, the mxreserved needs to be maintained as a running total, not always from the db.
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generates a new ClassSpec object.

        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - MboSet the new object will belong to
        Returns:
        Mbo - The new ClassSpec object
        Throws:
        MXException
        java.rmi.RemoteException
      • checkDuplicates

        protected void checkDuplicates(MboRemote currentClassSpec)
                                throws MXException,
                                       java.rmi.RemoteException
        Check to see if the combination of classstructureid/assetattrid/section already exists in other ClassSpec records.
        Parameters:
        currentClassSpec -
        Throws:
        MXException
        java.rmi.RemoteException
      • checkSequence

        protected void checkSequence(MboRemote theClassSpec,
                                     MboValue sequenceMbv)
                              throws MXException,
                                     java.rmi.RemoteException
        check if the itemsequence,assetsequence,or locsequence is not a duplicate of that in other ClassSpec records in the set. ClassStructureid is the same in the set
        Parameters:
        theClassSpec - The current ClassSpec
        sequenceMbv -
        Throws:
        MXException
        java.rmi.RemoteException
      • getSequenceHastable

        public java.util.Hashtable getSequenceHastable()
                                                throws MXException,
                                                       java.rmi.RemoteException
        Returns the hastable for handling Sequence in ClassSpecUseWith
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • insertLargeQuantitySpecs

        public void insertLargeQuantitySpecs()
                                      throws MXException,
                                             java.rmi.RemoteException
        08-21999
        Throws:
        MXException
        java.rmi.RemoteException
      • storeSpecInsertStatement

        public void storeSpecInsertStatement(java.lang.Object preparedInsert)
                                      throws MXException,
                                             java.rmi.RemoteException
        08-21999: IJ29343:Change String preparedInsert to Object preparedInsert For ClassSpec to pass object SQLServerInsertSelect
        Throws:
        MXException
        java.rmi.RemoteException
      • storeSpecDeleteStatement

        public void storeSpecDeleteStatement(java.lang.String preparedInsert)
                                      throws MXException,
                                             java.rmi.RemoteException
        11-13210
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteLargeQuantitySpecs

        public void deleteLargeQuantitySpecs()
                                      throws MXException,
                                             java.rmi.RemoteException
        11-13210: use delete statements, instead of getMboSet().deleteAll()
        Throws:
        MXException
        java.rmi.RemoteException
      • getCounterForAttributeAdded

        public int getCounterForAttributeAdded()
                                        throws MXException,
                                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • incrCounterForAttributeAdded

        public void incrCounterForAttributeAdded()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getNewAssetSpecReserved

        public long getNewAssetSpecReserved()
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setNewAssetSpecReserved

        public void setNewAssetSpecReserved(long nextMXReserved)
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getNewAssetSpecHistReserved

        public long getNewAssetSpecHistReserved()
                                         throws MXException,
                                                java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setNewAssetSpecHistReserved

        public void setNewAssetSpecHistReserved(long nextMXReserved)
                                         throws MXException,
                                                java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException