com.ibm.tivoli.maximo.load

Class OSFlatFileLoaderImpl



  • public class OSFlatFileLoaderImpl
    extends BaseFileLoaderImpl
    Processing class for the file Loading in MAXIMO.
    • Constructor Detail

      • OSFlatFileLoaderImpl

        public OSFlatFileLoaderImpl(boolean preview,
                                    boolean fromClient,
                                    java.lang.String delimiter,
                                    java.lang.String textQualifier,
                                    boolean isFileExtract,
                                    java.lang.String fileName,
                                    java.lang.String processOwner)
                             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
        delimiter - delimiter chanracter for flatfile
        textQualifier - Text Qualifier
        isFileExtract - Indicates when File Extract feature is desired
        fileName - File name under process (used by file extract functionality)
        processOwner - Owner of this file load process (used by file extract functionality)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • OSFlatFileLoaderImpl

        public OSFlatFileLoaderImpl(boolean preview,
                                    java.lang.String delimiter,
                                    java.lang.String textQualifier,
                                    java.lang.String action,
                                    java.lang.String transLangCode)
                             throws MXException,
                                    java.rmi.RemoteException
        Construct the set
        Parameters:
        preview - boolean indicating whether it is a UI preview mode or not.
        delimiter - delimiter chanracter for flatfile
        textQualifier - Text Qualifier
        action - action - Add,AddChange,Change, Replace, Delete
        transLangCode - Lang Code
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • saveErrorFile

        protected void saveErrorFile()
                              throws java.rmi.RemoteException,
                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • processObjectStructureFlatData

        public void processObjectStructureFlatData(java.io.InputStream inStream,
                                                   java.lang.String osName,
                                                   java.lang.String messageType,
                                                   MboRemote npMbo)
                                            throws MXException
        Process Flat file.
        Parameters:
        inStream - InputStream of the file to be processed
        osName - Object Structure Name
        npMbo - non persistent Mbo
        Throws:
        MXException
      • validateFile

        public void validateFile(java.io.InputStream inStream,
                                 java.lang.String osName,
                                 java.lang.String messageType,
                                 MboRemote npMbo)
                          throws MXException
        Throws:
        MXException
      • writeToFile

        public void writeToFile(int lineNum)
                         throws java.io.IOException,
                                MXException
        writeToFile - Apple apar 250636
        Parameters:
        LineCount - of last record processed
        Throws:
        MXException
        java.io.IOException