GlideTableHierarchy - Scoped
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The GlideTableHierarchy API provides methods for handling information about table relationships.
GlideTableHierarchy - GlideTableHierarchy(String tableName)
Instantiates a GlideTableHierarchy object.
Name | Type | Description |
---|---|---|
tableName | String | The name of the table. |
Example
GlideTableHierarchy - getAllExtensions()
Returns an array of strings containing all tables that extend the current table and includes the current table.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array | An array of strings containing the tables in the hierarchy that includes the current table. |
Example
Output: Line breaks added for clarity.
GlideTableHierarchy - getBase()
Returns the parent class.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The parent class. |
Example
GlideTableHierarchy - getHierarchy()
Returns an array of strings containing all classes in the hierarchy of the current table.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Array | An array of strings of the classes in the hierarchy. |
Example
GlideTableHierarchy - getName()
Returns the table's name.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The table's name. |
Example
GlideTableHierarchy - getRoot()
Returns the top level class in the hierarchy.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Name of the root class. |
Example
GlideTableHierarchy - getTables()
Returns an array of strings of the table names in the hierarchy.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array | An array of strings containing the names of tables in the hierarchy. |
Example
GlideTableHierarchy - getTableExtensions()
Returns an array of strings containing all tables that extend the current table.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array | An array of strings containing the tables that extend the current table. |
Example
GlideTableHierarchy - isBaseClass()
Returns true if this is a base class.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | True if the current table has no parent and has extensions. |
Example
GlideTableHierarchy - isSoloClass()
Returns true if this table is not in a hierarchy.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | True if the current table has no parent and no extensions. |
Example
GlideTableHierarchy - hasExtensions()
Returns true of this class has been extended.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | True if the current table has extensions. |
Example
On this page
- GlideTableHierarchy - GlideTableHierarchy(String tableName)
- GlideTableHierarchy - getAllExtensions()
- GlideTableHierarchy - getBase()
- GlideTableHierarchy - getHierarchy()
- GlideTableHierarchy - getName()
- GlideTableHierarchy - getRoot()
- GlideTableHierarchy - getTables()
- GlideTableHierarchy - getTableExtensions()
- GlideTableHierarchy - isBaseClass()
- GlideTableHierarchy - isSoloClass()
- GlideTableHierarchy - hasExtensions()