Entity<E extends Entity<E>> class

Implemented types
Implementers

Constructors

Entity()

Properties

code String?
getter/setter pairoverride-getter
codeFirstLetterLower String
no setter
codeFirstLetterUpper String
no setter
codeLowerSpace String
no setter
codeLowerUnderscore String
no setter
codePlural String
no setter
codePluralFirstLetterLower String
no setter
codePluralFirstLetterUpper String
no setter
codePluralFirstLetterUpperSpace String
no setter
codePluralLowerUnderscore String
no setter
concept Concept
getter/setter pairoverride-getter
exceptions IValidationExceptions
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setteroverride
id Id?
no setteroverride
oid Oid
getter/setter pairoverride-getter
post bool
getter/setter pair
pre bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whenAdded DateTime?
Log
getter/setter pairoverride
whenRemoved DateTime?
getter/setter pairoverride
whenSet DateTime?
getter/setter pairoverride

Methods

compareAttributes(E entity) int
Compares two entities based on their attributes. If the result is less than 0 then the first id is less than the second, if it is equal to 0 they are equal and if the result is greater than 0 then the first is greater than the second.
compareTo(dynamic entity) int
Compares two entities based on codes, ids or attributes. If the result is less than 0 then the first entity is less than the second, if it is equal to 0 they are equal and if the result is greater than 0 then the first is greater than the second.
override
copy() → E
Copies the entity (oid, code, attributes and neighbors). It is not a deep copy.
override
display({String prefix = '', bool withOid = true, bool withChildren = true, bool withInternalChildren = true}) → void
Displays (prints) an entity with its attributes, parents and children.
displayToString() → void
equalContent(E entity) bool
Checks if the entity is equal in content to the given entity. Two entities are equal if they have the same content, ignoring oid and when.
equals(E entity) bool
Two entities are equal if their oids are equal.
fromJson<K extends Entity<K>>(String entityJson) → void
override
fromJsonMap(dynamic entityMap, [Entity<Entity>? internalParent]) → void
Loads data from a json map.
getAttribute<K>(String attributeCode) → K?
override
getChild(String? name) Object?
override
getInternalChild(String name) Object?
getParent(String name) Object?
override
getReference(String name) Reference?
getStringFromAttribute(String name) String
override
getStringOrNullFromAttribute(String name) String?
override
newEntities() Entities<E>
newEntity() Entity<E>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postSetAttribute(String name, Object? value) bool
override
preSetAttribute(String name, Object? value) bool
override
setAttribute(String name, Object? value) bool
override
setAttributesFrom(Entity<Entity> entity) bool
setChild(String name, Object entities) bool
override
setParent(String name, dynamic entity) bool
override
setReference(String name, Reference reference) → void
setStringToAttribute(String name, String string) bool
override
toJson() String
override
toJsonMap() Map<String, Object>
toString() String
Returns a string that represents this entity by using oid and code.
override