ManagedRelationshipDescription class

Contains information for a relationship property of a ManagedObject.

Inheritance

Constructors

ManagedRelationshipDescription(ManagedEntity? entity, String name, ManagedType? type, Type? declaredType, ManagedEntity? destinationEntity, DeleteRule? deleteRule, ManagedRelationshipType relationshipType, String? inverseKey, {bool unique = false, bool indexed = false, bool nullable = false, bool includedInDefaultResultSet = true, List<ManagedValidator?> validators = const []})

Properties

autoincrement bool
Whether or not this property should use an auto-incrementing scheme.
finalinherited
declaredType Type?
The type of the variable that this property represents.
finalinherited
deleteRule DeleteRule?
The delete rule for this relationship.
final
destinationEntity ManagedEntity?
The entity that this relationship's instances are represented by.
final
entity ManagedEntity?
A reference to the ManagedEntity that contains this property.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
inverse ManagedRelationshipDescription?
The ManagedRelationshipDescription on destinationEntity that represents the inverse of this relationship.
no setter
inverseKey String?
The name of the ManagedRelationshipDescription on destinationEntity that represents the inverse of this relationship.
final
isBelongsTo bool
Whether or not this relationship is on the belonging side.
no setter
isIncludedInDefaultResultSet bool
Whether or not this property is returned in the default set of Query.returningProperties.
finalinherited
isIndexed bool
Whether or not this property should be indexed by a PersistentStore.
finalinherited
isNullable bool
Whether or not this property can be null.
finalinherited
isPrivate bool
Whether or not this attribute is private or not.
no setterinherited
isUnique bool
Whether or not this property must be unique to across all instances represented by entity.
finalinherited
name String
The identifying name of this property.
finalinherited
relationshipType ManagedRelationshipType
The type of relationship.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ManagedType?
The value type of this property.
finalinherited
validators List<ManagedValidator?>
ManagedValidators for this instance.
no setterinherited

Methods

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

Operators

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

Static Methods

make<T>(ManagedEntity entity, String name, ManagedType type, ManagedEntity destinationEntity, DeleteRule deleteRule, ManagedRelationshipType relationshipType, String inverseKey, {bool unique = false, bool indexed = false, bool nullable = false, bool includedInDefaultResultSet = true, List<ManagedValidator> validators = const []}) ManagedRelationshipDescription