Package com.thingworx.data.util
Class InfoTableInstanceFactory
- java.lang.Object
-
- com.thingworx.data.util.InfoTableInstanceFactory
-
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class InfoTableInstanceFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InfoTableInstanceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InfoTable
convertInfoTableUsingDataShape(InfoTable t, DataShapeDefinition ds)
static InfoTable
createInfoTableFromDataShape(DataShapeDefinition t)
static InfoTable
createInfoTableFromDataShape(java.lang.String type)
Creates and returns a new
with aInfoTable
from the given entity type as a StringDataShapeDefinition
static InfoTable
createInfoTableFromFieldDefinition(FieldDefinition field)
static InfoTable
createInfoTableFromParameters(FieldDefinitionCollection t)
Creates and returns a new
containing the fields defined in the givenInfoTable
FieldDefinitionCollection
static InfoTable
createInfoTableFromVTQ(VTQ vtq)
-
-
-
Method Detail
-
createInfoTableFromDataShape
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromDataShape(DataShapeDefinition t) throws java.lang.Exception
- Parameters:
t
- DataShapeDefinition defining the fields for the new InfoTable- Returns:
- A new InfoTable with the given fields
- Throws:
java.lang.Exception
- If an error occurs
-
createInfoTableFromDataShape
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromDataShape(java.lang.String type) throws java.lang.Exception
Creates and returns a new
with aInfoTable
from the given entity type as a StringDataShapeDefinition
- 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
- Parameters:
t
- InfoTable to be convertedds
- 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
- Parameters:
field
- The field for the new InfoTable- Returns:
- A new InfoTable with the given field
- Throws:
java.lang.Exception
- If an error occurs
-
createInfoTableFromParameters
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromParameters(FieldDefinitionCollection t) throws java.lang.Exception
Creates and returns a new
containing the fields defined in the givenInfoTable
FieldDefinitionCollection
- Parameters:
t
- FieldDefinitionCollection The fields for the new InfoTable- Returns:
- A new InfoTable with the given fields
- Throws:
java.lang.Exception
- If an error occurs
-
createInfoTableFromVTQ
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromVTQ(VTQ vtq) throws java.lang.Exception
- 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
-
-