ManagedPropertyDescription class abstract

Contains database column information and metadata for a property of a ManagedObject object.

Each property a ManagedObject object manages is described by an instance of ManagedPropertyDescription, which contains useful information about the property such as its name and type. Those properties are represented by concrete subclasses of this class, ManagedRelationshipDescription and ManagedAttributeDescription.

Implementers

Constructors

ManagedPropertyDescription(ManagedEntity entity, String name, ManagedType? type, Type? declaredType, {bool unique = false, bool indexed = false, bool nullable = false, bool includedInDefaultResultSet = true, bool autoincrement = false, List<ManagedValidator> validators = const [], ResponseModel? responseModel, ResponseKey? responseKey})

Properties

autoincrement bool
Whether or not this property should use an auto-incrementing scheme.
final
declaredType Type?
The type of the variable that this property represents.
final
entity ManagedEntity
A reference to the ManagedEntity that contains this property.
final
hashCode int
The hash code for this object.
no setterinherited
isIncludedInDefaultResultSet bool
Whether or not this property is returned in the default set of Query.returningProperties.
final
isIndexed bool
Whether or not this property should be indexed by a PersistentStore.
final
isNullable bool
Whether or not this property can be null.
final
isPrivate bool
Whether or not this attribute is private or not.
no setter
isUnique bool
Whether or not this property must be unique to across all instances represented by entity.
final
name String
The identifying name of this property.
final
responseKey ResponseKey?
final
responseModel ResponseModel?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ManagedType?
The value type of this property.
final
validators List<ManagedValidator>
ManagedValidators for this instance.
no setter

Methods

convertFromPrimitiveValue(dynamic value) → dynamic
Converts a value to a more complex value from a primitive value according to this instance's definition.
convertToPrimitiveValue(dynamic value) → dynamic
Converts a value from a more complex value into a primitive value according to this instance's definition.
documentSchemaObject(APIDocumentContext context) → APISchemaObject
Returns an APISchemaObject that represents this property.
isAssignableWith(dynamic dartValue) bool
Whether or not a the argument can be assigned to this property.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited