Represents an entity object.
To get an instance of an entity with a given ID, see the example below or consult methods in Entities.
- Version:
- 15.4.5
- Source:
- See:
Example
var entity = Abcs.Entities().findById('my.custom.bop.Employee');
Members
Methods
getDescription() → {String}
stable API
Gets human readable description of this entity. e.g. 'List of our external customers'
- Version:
- 15.4.5
- Source:
Returns:
- Type
- String
getId() → {String}
stable API
Returns the entity's unique identifier.
- Version:
- 15.4.5
- Source:
Returns:
entity identifier
- Type
- String
getPluralName() → {String}
stable API
Gets human readable plural name of this entity, e.g. 'Customers'
- Version:
- 15.4.5
- Source:
Returns:
- Type
- String
getProperties() → {Array.<entity/js/api/Property>}
stable API
Returns list of assotiated properties the entity owns.
- Version:
- 15.4.5
- Source:
Returns:
list of assotiated properties
- Type
- Array.<entity/js/api/Property>
Example
console.log('Entity ' + entity.getId() + ' has the following properties:');
entity.getProperties().forEach(function (property) {
console.log(property.getId() + ' with name ' + property.getSingularName());
};
getProperty(id) → {entity/js/api/Property}
stable API
Return entity's property identified by the given ID - ignoring the case.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | the ID of the property |
- Version:
- 15.4.5
- Source:
Returns:
getSingularName() → {String}
stable API
Gets human readable singular name of this entity, e.g. 'Customer'
- Version:
- 15.4.5
- Source:
Returns:
- Type
- String