@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true, canExtendOrImplement=true) public class DataTableThing extends DataThingWithEvents<DataTableServiceProvider> implements IData, IFeed, IDynamicServiceShape
Modifier and Type | Field and Description |
---|---|
protected DataShapeDefinition |
_dataShape |
protected DataShapeDefinition |
_externalDataShape |
protected static org.slf4j.Logger |
_logger |
static java.lang.String |
ACCUMULATED_DATA_SHAPE |
static java.lang.Integer |
BUFFER |
static java.lang.String |
CONTENT_FIELD |
static java.lang.String |
KEY_FIELD |
DATA_THING_SETTINGS, PERSISTENCE_PROVIDER, PERSISTENCE_PROVIDER_DESCRIPTION
DATASHAPE_INCOMING_LOCAL_PROPERTY_BINDING, DEFAULT_SETTINGS_TABLE, ENTITYLIST_SHAPE, GENERIC_THING_TEMPLATE, TYPE_THING
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
DataTableThing() |
Modifier and Type | Method and Description |
---|---|
void |
AddDataTableEntries(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values)
Service Category: DataTableEntries
Service Description: Add multiple data table entries.
|
java.lang.String |
AddDataTableEntry(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values)
Service Category: DataTableEntries
Service Description: Add a new data table entry.
|
void |
AddOrUpdateDataTableEntries(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values)
Service Category: DataTableEntries
Service Description: Add or update multiple data table entries.
|
java.lang.String |
AddOrUpdateDataTableEntry(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values)
Service Category: DataTableEntries
Service Description: Add a new data table entry, or if it exists, update an existing entry.
|
void |
AssignDataTableEntries(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values)
Service Category: DataTableEntries
Service Description: Replaces existing data table entries.
|
InfoTable |
CreateValues()
Service Category: Values
Service Description: Create an empty info table of the correct datashape for this data table.
|
InfoTable |
CreateValuesWithData(org.json.JSONObject values)
Service Category: Values
Service Description: Create an info table of the correct datashape for this stream and include data values.
|
void |
DeleteDataTableEntries(InfoTable Info)
Deprecated.
|
void |
DeleteDataTableEntries(InfoTable values,
java.lang.Double maxItems)
Service Category: DataTableEntries
Service Description: Delete all table entries that match the provided values.
|
void |
DeleteDataTableEntriesWithQuery(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values,
org.json.JSONObject query)
Service Category: DataTableEntries
Service Description: Add or update multiple data table entries based on a query.
|
void |
DeleteDataTableEntry(InfoTable values)
Service Category: DataTableEntries
Service Description: Delete an existing data table entry.
|
void |
DeleteDataTableEntryByKey(java.lang.String key)
Service Category: DataTableEntries
Service Description: Delete an existing data table entry using its key value.
|
InfoTable |
FindDataTableEntries(InfoTable Info)
Deprecated.
|
InfoTable |
FindDataTableEntries(InfoTable values,
java.lang.Double maxItems)
Service Category: Queries
Service Description: Retrieve all table entries that match the provided values.
|
DataShapeDefinition |
getDataShape() |
java.lang.String |
GetDataShape()
Service Category: DataShape
Service Description: Get the currently assigned data shape.
|
java.lang.String |
getDataShapeName() |
InfoTable |
GetDataTableEntries(java.lang.Double maxItems)
Service Category: Queries
Service Description: Retrieve all table entries up to max items number.
|
InfoTable |
GetDataTableEntry(InfoTable values)
Service Category: DataTableEntries
Service Description: Get an existing data table entry.
|
InfoTable |
GetDataTableEntryByKey(java.lang.String key)
Service Category: DataTableEntries
Service Description: Get an existing data table entry using its key value.
|
java.lang.Integer |
GetDataTableEntryCount()
Service Category:
Service Description: Get an count of data table entries.
|
RelationshipTypes.ThingworxRelationshipTypes |
getDataType() |
EntityReferenceTypeMap |
getDependencies()
|
IDataEntryCloseableIterator<DataTableEntry> |
getEntryIterator()
Returns an iterator over all entries inside this data table thing. |
InfoTable |
GetFieldNames()
Service Category: Fields
Service Description: Retrieve a list of field names for the data shape associated with this stream.
|
InfoTable |
GetFieldNamesByType(java.lang.String type)
Service Category: Fields
Service Description: Retrieve a list of field names for the data shape associated with this stream, of a specific type.
|
java.lang.String |
getItemCollectionName() |
java.lang.String |
getItemEntityName() |
RelationshipTypes.ThingworxRelationshipTypes |
getItemEntityType() |
void |
initializeThing()
|
protected boolean |
isStoredAsEncrypted()
True if a secure data table. |
void |
PurgeDataTableEntries()
Service Category: Maintenance
Service Description: Remove all data table entries.
|
InfoTable |
QueryDataTableEntries(InfoTable values,
java.lang.Double maxItems,
TagCollection tags,
java.lang.String source,
org.json.JSONObject query)
Service Category: Queries
Service Description: Retrieve all table entries that match the query parameters.
|
void |
Reindex()
Service Category: Indexing
Service Description: Reindex the custom indexes on the data table.
Reindexes the Data Table data through Thingworx. |
InfoTable |
SearchDataTableEntries(java.lang.Double maxItems,
java.lang.String searchExpression,
TagCollection tags,
org.json.JSONObject query,
java.lang.String source)
Service Category: Queries
Service Description: Retrieve all table entries that match the search query parameters.
|
void |
SetDataShape(java.lang.String name)
Service Category: DataShape
Service Description: Sets the data shape.
|
void |
UpdateDataTableEntries(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values)
Service Category: DataTableEntries
Service Description: Update multiple data table entries.
|
void |
UpdateDataTableEntriesWithQuery(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values,
org.json.JSONObject query,
InfoTable updateValues)
Service Category: DataTableEntries
Service Description: Add or update multiple data table entries based on a query.
|
void |
UpdateDataTableEntry(TagCollection tags,
Location location,
java.lang.String source,
java.lang.String sourceType,
InfoTable values)
Service Category: DataTableEntries
Service Description: Update an existing data table entry.
|
void |
validateConfiguration(ImportedEntityCollection importedEntityCollections)
|
GetPersistenceProvider, SetPersistenceProvider
AcknowledgeAlert, acknowledgeAlertByProperty, acknowledgeAlertByPropertyAndName, acknowledgeAllAlerts, AcknowledgeAllAlerts, AddBooleanValueStreamEntry, AddDateTimeValueStreamEntry, AddDynamicSubscription, AddEventDefinition, AddImageValueStreamEntry, AddInfoTableValueStreamEntry, AddIntegerValueStreamEntry, AddLocationValueStreamEntry, AddLongValueStreamEntry, AddNumberValueStreamEntry, AddOrUpdateAlert, addProperty, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinitions, AddPropertyTransformDefinition, AddServiceDefinition, AddStringValueStreamEntry, AddTags, AddThingCodeValueStreamEntry, AddVec2ValueStreamEntry, AddVec3ValueStreamEntry, AddVec4ValueStreamEntry, checkDemandRead, checkPropertyName, checkValueStream, cleanupThing, cleanupThing, DisableAlertsForProperty, DisableAllAlerts, DisableSubscription, DisableThing, dispatchBackgroundEvent, dispatchEvent, dispose, EnableAlertsForProperty, EnableAllAlerts, EnableSubscription, EnableThing, fireEvent, getAlertConfigurations, GetAlertDefinition, GetAlertDefinitions, getAlerts, getAlertsForProperty, GetAlertStatus, GetAlertStatuses, GetAlertStatusesForProperty, GetAlertSummary, GetAlertSummaryForProperty, GetAllAnomalyAlertTrainingStatistics, getAllImplementedThingShapes, getAllImplementedThingTemplates, GetAnomalyAlertTrainingStatisticsForAlert, GetAnomalyAlertTrainingStatisticsForProperty, GetAvatar, GetBooleanAlertParameter, GetBooleanPropertyValue, GetDateTimeAlertParameter, GetDateTimePropertyValue, getEffectiveAlertConfiguration, getEffectiveAlertDefinition, getEffectiveEventDefinition, getEffectiveIdentifier, GetEffectiveLocalPropertyBinding, getEffectiveLocalPropertyBindings, GetEffectiveLocalPropertyBindings, getEffectivePropertyDefinition, GetEffectivePropertyLogging, getEffectiveRemoteEventBindings, getEffectiveRemotePropertyBindings, getEffectiveRemoteServiceBindings, getEffectiveServiceDefinition, getEffectiveValueStreamName, getEntityType, GetHomeMashup, getIdentifier, GetIdentifier, GetImagePropertyValue, GetImplementedShapes, getImplementedThingTemplates, GetIncomingLocalPropertyBinding, GetIncomingLocalPropertyBindings, getInstanceEventDefinition, getInstanceEventDefinitions, getInstancePropertyDefinition, getInstancePropertyDefinitions, getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, getInstanceShape, getInstanceSubscriptions, GetIntegerAlertParameter, GetIntegerPropertyValue, GetLocalAlertDefinitions, GetLocallyImplementedShapes, GetLocalPropertyBinding, GetLocationAlertParameter, GetLocationPropertyValue, GetLoggedProperties, GetLongAlertParameter, GetLongPropertyValue, GetMashups, GetNamedProperties, GetNamedPropertyValues, GetNamedPropertyValuesVTQ, GetNamedPropertyValuesVTQA, GetNetworks, GetNumberAlertParameter, GetNumberPropertyValue, GetNumericLoggedProperties, getProperties, getProperty, getPropertyAckStatus, getPropertyAlertStatus, GetPropertyLogging, getPropertyQuality, GetPropertyQuality, getPropertyTime, GetPropertyTime, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValues, GetPropertyValues, getPropertyValuesAsInfoTable, GetPropertyValuesAsMultiRowTable, GetPropertyValuesVTQ, GetPropertyValuesVTQA, GetPublished, GetRemoteEventBinding, GetRemotePropertyBinding, GetRemoteServiceBinding, getState, GetStringAlertParameter, GetStringPropertyValue, GetThingCodePropertyValue, GetThingRelationships, GetThingSummaryInformation, getThingTemplate, GetThingTemplate, getThingTemplateName, GetValueStream, getValueStreamName, GetVec2PropertyValue, GetVec3PropertyValue, GetVec4PropertyValue, HasAlert, hasEventDefinition, hasLocalEventDefinition, hasLocalPropertyDefinition, hasLocalServiceDefinition, hasProperty, hasPropertyDefinition, hasServiceDefinition, HavePropertiesChangedSince, implementsShape, ImplementsShape, implementsTemplate, initializeEntity, initializeProperty, initializeThing, isAlwaysAvailableService, isBuiltInEvent, isBuiltInProperty, IsDerivedFromTemplate, IsDynamicSubscriptionCreated, isEnabled, IsEnabled, isEventRemote, isExternallySubscribed, IsInNetwork, isLocallySubscribed, isLocalProperty, isPropertyEvent, isPropertyRemote, isPublished, isRunning, isServiceRemote, isSubscribed, preprocessSetPropertyVTQ, processAPIServiceRequest, processServiceRequest, processStartNotification, processStartNotification, PurgeAllPropertyHistory, PurgePropertyHistory, PurgeSelectedPropertyHistory, QueryAlertHistory, QueryAlertSummary, QueryBooleanPropertyHistory, QueryDateTimePropertyHistory, QueryImagePropertyHistory, QueryInfoTablePropertyHistory, QueryIntegerPropertyHistory, QueryLocationPropertyHistory, QueryLongPropertyHistory, QueryNamedPropertyHistory, QueryNumberPropertyHistory, QueryPropertyHistory, QueryStringPropertyHistory, QueryThingCodePropertyHistory, QueryVec2PropertyHistory, QueryVec3PropertyHistory, QueryVec4PropertyHistory, RemoveAlert, RemoveDynamicSubscription, RemoveEventDefinition, RemoveLocalPropertyBinding, RemovePropertyDefinition, RemoveRemoteEventBinding, RemoveRemotePropertyBinding, RemoveRemoteServiceBinding, RemoveServiceDefinition, RestartThing, SetBooleanAlertParameter, SetDateTimeAlertParameter, SetDescription, SetIdentifier, SetIntegerAlertParameter, SetLocalPropertyBinding, SetLocalPropertyBinding, SetLocationAlertParameter, SetNumberAlertParameter, SetPropertyLogging, setPropertyValue, SetPropertyValues, setPropertyVTQ, setPropertyVTQ, SetPublished, SetRemoteEventBinding, SetRemotePropertyBinding, SetRemotePropertyBinding, SetRemoteServiceBinding, SetStringAlertParameter, SetTags, setThingTemplateName, SetUnitsForNumericPropertyDefinition, SetValueStream, startThing, startThing, stopThing, UpdatePropertyValues, WritePropertiesToStream
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, getAspects, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, preInitializeEntity, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
getID, hasID
getDescription
getID, getName
public static final java.lang.Integer BUFFER
public static final java.lang.String KEY_FIELD
public static final java.lang.String CONTENT_FIELD
public static final java.lang.String ACCUMULATED_DATA_SHAPE
protected static org.slf4j.Logger _logger
protected DataShapeDefinition _dataShape
protected DataShapeDefinition _externalDataShape
@ThingworxExtensionApiMethod(since={6,6}) public DataTableThing()
@ThingworxExtensionApiMethod(since={7,0,1}) public IDataEntryCloseableIterator<DataTableEntry> getEntryIterator() throws java.lang.Exception
java.lang.Exception
- if an exception occurred creating the iterator@ThingworxExtensionApiMethod(since={6,6}, canOverride=true, requiresSuper=true) public void validateConfiguration(ImportedEntityCollection importedEntityCollections) throws java.lang.Exception
Thing
Validates the configuration of the thing during the import process. This method is called whenever a thing is created or modified via
the REST APIs. During the validation step, there may be other associated entities (including thing shapes and templates) that are
being imported. These can be accessed via the importedEntities
collection if needed.
Note that some resources belonging to the thing or other associated entities may not be available during this step in the lifecycle.
It is required for all subclasses of Thing
to call super.validateConfiguration(importedEntities)
if they override
this method.
validateConfiguration
in class Thing
importedEntityCollections
- - a typed collection of entities currently being importedjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}, canOverride=true, requiresSuper=true) public void initializeThing() throws java.lang.Exception
Thing
An initialization hook for subclasses of Thing
. Some resources of Thing
may not be available at this point in the
lifecycle.
initializeThing
in class Thing
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getDataShapeName()
getDataShapeName
in interface IData
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetDataShape()
@ThingworxExtensionApiMethod(since={6,6}) public void SetDataShape(java.lang.String name) throws java.lang.Exception
name
- Data shape name - DATASHAPENAMEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public DataShapeDefinition getDataShape()
getDataShape
in interface IData
getDataShape
in interface IDynamicServiceShape
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetFieldNames() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetFieldNamesByType(java.lang.String type) throws java.lang.Exception
type
- Base type name - BASETYPENAMEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void Reindex() throws java.lang.Exception
java.lang.Exception
- If reindexing fails. Some data providers throw NotImplementedException because reindexing is not supported.@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String AddOrUpdateDataTableEntry(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AddOrUpdateDataTableEntries(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void UpdateDataTableEntries(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AddDataTableEntries(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void UpdateDataTableEntriesWithQuery(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values, org.json.JSONObject query, InfoTable updateValues) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values to search for - INFOTABLEquery
- Query definition - QUERYupdateValues
- Data values to be updated - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void DeleteDataTableEntriesWithQuery(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values, org.json.JSONObject query) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEquery
- Query definition - QUERYjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String AddDataTableEntry(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void UpdateDataTableEntry(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AssignDataTableEntries(TagCollection tags, Location location, java.lang.String source, java.lang.String sourceType, InfoTable values) throws java.lang.Exception
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void DeleteDataTableEntry(InfoTable values) throws java.lang.Exception
values
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void DeleteDataTableEntryByKey(java.lang.String key) throws java.lang.Exception
key
- Key Value - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDataTableEntry(InfoTable values) throws java.lang.Exception
values
- Data values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDataTableEntryByKey(java.lang.String key) throws java.lang.Exception
key
- Key Value - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void PurgeDataTableEntries() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable CreateValues() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable CreateValuesWithData(org.json.JSONObject values) throws java.lang.Exception
values
- Data values (JSON Object) - JSONjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDataTableEntries(java.lang.Double maxItems) throws java.lang.Exception
maxItems
- Maximum number of items to return - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,5}) @Deprecated public InfoTable FindDataTableEntries(InfoTable Info) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={8,5}) public InfoTable FindDataTableEntries(InfoTable values, java.lang.Double maxItems) throws java.lang.Exception
values
- Data values - INFOTABLEmaxItems
- Maximum number of items to return - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,5}) @Deprecated public void DeleteDataTableEntries(InfoTable Info) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={8,5}) public void DeleteDataTableEntries(InfoTable values, java.lang.Double maxItems) throws java.lang.Exception
values
- Data values - INFOTABLEmaxItems
- Maximum number of items to return - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Integer GetDataTableEntryCount() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryDataTableEntries(InfoTable values, java.lang.Double maxItems, TagCollection tags, java.lang.String source, org.json.JSONObject query) throws java.lang.Exception
values
- Data values - INFOTABLEmaxItems
- Maximum number of items to return - NUMBERtags
- Tags (optional) - TAGSsource
- Source (optional) - STRINGquery
- Query definition - QUERYjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchDataTableEntries(java.lang.Double maxItems, java.lang.String searchExpression, TagCollection tags, org.json.JSONObject query, java.lang.String source) throws java.lang.Exception
maxItems
- Maximum number of items to return - NUMBERsearchExpression
- Search expression - STRINGtags
- Tags (optional) - TAGSquery
- Query definition - QUERYsource
- Source (optional) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public EntityReferenceTypeMap getDependencies()
Thing
Returns a map containing references to all entities that the Thing is dependent on.
getDependencies
in class Thing
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getDataType()
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getItemEntityType()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getItemEntityName()
getItemEntityName
in interface IFeed
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getItemCollectionName()
getItemCollectionName
in interface IFeed
@ThingworxExtensionApiMethod(since={6,6}, canOverride=true) protected boolean isStoredAsEncrypted()