Stores the specifics of database columns in ManagedObjects as indicated by ManagedColumnAttributes.
This class is used internally to manage data models. For specifying these attributes, see ManagedColumnAttributes.
Attributes are the scalar values of a ManagedObject (as opposed to relationship values, which are ManagedRelationshipDescription instances).
Each scalar property ManagedObject object persists is described by an instance of ManagedAttributeDescription. This class adds two properties to ManagedPropertyDescription that are only valid for non-relationship types, isPrimaryKey and defaultValue.
- Inheritance
- Object
- ManagedPropertyDescription
- ManagedAttributeDescription
Constructors
- ManagedAttributeDescription(ManagedEntity entity, String name, ManagedPropertyType type, { ManagedTransientAttribute transientStatus: null, bool primaryKey: false, String defaultValue: null, bool unique: false, bool indexed: false, bool nullable: false, bool includedInDefaultResultSet: true, bool autoincrement: false, List<Validate> validators: const [], Map<String, dynamic> enumerationValueMap })
- ManagedAttributeDescription.transient(ManagedEntity entity, String name, ManagedPropertyType type, ManagedTransientAttribute transientStatus)
Properties
- defaultValue → String
-
The default value for this attribute.
final - enumerationValueMap → Map<String, dynamic>
-
Contains lookup table for string value of an enumeration to the enumerated value.
final - isEnumeratedValue → bool
-
Whether or not this attribute is represented by a Dart enum.
read-only - isPrimaryKey → bool
-
Whether or not this attribute is the primary key for its ManagedEntity.
final - isTransient → bool
-
Whether or not this attribute is backed directly by the database.
read-only - transientStatus → ManagedTransientAttribute
-
The validity of a transient attribute as input, output or both.
final - validators → List<Validate>
-
ManagedValidator
s for this instance.read-only - autoincrement → bool
-
Whether or not this property should use an auto-incrementing scheme.
final, inherited - entity → ManagedEntity
-
A reference to the ManagedEntity that contains this property.
final, inherited - hashCode → int
-
The hash code for this object.
read-only, inherited - isIncludedInDefaultResultSet → bool
-
Whether or not this property is returned in the default set of Query.returningProperties.
final, inherited - isIndexed → bool
-
Whether or not this property should be indexed by a PersistentStore.
final, inherited - isNullable → bool
-
Whether or not this property can be null.
final, inherited - isUnique → bool
-
Whether or not this property must be unique to across all instances represented by entity.
final, inherited - name → String
-
The identifying name of this property.
final, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - type → ManagedPropertyType
-
The value type of this property.
final, 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.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited