com.ibm.tivoli.maximo.load

Class BaseFileLoaderImpl

  • java.lang.Object
    • com.ibm.tivoli.maximo.load.BaseFileLoaderImpl
    • Constructor Summary

      Constructors 
      Constructor and Description
      BaseFileLoaderImpl(boolean preview, boolean fromClient, boolean isFileExtract, java.lang.String fileName)
      Construct the set
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void processData(java.io.InputStream btIn, java.lang.String extSystemName, java.lang.String entServiceName, boolean fromClient)
      abstract method that process the data and send it to Queue (or) process it for preview mode
      protected void saveErrorFile(byte[] errdata) 
      void setImportRow(MboRemote fileimportqueueRow) 
      void setStopOnError(boolean stopOnError) 
      protected void updateProgress(int pIndex, int errCount, boolean complete) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filetype

        protected java.lang.String filetype
      • ispreview

        protected boolean ispreview
      • fromClient

        protected boolean fromClient
      • isFileExtract

        protected boolean isFileExtract
      • fileName

        protected java.lang.String fileName
      • uniqueId

        protected long uniqueId
      • stopOnError

        protected boolean stopOnError
    • Constructor Detail

      • BaseFileLoaderImpl

        public BaseFileLoaderImpl(boolean preview,
                                  boolean fromClient,
                                  boolean isFileExtract,
                                  java.lang.String fileName)
                           throws MXException,
                                  java.rmi.RemoteException
        Construct the set
        Parameters:
        preview - boolean indicating whether it is a UI preview mode or not.
        fromClient - boolean indicating whether it is from UI import or crontask
        isFileExtract - Indicator of File Extract operation
        fileName - Input file name being imported
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • setStopOnError

        public void setStopOnError(boolean stopOnError)
      • setImportRow

        public void setImportRow(MboRemote fileimportqueueRow)
                          throws java.rmi.RemoteException,
                                 MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • updateProgress

        protected void updateProgress(int pIndex,
                                      int errCount,
                                      boolean complete)
                               throws java.rmi.RemoteException,
                                      MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • saveErrorFile

        protected void saveErrorFile(byte[] errdata)
                              throws java.rmi.RemoteException,
                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • processData

        public void processData(java.io.InputStream btIn,
                                java.lang.String extSystemName,
                                java.lang.String entServiceName,
                                boolean fromClient)
                         throws MXException
        abstract method that process the data and send it to Queue (or) process it for preview mode
        Parameters:
        extSystemName - External system name
        entServiceName - Enterprise service name
        fromClient - boolean indicating whether it is from UI import or crontask
        btIn - Input Stream of Data content
        Throws:
        MXException - MAXIMO exception