Class InfoTableInstanceFactory

  • java.lang.Object
    • com.thingworx.data.util.InfoTableInstanceFactory
    • Constructor Detail

      • InfoTableInstanceFactory

        public InfoTableInstanceFactory()
    • Method Detail

      • createInfoTableFromDataShape

        @ThingworxExtensionApiMethod(since={6,6})
        public static InfoTable createInfoTableFromDataShape​(java.lang.String type)
                                                      throws java.lang.Exception


        Creates and returns a new InfoTable with a DataShapeDefinition from the given entity type as a String
        Parameters:
        type - The entity type as a String
        Returns:
        InfoTable with a DataShape from the given entity type
        Throws:
        java.lang.Exception - If an error occurs
      • convertInfoTableUsingDataShape

        @ThingworxExtensionApiMethod(since={6,6})
        public static InfoTable convertInfoTableUsingDataShape​(InfoTable t,
                                                               DataShapeDefinition ds)
                                                        throws java.lang.Exception


        Convert a given InfoTable into a new InfoTable that uses the given DataShapeDefinition
        Parameters:
        t - InfoTable to be converted
        ds - DataShapeDefinition to be used in the new InfoTable
        Returns:
        InfoTable using the new DataShapeDefinition and values from the given InfoTable
        Throws:
        java.lang.Exception - If an error occurs
      • createInfoTableFromFieldDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public static InfoTable createInfoTableFromFieldDefinition​(FieldDefinition field)
                                                            throws java.lang.Exception


        Creates and returns a new InfoTable containing the field defined in the given FieldDefinition
        Parameters:
        field - The field for the new InfoTable
        Returns:
        A new InfoTable with the given field
        Throws:
        java.lang.Exception - If an error occurs
      • createInfoTableFromVTQ

        @ThingworxExtensionApiMethod(since={6,6})
        public static InfoTable createInfoTableFromVTQ​(VTQ vtq)
                                                throws java.lang.Exception


        Creates and returns a new InfoTable with a row set to the given VTQ values
        Parameters:
        vtq - VTQ containing the values to be set in each field of the row
        Returns:
        InfoTable containing a row with the given VTQ values
        Throws:
        java.lang.Exception - If an error occurs