Class Reference
IRIS for UNIX 2024.1.2
|
|
Private
Storage
|
This class is used internally by InterSystems IRIS. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.
This is a wrapper class used by Studio to manipulate routines.
|
|
Properties | ||||
---|---|---|---|---|
Code | Generated | IsCSP | Name | Namespace |
Protected | TimeStamp | UpToDate |
|
|
A stream (%Routine or%CSP.Routine ) containing the routine associated with this object.
True is this is a CSP/CSR file, else false.
The name of the routine associated with this object.
Return the namespace this routine/csp file exists in. Mainly used for CSP file for the Studio.
Deprecated
The timestamp of the routine associated with this object.
|
Open an instance of%RoutineMgr for routine with name id.
Save the routine associated with this object. Return Refresh=1 if the save has changed the document so it should be refreshed in the client
Used to provide autocomplete in the open dialog, you pass in the name the user has entered and the mask which is the current pattern mask and it will return null if it can not find a match or the next name that does match.
Given a routine name return the name including extension that is most suitable for Studio to open
Used by Studio to avoid calling %SQL.
Compile the routine associated with this object.
For internal use only
Internal method to construct the correct error code if the item is not editable because of source control hooks
Internal function to return absolute version number
Given a CSP path create the associated directory.
Delete the routine name.
Used to delete the files associated with a directory from the open dialog
Return true if the routine/csp/class/project/global/object code exists and false otherwise.
This is a Get accessor method for theGenerated property.
Get the on-disk timestamp for the routine associated with this object.
Return the timestamp of this routine/csp/class/project/global/object code if it exists or -1 if it does not exist
For a given source item, this function returns the source item(s) generated from it or from which it was generated (depending on the 'direction' flag).Returns comma-delimited list of source names (including type string appended to the end) or "" if there is no corresponding other. Example:
- name - string containing name of source item. For example: "Test" or "Sample.Person" There is NO ".MAC" etc in this name.
- type - string containing type of source item: This can be one of: "INT","MAC","BAS","MVB","MVI","CLS","CSP","CSR"
- direction - direction flag: +1 will go in the direction that files are compiled in, for example MAC to INT or CLS to MAC, -1 will go in the opposite direction, INT to MAC, MAC to CLS etc.
- ("Test","INT",-1) --> "Test.MAC"
- ("Test","MAC",1) --> "Test.INT"
- ("Sample.Person","CLS",1) --> "Sample.Person.1.MAC,Sample.Person.2.MAC"
- ("/csp/samples/menu","CSP",1) --> "csp.menu.CLS"
- ("Sample.Person.1","MAC",-1) --> "Sample.Person.CLS"
Note that for classes the routines shown do not include the method generator routines.
The label is of the form 'label+offset', if included then this will return the routine name followed by a ':' and then the offset corresponding to this position
Returns the next FetchCount rows in the query.
This is a Get accessor method for theIsCSP property.
Return true if this is item is a file under a CSP application
Return true if this classname is a generated class, and false otherwise
Return true if this document is generated and false otherwise
Return true if this item is mapped from a database other than the default routine database. Also return the source database in sourcedb.
LanguageMode
LanguageMode
Lock this routine, return true if it worked and false if it did not.
Get or release a lock on a document. Iflock is true (the default) then it will be locked else it will be unlocked.
This is a Set accessor method for theName property.
This is a Get accessor method for theNamespace property.
Calculates the names of all documents that are not up-to-date with their compiled code and returns their names as a subscripted array.Arguments:
- pDocumentList - A subscripted array of document names with the format pDocumentList("User.Test.cls")="". Can be used as the first argument to $SYSTEM.OBJ.CompileList().
- pSpec - Check documents that match this spec. May contain both * and ? as wildcards. It may also consist of more than one, comma-delimited selections. If you wish to exclude items then prefix the pattern with ' symbol.
- pSystem - Check system documents.
- pGenerated - Check generated documents.
- pMapped - Check documents that are mapped from another code database.
Fetch returns the next row in the query.
StudioOpenDialogFetchRows returns the next FetchCount rows in the query.
Return the timestamp for this item. Also returns two output parameters compiletime is the time when this item was compiled, or null if not compiled. uptodate returns true if the named document is up to date with the compiled version, and false if the named document has been modified but not compiled, or a compiled subitem has been modified.
This is a Get accessor method for theTimeStamp property.
Unlock this routine, return a status code.
This is a Get accessor method for theUpToDate property.
Used by Studio because it is hard to call %Studio.TemplateMgr directly
Fill up the list of packages for this directory.
|
Selects Extention As%String , Type As%String , Description As%String (MAXLEN=256), XMLNamespace As%String (MAXLEN=512), Icon As%Integer , AddNew As%Boolean
Return a list of the user document types that are defined
Selects Name As%String (MAXLEN=256), Modified As%TimeStamp
Given a comma separated list of filename this will return a list of the items that are in these filenames. Along with the name of each item it will also return the timestamp of the item if it is present in InterSystems IRIS already, and -1 if the item is not present. This allows you to decide if you wish to import this item and overwrite the existing item in InterSystems IRIS.
Selects Namespace As%String
Return a list of namespaces on this system
Selects Name As%String (MAXLEN=512) AsFileName/Ext , IsDirectory As%String , Type As%Integer , Size As%Integer , Date As%TimeStamp , Description As%String (MAXLEN=32767) AsBriefDescription , IconType As%Integer
This query is used by the Studio open dialog to provide a list of the types that can be opened. It will list all the items that match the Spec ordered by the OrderBy. The Dir specifies the direction to search in, 1 is in ascending order (the default) and -1 is in descending order.Spec may contain both * and ? as wildcards. It may also consist of more than one, comma-delimited selections. If you wish to exclude items then prefix the pattern with ' symbol. OrderBy is one of:
The query returns the name of the item, a delimiter to use to constructing paths with this item, if not specified it defaults to '.'. For example if the delimiter is '.' and you put in the pattern 'package/*' then when you select this a directory it should change the selection to 'package.newpackage/*'. Note that it always assumes that there is a '/' after the directory before the pattern, so for a CSP application where the delimiter returned is '/' if the spec was '/csp/samples/*' and you click on a directory 'cinema' you should construct the spec '/csp/samples/cinema/*'. The type of the item which can be one of:
- 1 - Name of the file (the default), case insensitive
- 2 - Date/Time the file was saved
- 3 - Size of the file
- 4 - Type of the file ie. INT, MAC, INC, BAS, MVB
- 5 - Name of the file sorted case sensitively
Further numbers are reserved for future use. It also returns the routine size and the date it was last saved.
- 0 - MAC file, a routine containing macros
- 1 - INT file, a standard routine
- 2 - INC file, an include file
- 3 - BAS file, a Cache Basic routine
- 4 - CLS, a class
- 5 - CSP, a Cache Server Page or another file in this directory
- 7 - GBL, a Global
- 8 - PRJ, a Project
- 9 - a Package
- 10 - a CSP application
- 11 - MVB file, a MultiValue Basic macro routine
- 12 - MVI file, a MultiValue Basic routine
- 13 - OBJ, object code
The SystemFiles is true the results will include '%' items and INFORMATION.SCHEMA items in the search. If false (the default), results will only include non-percent items and no INFORMATION.SCHEMA items.
If Flat is true then it does not display directories but displays everything at the root level.
If NotStudio is true then it will display globals and OBJ routines as well, for Studio we exclude these types.
The ShowGenerated controls if this query includes items that are generated from another item, such as INT code that is generated from a class compilation.
The Filter if specified allows additional restrictions on the items being returned by specifying the WHERE clause of an SQL statement on the%Studio.OpenDialogItems , refer to this for a list of fields that can be referenced.