docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference  /  Property Keywords

Class Definition Reference
Transient
Previous section          
InterSystems: The power behind what matters   
Search:  


Specifies whether the property is stored in the database. Applies only to persistent classes.
Usage
To specify that the property is not stored in the database, use the following syntax:
Property name As classname [ Transient ];
Otherwise, omit this keyword or place the word Not immediately before the keyword.
Details
In the case of a persistent class, specifies that the property is not stored in the database.
Note that InterSystems IRIS validates transient properties in the same way as other properties. For example, when you try to save the object, the system validates all its properties, including any transient properties.
In a subclass, you can mark a non-transient property as transient, but you cannot do the reverse.
Default
If this keyword is omitted, the property is not transient.
See Also
See “Defining a Computed Property” in Defining and Using Classes.
See Also


Previous section          
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-09-19 06:56:35