Class DataTableThing
- All Implemented Interfaces:
ISupportsAccessModifier
,IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAlertProvider
,IAvatar
,IEntityLifeCycleEvent
,IEventMetadataProvider
,IEventProvider
,IPersistable
,IPropertyProvider
,IServiceMetadataProvider
,IServiceProvider
,IShapeProvider
,ITaggableObject
,IDependencyScannableObject
,IImportDependencyHandler
,IData
,IDynamicServiceShape
,IHierarchicalEntity
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IEventProcessor
,IAspectContainer
,IFeed
,INamedObject
,Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataShapeDefinition
protected DataShapeDefinition
protected static org.slf4j.Logger
static final String
static final Integer
static final String
static final String
Fields inherited from class com.thingworx.datastorage.DataThing
DATA_THING_SETTINGS, PERSISTENCE_PROVIDER, PERSISTENCE_PROVIDER_DESCRIPTION
Fields inherited from class com.thingworx.things.Thing
BUILT_IN_PROPERTY_DEFINITIONS, DATASHAPE_INCOMING_LOCAL_PROPERTY_BINDING, DEFAULT_SETTINGS_TABLE, ENTITYLIST_SHAPE, GENERIC_THING_TEMPLATE, NON_PROPERTY_BASED_EVENTS, PROPERTY_EVENTS, TYPE_THING
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddDataTableEntries
(TagCollection tags, Location location, String source, String sourceType, InfoTable values) Service Category: DataTableEntries Service Description: Add multiple data table entries.AddDataTableEntry
(TagCollection tags, Location location, String source, String sourceType, InfoTable values) Service Category: DataTableEntries Service Description: Add a new data table entry.void
AddOrUpdateDataTableEntries
(TagCollection tags, Location location, String source, String sourceType, InfoTable values) Service Category: DataTableEntries Service Description: Add or update multiple data table entries.AddOrUpdateDataTableEntry
(TagCollection tags, Location location, String source, 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, String source, String sourceType, InfoTable values) Service Category: DataTableEntries Service Description: Replaces existing data table entries.Service Category: Values Service Description: Create an empty info table of the correct datashape for this data table.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
Deprecated.void
DeleteDataTableEntries
(InfoTable values, Double maxItems) Service Category: DataTableEntries Service Description: Delete all table entries that match the provided values.void
DeleteDataTableEntriesWithQuery
(TagCollection tags, Location location, String source, String sourceType, InfoTable values, org.json.JSONObject query) Deprecated.void
DeleteDataTableEntriesWithQueryCriteria
(TagCollection tags, String source, InfoTable values, org.json.JSONObject query) Service Category: DataTableEntries Service Description: Delete entries from data table entries based on a query, values, tags and source.void
DeleteDataTableEntry
(InfoTable values) Service Category: DataTableEntries Service Description: Delete an existing data table entry.void
Service Category: DataTableEntries Service Description: Delete an existing data table entry using its key value.Deprecated.FindDataTableEntries
(InfoTable values, Double maxItems) Service Category: Queries Service Description: Retrieve all table entries that match the provided values.Service Category: DataShape Service Description: Get the currently assigned data shape.GetDataTableEntries
(Double maxItems) Service Category: Queries Service Description: Retrieve all table entries up to max items number.GetDataTableEntry
(InfoTable values) Service Category: DataTableEntries Service Description: Get an existing data table entry.Service Category: DataTableEntries Service Description: Get an existing data table entry using its key value.Service Category: Service Description: Get an count of data table entries.
Returns an iterator over all entries inside this data table thing.Service Category: Fields Service Description: Retrieve a list of field names for the data shape associated with this stream.GetFieldNamesByType
(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.void
initializeThing
(ContextType contextType) protected boolean
True if a secure data table.void
Service Category: Maintenance Service Description: Remove all data table entries.QueryDataTableEntries
(InfoTable values, Double maxItems, TagCollection tags, 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.SearchDataTableEntries
(Double maxItems, String searchExpression, TagCollection tags, org.json.JSONObject query, String source) Service Category: Queries Service Description: Retrieve all table entries that match the search query parameters.void
SetDataShape
(String name) Service Category: DataShape Service Description: Sets the data shape.void
UpdateDataTableEntries
(TagCollection tags, Location location, String source, String sourceType, InfoTable values) Service Category: DataTableEntries Service Description: Update multiple data table entries.void
UpdateDataTableEntriesWithQuery
(TagCollection tags, Location location, String source, 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, String source, String sourceType, InfoTable values) Service Category: DataTableEntries Service Description: Update an existing data table entry.void
validateConfiguration
(ImportedEntityCollection importedEntityCollections) Methods inherited from class com.thingworx.datastorage.DataThing
GetPersistenceProvider, SetPersistenceProvider
Methods inherited from class com.thingworx.things.Thing
AcknowledgeAlert, acknowledgeAlertByProperty, acknowledgeAlertByPropertyAndName, acknowledgeAllAlerts, AcknowledgeAllAlerts, AddBooleanValueStreamEntry, AddBooleanValueStreamEntry, AddDateTimeValueStreamEntry, AddDateTimeValueStreamEntry, AddDynamicSubscription, AddEventDefinition, AddImageValueStreamEntry, AddImageValueStreamEntry, AddInfoTableValueStreamEntry, AddInfoTableValueStreamEntry, AddIntegerValueStreamEntry, AddIntegerValueStreamEntry, AddLocationValueStreamEntry, AddLocationValueStreamEntry, AddLongValueStreamEntry, AddLongValueStreamEntry, AddNumberValueStreamEntry, AddNumberValueStreamEntry, AddOrUpdateAlert, addProperty, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinitions, AddPropertyTransformDefinition, AddServiceDefinition, AddServiceDefinition, AddStringValueStreamEntry, AddStringValueStreamEntry, AddTags, AddThingCodeValueStreamEntry, AddThingCodeValueStreamEntry, AddVec2ValueStreamEntry, AddVec2ValueStreamEntry, AddVec3ValueStreamEntry, AddVec3ValueStreamEntry, AddVec4ValueStreamEntry, AddVec4ValueStreamEntry, checkDemandRead, checkPropertyName, checkValueStream, cleanupThing, DisableAlertsForProperty, DisableAllAlerts, DisableSubscription, DisableSubscription, DisableThing, dispatchBackgroundEvent, dispatchEvent, dispose, EnableAlertsForProperty, EnableAllAlerts, EnableSubscription, 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, getInstanceMultiEventSubscriptions, getInstancePropertyDefinition, getInstancePropertyDefinitionIfVisible, 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, GetThingGroupDelegatedVisibilityPermissions, GetThingRelationships, GetThingSummaryInformation, getThingTemplate, GetThingTemplate, getThingTemplateName, GetValueStream, getValueStreamName, GetVec2PropertyValue, GetVec3PropertyValue, GetVec4PropertyValue, HasAlert, hasEventDefinition, hasLocalEventDefinition, hasLocalPropertyDefinition, hasLocalServiceDefinition, hasProperty, hasPropertyAndIsVisible, hasPropertyDefinition, hasServiceDefinition, HavePropertiesChangedSince, implementsShape, ImplementsShape, implementsTemplate, initializeEntity, initializeProperty, isAlwaysAvailableService, isBuiltInEvent, isBuiltInProperty, IsDerivedFromTemplate, IsDynamicSubscriptionCreated, isEnabled, IsEnabled, isEventRemote, isExternallySubscribed, IsInNetwork, isLocallySubscribed, isLocalProperty, isPropertyEvent, isPropertyRemote, isPublished, isRunning, isServiceRemote, isSubscribed, preprocessSetPropertyVTQ, processAPIServiceRequest, processServiceRequest, processStartNotification, PurgeAllPropertyHistory, PurgePropertyHistory, PurgeSelectedPropertyHistory, QueryAlertHistory, QueryAlertSummary, QueryBooleanPropertyHistory, QueryBooleanPropertyHistory, QueryDateTimePropertyHistory, QueryDateTimePropertyHistory, QueryImagePropertyHistory, QueryImagePropertyHistory, QueryInfoTablePropertyHistory, QueryInfoTablePropertyHistory, QueryIntegerPropertyHistory, QueryIntegerPropertyHistory, QueryLocationPropertyHistory, QueryLocationPropertyHistory, QueryLongPropertyHistory, QueryLongPropertyHistory, QueryNamedPropertyHistory, QueryNamedPropertyHistory, QueryNamedPropertyHistory, QueryNumberPropertyHistory, QueryNumberPropertyHistory, QueryPropertyHistory, QueryPropertyHistory, QueryPropertyHistory, QueryStringPropertyHistory, QueryStringPropertyHistory, QueryThingCodePropertyHistory, QueryThingCodePropertyHistory, QueryVec2PropertyHistory, QueryVec2PropertyHistory, QueryVec3PropertyHistory, QueryVec3PropertyHistory, QueryVec4PropertyHistory, QueryVec4PropertyHistory, QueuePostCommitEvent, 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, stopThing, UpdatePropertyValues, UpdatePropertyValuesBatched, WritePropertiesToStream
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, 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, 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, ListDeprecatedUsage, 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, UpdateProjectDependencies
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thingworx.types.INamedObject
getDescription
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
Methods inherited from interface com.thingworx.entities.interfaces.IShapeProvider
getName
Methods inherited from interface com.thingworx.accesscontrol.ISupportsAccessModifier
getAccessModifier, getAccessModifierScope, getExemptList, hasAccessModifier, isInternalAccess, isPrivateAccess, isRestrictedAccess
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Field Details
-
BUFFER
-
KEY_FIELD
- See Also:
-
CONTENT_FIELD
- See Also:
-
ACCUMULATED_DATA_SHAPE
- See Also:
-
_logger
protected static org.slf4j.Logger _logger -
_dataShape
-
_externalDataShape
-
-
Constructor Details
-
DataTableThing
-
-
Method Details
-
getEntryIterator
@ThingworxExtensionApiMethod(since={7,0,1}) public IDataEntryCloseableIterator<DataTableEntry> getEntryIterator() throws Exception
Returns an iterator over all entries inside this data table thing. The iterator must be closed when no longer used.- Returns:
- a closeable iterator
- Throws:
Exception
- if an exception occurred creating the iterator
-
validateConfiguration
@ThingworxExtensionApiMethod(since={6,6}, canOverride=true, requiresSuper=true) public void validateConfiguration(ImportedEntityCollection importedEntityCollections) throws Exception Description copied from class: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 callsuper.validateConfiguration(importedEntities)
if they override this method.- Overrides:
validateConfiguration
in classThing
- Parameters:
importedEntityCollections
- - a typed collection of entities currently being imported- Throws:
Exception
- If an error occurs
-
initializeThing
@ThingworxExtensionApiMethod(since={9,0}, canOverride=true, requiresSuper=true) public void initializeThing(ContextType contextType) throws Exception Description copied from class:Thing
An initialization hook for subclasses of
Thing
. Some resources ofThing
may not be available at this point in the lifecycle.- Overrides:
initializeThing
in classThing
- Throws:
Exception
- If an error occurs
-
getDataShapeName
- Specified by:
getDataShapeName
in interfaceIData
-
GetDataShape
- Service Category:
- DataShape
- Service Description:
- Get the currently assigned data shape.
- Returns:
- result Data shape name - DATASHAPENAME
-
SetDataShape
- Service Category:
- DataShape
- Service Description:
- Sets the data shape.
- Parameters:
name
- Data shape name - DATASHAPENAME- Throws:
Exception
- If an error occurs
-
getDataShape
- Specified by:
getDataShape
in interfaceIData
- Specified by:
getDataShape
in interfaceIDynamicServiceShape
-
GetFieldNames
- Service Category:
- Fields
- Service Description:
- Retrieve a list of field names for the data shape associated with this stream.
- Returns:
- result Field names - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception
- If an error occurs
-
GetFieldNamesByType
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetFieldNamesByType(String type) throws Exception - Service Category:
- Fields
- Service Description:
- Retrieve a list of field names for the data shape associated with this stream, of a specific type.
- Parameters:
type
- Base type name - BASETYPENAME- Returns:
- result Field names - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception
- If an error occurs
-
Reindex
- Service Category:
- Indexing
- Service Description:
- Reindex the custom indexes on the data table.
Reindexes the Data Table data through Thingworx. NOTE: This service is not implemented for Postgres, will throw a NotImplementedException if used in that Persistence Provider deployment of Thingworx.- Throws:
Exception
- If reindexing fails. Some data providers throw NotImplementedException because reindexing is not supported.
-
AddOrUpdateDataTableEntry
@ThingworxExtensionApiMethod(since={6,6}) public String AddOrUpdateDataTableEntry(TagCollection tags, Location location, String source, String sourceType, InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Add a new data table entry, or if it exists, update an existing entry.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLE- Returns:
- id Newly created ID - STRING
- Throws:
Exception
- If an error occurs
-
AddOrUpdateDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}) public void AddOrUpdateDataTableEntries(TagCollection tags, Location location, String source, String sourceType, InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Add or update multiple data table entries.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLE- Throws:
Exception
- If an error occurs
-
UpdateDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}) public void UpdateDataTableEntries(TagCollection tags, Location location, String source, String sourceType, InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Update multiple data table entries.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLE- Throws:
Exception
- If an error occurs
-
AddDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}) public void AddDataTableEntries(TagCollection tags, Location location, String source, String sourceType, InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Add multiple data table entries.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLE- Throws:
Exception
- If an error occurs
-
UpdateDataTableEntriesWithQuery
@ThingworxExtensionApiMethod(since={6,6}) public void UpdateDataTableEntriesWithQuery(TagCollection tags, Location location, String source, String sourceType, InfoTable values, org.json.JSONObject query, InfoTable updateValues) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Add or update multiple data table entries based on a query.
- Parameters:
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 - INFOTABLE- Throws:
Exception
- If an error occurs
-
DeleteDataTableEntriesWithQuery
@ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={9,0}) @Deprecated public void DeleteDataTableEntriesWithQuery(TagCollection tags, Location location, String source, String sourceType, InfoTable values, org.json.JSONObject query) throws Exception Deprecated.- Service Category:
- DataTableEntries
- Service Description:
- Add or update multiple data table entries based on a query.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLEquery
- Query definition - QUERY- Throws:
Exception
- If an error occurs
-
DeleteDataTableEntriesWithQueryCriteria
@ThingworxExtensionApiMethod(since={9,0}) public void DeleteDataTableEntriesWithQueryCriteria(TagCollection tags, String source, InfoTable values, org.json.JSONObject query) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Delete entries from data table entries based on a query, values, tags and source.
- Parameters:
tags
- Tags - TAGSsource
- Source of the entry (optional) - STRINGvalues
- Data values - INFOTABLEquery
- Query definition - QUERY- Throws:
Exception
- If an error occurs
-
AddDataTableEntry
@ThingworxExtensionApiMethod(since={6,6}) public String AddDataTableEntry(TagCollection tags, Location location, String source, String sourceType, InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Add a new data table entry.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLE- Returns:
- id Newly created id - STRING
- Throws:
Exception
- If an error occurs
-
UpdateDataTableEntry
@ThingworxExtensionApiMethod(since={6,6}) public void UpdateDataTableEntry(TagCollection tags, Location location, String source, String sourceType, InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Update an existing data table entry.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLE- Throws:
Exception
- If an error occurs
-
AssignDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}) public void AssignDataTableEntries(TagCollection tags, Location location, String source, String sourceType, InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Replaces existing data table entries.
- Parameters:
tags
- Tags - TAGSlocation
- Location of the entry (optional) - LOCATIONsource
- Source of the entry (optional) - STRINGsourceType
- Source type (optional) - STRINGvalues
- Data values - INFOTABLE- Throws:
Exception
- If an error occurs
-
DeleteDataTableEntry
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteDataTableEntry(InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Delete an existing data table entry.
- Parameters:
values
- Data values - INFOTABLE- Throws:
Exception
- If an error occurs
-
DeleteDataTableEntryByKey
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteDataTableEntryByKey(String key) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Delete an existing data table entry using its key value.
- Parameters:
key
- Key Value - STRING- Throws:
Exception
- If an error occurs
-
GetDataTableEntry
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDataTableEntry(InfoTable values) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Get an existing data table entry.
- Parameters:
values
- Data values - INFOTABLE- Returns:
- result Table entries - INFOTABLE - Aspects {isEntityDataShape:true, isDataTableEntry:true}
- Throws:
Exception
- If an error occurs
-
GetDataTableEntryByKey
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDataTableEntryByKey(String key) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Get an existing data table entry using its key value.
- Parameters:
key
- Key Value - STRING- Returns:
- result Table entries - INFOTABLE - Aspects {isEntityDataShape:true, isDataTableEntry:true}
- Throws:
Exception
- If an error occurs
-
PurgeDataTableEntries
- Service Category:
- Maintenance
- Service Description:
- Remove all data table entries.
- Throws:
Exception
- If an error occurs
-
CreateValues
- Service Category:
- Values
- Service Description:
- Create an empty info table of the correct datashape for this data table.
- Returns:
- Values Created Infotable - INFOTABLE - Aspects {isEntityDataShape:true}
- Throws:
Exception
- If an error occurs
-
CreateValuesWithData
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable CreateValuesWithData(org.json.JSONObject values) throws Exception - Service Category:
- Values
- Service Description:
- Create an info table of the correct datashape for this stream and include data values.
- Parameters:
values
- Data values (JSON Object) - JSON- Returns:
- Values Created Infotable - INFOTABLE - Aspects {isEntityDataShape:true}
- Throws:
Exception
- If an error occurs
-
GetDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDataTableEntries(Double maxItems) throws Exception - Service Category:
- Queries
- Service Description:
- Retrieve all table entries up to max items number.
- Parameters:
maxItems
- Maximum number of items to return - NUMBER- Returns:
- result Table entries - INFOTABLE - Aspects {isEntityDataShape:true, isDataTableEntry:true}
- Throws:
Exception
- If an error occurs
-
FindDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,5}) @Deprecated public InfoTable FindDataTableEntries(InfoTable Info) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
FindDataTableEntries
@ThingworxExtensionApiMethod(since={8,5}) public InfoTable FindDataTableEntries(InfoTable values, Double maxItems) throws Exception - Service Category:
- Queries
- Service Description:
- Retrieve all table entries that match the provided values.
- Parameters:
values
- Data values - INFOTABLEmaxItems
- Maximum number of items to return - NUMBER- Returns:
- result Table entries - INFOTABLE - Aspects {isEntityDataShape:true, isDataTableEntry:true}
- Throws:
Exception
- If an error occurs
-
DeleteDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,5}) @Deprecated public void DeleteDataTableEntries(InfoTable Info) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
DeleteDataTableEntries
@ThingworxExtensionApiMethod(since={8,5}) public void DeleteDataTableEntries(InfoTable values, Double maxItems) throws Exception - Service Category:
- DataTableEntries
- Service Description:
- Delete all table entries that match the provided values.
- Parameters:
values
- Data values - INFOTABLEmaxItems
- Maximum number of items to return - NUMBER- Throws:
Exception
- If an error occurs
-
GetDataTableEntryCount
- Service Category:
- Service Description:
- Get an count of data table entries.
- Returns:
- result Table entry count - INTEGER
- Throws:
Exception
- If an error occurs
-
QueryDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryDataTableEntries(InfoTable values, Double maxItems, TagCollection tags, String source, org.json.JSONObject query) throws Exception - Service Category:
- Queries
- Service Description:
- Retrieve all table entries that match the query parameters.
- Parameters:
values
- Data values - INFOTABLEmaxItems
- Maximum number of items to return - NUMBERtags
- Tags (optional) - TAGSsource
- Source (optional) - STRINGquery
- Query definition - QUERY- Returns:
- result Table entries - INFOTABLE - Aspects {isEntityDataShape:true, isDataTableEntry:true}
- Throws:
Exception
- If an error occurs
-
SearchDataTableEntries
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchDataTableEntries(Double maxItems, String searchExpression, TagCollection tags, org.json.JSONObject query, String source) throws Exception - Service Category:
- Queries
- Service Description:
- Retrieve all table entries that match the search query parameters.
- Parameters:
maxItems
- Maximum number of items to return - NUMBERsearchExpression
- Search expression - STRINGtags
- Tags (optional) - TAGSquery
- Query definition - QUERYsource
- Source (optional) - STRING- Returns:
- result Table entries - INFOTABLE - Aspects {isEntityDataShape:true, isDataTableEntry:true}
- Throws:
Exception
- If an error occurs
-
getDependencies
Description copied from class:Thing
Returns a map containing references to all entities that the Thing is dependent on.
- Overrides:
getDependencies
in classThing
- Returns:
- a map of up-stream dependencies
-
getDataType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getDataType() -
getItemEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getItemEntityType() -
getItemEntityName
- Specified by:
getItemEntityName
in interfaceIFeed
-
getItemCollectionName
- Specified by:
getItemCollectionName
in interfaceIFeed
-
isStoredAsEncrypted
True if a secure data table.- Returns:
- boolean
-