%iKnow.Domainpersistent class %iKnow.Domain
This class represents a domain registered in this namespace.
The name of the Domain Definition class managing this domain, if any. See also property Id as
The automatically generated ID for this domain, which is unique across namespaces property Name as
The name of this domain, which should be unique within the namespace (case-insensitive) property Version as
Stores the iKnow data structure version number for this domain.
Clone the current object to a new object. If deep is 1 then this does a deep copy which will also copy any subobjects and if deep is 0 then it will create another reference to any subobjects and increment the reference count appropriately. It returns the new cloned object. classmethod %DeleteExtent(concurrency As
Note that even if deep=0 when you clone a parent object in a parent child relationship or a one object of a one to many relationship then it will construct clones of all the child/many objects. This is because a child/many object can only point at a single parent and so if we did not create a clone of these then you would have a relationship with zero items in it. If you really just want to clone the object without these child/many objects then pass deep=-1 to this method.
After the clone is constructed it will call %OnConstructClone(object,deep,.cloned) on the clone if it is defined so that you can perform any additional steps e.g. taking out a lock. This works just the same way as %OnNew() does.
The object is the oref of the original object that was cloned. The cloned array is just used internally when doing a deep clone to prevent recursive loops, do not pass anything in at all for this parameter on the initial call. If you write a %OnConstructClone and from here you wish to call %ConstructClone on another object pass in the cloned array, e.g. 'Do oref.%ConstructClone(1,.cloned)' so that it can prevent recursive loops.
The location is used internally to pass the new location for stream objects.
Delete all instances of this class from its extent. On exit instancecount contains the original number of instances while deletecount contains the number of instances actually deleted. method %DispatchGetProperty(Property As
%DeleteExtentiterates over the set of instances in the collection and invokes the %Deletemethod. Refer to About Concurrency for more details on the optional concurrency argument. The option pInitializeExtent argument allows the user to override the default behavior of calling %KillExtentwhen all instances are successfully deleted. %KillExtentis called by default when the extent is empty so that empty globals can be killed. If %KillExtentis not called then some empty globals can remain as well as the ID counter if it exists. The default value for pInitializeExtent is 1. Unless the caller specifies a false value for pInitializeExtent the globals used by the extent will be killed. In some cases, the globals used by the extent are not used exclusively by the extent. In those cases it is possible that some globals will still be defined even when pInitializeExtent is true.
%Statusvalue indicating success or failure.
Is used to get the value of an unknown property, redirecting to the domain parameter. method %DispatchSetProperty(Property As
is used to set the value of an unknown property, redirecting to the domain parameter. deprecatedclassmethod Create(name As
Creates a domain with the specified domain name in the given namespace. If no value is supplied for sortField, it will assume the system-wide defaults. buildFlags is either of "ALL" or "MINIMAL". An empty value will assume the system default. deprecatedclassmethod Delete(domainName As
%Newinstead (supplying only the name parameter)
Utility method to delete a domain from the system, including its data, settings and system global entries. deprecatedclassmethod DeleteId(domainId As
%DeleteIdinstead (accepts domain ID)
Utility method to delete a domain from the system, including its data, settings and system global entries. method DropData(dropMetadataDefinitions As
This method will drop all sources and subsequent indexes from this domain. deprecatedclassmethod Exists(name As
Checks whether a domain with the given name already exists within the namespace classmethod GetCurrentSystemVersion() as
deprecatedclassmethod GetOrCreateId(name As
Returns the current version of this Caché instance, which is the version of any newly created domain in this instance. Domains already created in this instance before it was last upgraded or which were imported from other instances through other means, may have earlier versions. To check the version of a particular domain, use the
Versionproperty of a %iKnow.Domain instance.
method GetParameter(paramName As
Shorthand method to get the domain ID for a specific domain name, creating it if it does not yet exist in this namespace.
Returns the value used for parameter paramName for this domain. This can be a domain-specific override (definedAt = "DOMAIN"), a namespace-wide default (definedAt = "NAMESPACE") or the hardcoded default (definedat = "DEFAULT") method GetParameters(Output pParams) as
classmethod GetSystemParameter(paramName As
Returns an array pParams containing all the domain parameters registered for this instance in the form: pParams(paramName) = paramValue.NOTE: this might include parameters that cannot be modified by end users, but will not include values defined at the namespace level.
Returns the current namespace-wide value for a domain parameter if there is one registered. See method IsEmpty() as
GetParameterfor more details on how to fetch the current APPLICABLE parameter for a domain, as this method does not take any domain-specific settings or hardcoded defaults into account.
Returns whether or not a domain is empty. If there are any entities or remnants of (virtual) sources, this method will return false. deprecatedclassmethod Open(name As
Opens a domain object with the specified name deprecatedclassmethod OpenId(id As
Opens a domain object with the specified ID deprecatedclassmethod RegisterImportedDomain(domainId As
This method has been deprecated. There is no need for "registering" or otherwise marking domains that have been imported from globals or data files. classmethod Rename(pFrom As
This method renames an existing domain named pFrom to pTo, if there isn't already a domain with that name in this namespace. The domain ID does not change. method SetParameter(paramName As
Sets a domain-specific parameter, overriding the system default classmethod SetSystemParameter(paramName As
Registers a domain parameter at the namespace level, for all domains in the current namespace. If there is already a value registered, call method UnsetParameter(paramName As
UnsetSystemParameterfirst to explicitly clear the current value.
Unsets a domain-specific parameter, so it will use the system default again classmethod UnsetSystemParameter(paramName As
Removes a namespace-level default parameter value for the given parameter name.
Utility query to retrieve a list of all registered Domains
Deprecated: Please use normal SQL queries to approach this class.