psdi.app.item

Class ItemSpecSet

    • Method Detail

      • whereClauseOnAttrAndValues

        public java.lang.String whereClauseOnAttrAndValues(java.lang.String[][] attrAndValues,
                                                           java.lang.String classstructureid)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        This method implements the abstract method on psdi.app.assetcatalog.SpecificationSet This method returns a String to the caller. It loops thru the passed two dimensional array and produces a where clause in view of Item/ItemSpec to the caller. Since ItemSpec does not have to use the classstructureid, it calls the overloaded function whereClauseOnAttrAndValues(String[][] attrAndValues)
        Specified by:
        whereClauseOnAttrAndValues in interface SpecificationMboSetRemote
        Overrides:
        whereClauseOnAttrAndValues in class SpecificationMboSet
        Parameters:
        attrAndValues - The two dimensional array holds the assetattrids and and their values in appropriate measureunitids. Its contents look like the following: [0][0] = "assetattrid='SIZE'", [0][1]=" numvalue > 1.5"; [0][2] = "measureunitid like 'RPM%" IV81743: added section, so example if section is populated [0][4] = "section like '%SEC%'
        classstructureid - The classstructureid to be searched upon.
        Returns:
        String - resulting where clause
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        SpecificationMboSet.whereClauseOnAttrAndValues(String[][], String)
      • whereClauseOnAttrAndValues

        public java.lang.String whereClauseOnAttrAndValues(java.lang.String[][] attrAndValues)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        This method overloads the abstract method whereClauseOnAttrAndValues(String[][] attrAndValues,String classstructureid) defined in psdi.app.assetcatalog.SpecificationSet This method returns a String to the caller. It loops thru the passed two dimensional array and produces a where clause in view of Item/ItemSpec to the caller. The two dimensional array holds the assetattrids and and their values. Its contents look like the following: [0][0] = "assetattrid='SIZE'", [0][1]=" numvalue > 1.5"; [0][2] = "measureunitid = 'RPM'", or "measureunitid like 'RPM%'";
        Overrides:
        whereClauseOnAttrAndValues in class SpecificationMboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • processPreparedStatements

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

        public void storeSpecInsertStatement(java.lang.String preparedInsert)
                                      throws MXException,
                                             java.rmi.RemoteException
        08-23855
        Throws:
        MXException
        java.rmi.RemoteException
      • prepareUpdateClassStructureID

        public void prepareUpdateClassStructureID()
                                           throws MXException,
                                                  java.rmi.RemoteException
        08-23855
        Throws:
        MXException
        java.rmi.RemoteException
      • prepareDeleteAssetSpec

        public void prepareDeleteAssetSpec(boolean isPreprocess)
                                    throws MXException,
                                           java.rmi.RemoteException
        08-23855
        Throws:
        MXException
        java.rmi.RemoteException
      • prepareUpdateAssetSpecHist

        public void prepareUpdateAssetSpecHist(boolean isPreprocess)
                                        throws MXException,
                                               java.rmi.RemoteException
        08-23855
        Throws:
        MXException
        java.rmi.RemoteException
      • preProcessPreparedStatements

        public void preProcessPreparedStatements()
                                          throws MXException,
                                                 java.rmi.RemoteException
        08-23855: if classstructure is changed from one(not null) to a new one.
        Throws:
        MXException
        java.rmi.RemoteException
      • storeSpecUpdateStatement

        public void storeSpecUpdateStatement(java.lang.String preparedUpdate)
                                      throws MXException,
                                             java.rmi.RemoteException
        10-14955: when rotating itemspec is updated, update assetspec records
        Parameters:
        preparedUpdate -
        Throws:
        MXException
        java.rmi.RemoteException
      • processPreparedStatementsForUpdate

        public void processPreparedStatementsForUpdate()
                                                throws MXException,
                                                       java.rmi.RemoteException
        10-14955: processes the update statement-when itemspec is updated in alnvalue,numvalue, or tablevalue, update corresponding assetspec records it includes update assetspec and insert into assetspechist
        Throws:
        MXException
        java.rmi.RemoteException