Class SerializationHelper

    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void read​(Object object, Node node)
      Deprecated.
      This method will perform the work that used to be done by hand in each kettle input meta for: readData(Node stepnode).
      static void readJobRep​(Object object, Repository rep, org.pentaho.di.repository.ObjectId id_step, List<org.pentaho.di.core.database.DatabaseMeta> databases)
      Deprecated.
      Handle reading of the input (object) from the kettle repository by getting the job-xml from the repository step attribute string and then re-hydrate the job entry (object) with our already existing read method.
      static void readStepRep​(Object object, Repository rep, org.pentaho.di.repository.ObjectId id_step, List<org.pentaho.di.core.database.DatabaseMeta> databases)
      Deprecated.
      Handle reading of the input (object) from the kettle repository by getting the step-xml from the repository step attribute string and then re-hydrate the step (object) with our already existing read method.
      static void saveJobRep​(Object object, Repository rep, org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.ObjectId id_job_entry)
      Deprecated.
      Handle saving of the input (object) to the kettle repository using the most simple method available, by calling write and then saving the job-xml as a job attribute.
      static void saveStepRep​(Object object, Repository rep, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step)
      Deprecated.
      Handle saving of the input (object) to the kettle repository using the most simple method available, by calling write and then saving the step-xml as a step attribute.
      static void write​(Object object, int indentLevel, StringBuilder buffer)
      Deprecated.
      This method will perform the work that used to be done by hand in each kettle input meta for: getXML().
    • Constructor Detail

      • SerializationHelper

        public SerializationHelper()
        Deprecated.
    • Method Detail

      • read

        public static void read​(Object object,
                                Node node)
        Deprecated.
        This method will perform the work that used to be done by hand in each kettle input meta for: readData(Node stepnode). We handle all primitive types, complex user types, arrays, lists and any number of nested object levels, via recursion of this method.
        Parameters:
        object - The object to be persisted
        node - The node to 'attach' our XML to
      • write

        public static void write​(Object object,
                                 int indentLevel,
                                 StringBuilder buffer)
        Deprecated.
        This method will perform the work that used to be done by hand in each kettle input meta for: getXML(). We handle all primitive types, complex user types, arrays, lists and any number of nested object levels, via recursion of this method.
        Parameters:
        object -
        buffer -
      • saveJobRep

        public static void saveJobRep​(Object object,
                                      Repository rep,
                                      org.pentaho.di.repository.ObjectId id_job,
                                      org.pentaho.di.repository.ObjectId id_job_entry)
                               throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Handle saving of the input (object) to the kettle repository using the most simple method available, by calling write and then saving the job-xml as a job attribute.
        Parameters:
        object -
        rep -
        id_transformation -
        id_step -
        Throws:
        org.pentaho.di.core.exception.KettleException
      • readJobRep

        public static void readJobRep​(Object object,
                                      Repository rep,
                                      org.pentaho.di.repository.ObjectId id_step,
                                      List<org.pentaho.di.core.database.DatabaseMeta> databases)
                               throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Handle reading of the input (object) from the kettle repository by getting the job-xml from the repository step attribute string and then re-hydrate the job entry (object) with our already existing read method.
        Parameters:
        object -
        rep -
        id_step -
        databases -
        Throws:
        org.pentaho.di.core.exception.KettleException
      • saveStepRep

        public static void saveStepRep​(Object object,
                                       Repository rep,
                                       org.pentaho.di.repository.ObjectId id_transformation,
                                       org.pentaho.di.repository.ObjectId id_step)
                                throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Handle saving of the input (object) to the kettle repository using the most simple method available, by calling write and then saving the step-xml as a step attribute.
        Parameters:
        object -
        rep -
        id_transformation -
        id_step -
        Throws:
        org.pentaho.di.core.exception.KettleException
      • readStepRep

        public static void readStepRep​(Object object,
                                       Repository rep,
                                       org.pentaho.di.repository.ObjectId id_step,
                                       List<org.pentaho.di.core.database.DatabaseMeta> databases)
                                throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Handle reading of the input (object) from the kettle repository by getting the step-xml from the repository step attribute string and then re-hydrate the step (object) with our already existing read method.
        Parameters:
        object -
        rep -
        id_step -
        databases -
        counters -
        Throws:
        org.pentaho.di.core.exception.KettleException