This class stores and provides an API for system-wide Production default settings.
The XMLIGNOREINVALIDATTRIBUTE parameter allows the programmer to control handling of unexpected attributes in the XML input. By default (XMLIGNOREINVALIDATTRIBUTE = 1), will ignore unexpected attributes. If XMLIGNOREINVALIDATTRIBUTE is set = 0, then an unexpected attribute will be treated as an error.
This parameter provides the default XMLNAME for the class. If it is empty then the class name will be used to construct a default XML name. The default XMLNAME is used as the top level tag when exporting objects and the export context did not provide an XML container name.
Indicates whether this system default setting can be exported for deployment.
Optional description for this item.
Host class name.
Host config name.
Delete the contents of the Default Settings table.
If pProduction is provided then just clear settings for this production, otherwise clear all settings.
Delete the deployable contents of the Default Settings table which are projected as one Studio document.
If pIDsToKeep array is passed in where the subscript is the settings id then those settings will not be deleted.
Export Default Settings data to file pFileName. If pProductionName is provided, then only export data that refers to this production.
If pDeployable is not defined, then export both Deployable and non Deployable. This is the default
If pDeployable is set to True, then only export data that is marked as Deployable.
If pDeployable is set to False, then only export data that is marked as not Deployable.
Export Default Settings that are deployable to stream pStream.
Look up a setting value from the Default Settings table given the production name, class name, configured name, and setting property name.
Returns a boolean to indicate if the given setting is found or not. On return, pValue will contain the value of the setting if the setting is found.
Import Default Settings data from the xml file pFileName.
Lookup data is in the form:<defaultSettings> <item production="*" class="MyPkg.MyClass" name="MyName" setting="PortNumber" value="1961"/> </defaultSettings>
Import method for rows projected in studio document and then remove those that weren't imported after.
Ensure we track changes to the production configuration. Update the timestamp whenever a deployable row is removed from a table.
Ensure that we track changes to the production configuration. Update the timestamp for the settings whenever an entry is added or updated that is deployable.
This callback method is invoked by the
%Savemethod to provide notification that the object is being saved. It is called before any data is written to disk.
insert will be set to 1 if this object is being saved for the first time.
If this method returns an error then the call to
Update the flags that track modifications to production settings.
Helper method for getting the timestamp of a settings table.
Helper method for updating the timestamp of a settings table.
SQL Query :
SELECT ID,ProductionName,ItemName,HostClassName,SettingName,SettingValue,Deployable FROM DefaultSettings
Ensure that SQL updates to the Default Settings are tracked.
Update the timestamp whenever a deployable row is removed from a table.
Update the timestamp for the settings whenever an entry is added or updated that is deployable.