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 Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InfoTable
static InfoTable
static InfoTable
Creates and returns a new
with aInfoTable
from the given entity type as a StringDataShapeDefinition
static InfoTable
static InfoTable
Creates and returns a new
containing the fields defined in the givenInfoTable
FieldDefinitionCollection
static InfoTable
-
Constructor Details
-
InfoTableInstanceFactory
public InfoTableInstanceFactory()
-
-
Method Details
-
createInfoTableFromDataShape
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromDataShape(DataShapeDefinition t) throws Exception - Parameters:
t
- DataShapeDefinition defining the fields for the new InfoTable- Returns:
- A new InfoTable with the given fields
- Throws:
Exception
- If an error occurs
-
createInfoTableFromDataShape
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromDataShape(String type) throws 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:
Exception
- If an error occurs
-
convertInfoTableUsingDataShape
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable convertInfoTableUsingDataShape(InfoTable t, DataShapeDefinition ds) throws 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:
Exception
- If an error occurs
-
createInfoTableFromFieldDefinition
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromFieldDefinition(FieldDefinition field) throws Exception - Parameters:
field
- The field for the new InfoTable- Returns:
- A new InfoTable with the given field
- Throws:
Exception
- If an error occurs
-
createInfoTableFromParameters
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromParameters(FieldDefinitionCollection t) throws 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:
Exception
- If an error occurs
-
createInfoTableFromVTQ
@ThingworxExtensionApiMethod(since={6,6}) public static InfoTable createInfoTableFromVTQ(VTQ vtq) throws 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:
Exception
- If an error occurs
-