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.

Implemented by

Static Properties

supportedDartTypes → List<Type>

read-only

Static Methods

propertyTypeForDartType(Type t) ManagedPropertyType

Returns the corresponding ManagedPropertyType given a Dart type.

Constructors

ManagedPropertyDescription(ManagedEntity entity, String name, ManagedPropertyType type, { String explicitDatabaseType: null, bool unique: false, bool indexed: false, bool nullable: false, bool includedInDefaultResultSet: true, bool autoincrement: false })

Properties

autoincrement → bool

Whether or not this property should use an auto-incrementing scheme.

final
entity ManagedEntity

A reference to the ManagedEntity that contains this property.

final
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
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
type ManagedPropertyType

The value type of this property.

final
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

convertFromPrimitiveValue(value) → dynamic

Converts a value to a more complex value from a primitive value according to this instance's definition.

convertToPrimitiveValue(value) → dynamic

Converts a value from a more complex value into a primitive value according to this instance's definition.

isAssignableWith(dartValue) → bool

Whether or not a the argument can be assigned to this property.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited