Test for transient
Syntax
$object.transient()
Description
Checks whether an object has been created as transient. Transient objects are only visible locally in the user's session and cannot be saved in a reference to a persistent object.
Parameters
| Object name | Type | Type Description | Mandatory | Default |
|---|---|---|---|---|
| object | Specialized object | The object to be tested. | yes |
Return value
Type: Truth value
trueif the object is transient.
Examples
Transient objects
{
object = new(`my.module:MyClass`, transient: true);
$object.transient();
}
Output: true
Persistent objects
{
object = new(`my.module:MyClass`);
$object.transient();
}
Output: false