OwnershipRepository class Null safety

The repository for OwnershipModel persistence.

Constructors

OwnershipRepository(Database _db)
Builds a OwnershipRepository that will use _db for persistence.

Properties

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

Methods

getAll() → List<OwnershipModel>
Gets all OwnershipModel stored in local database.
getById(Uint8List id) OwnershipModel?
getBySource(String source, String origin) OwnershipModel?
Gets the OwnershipModel for source and origin in database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
save(OwnershipModel ownership) → void
Persists ownership in _db.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

columnAbout → const String
The description about the data.
'about'
columnContains → const String
The kinds of data this contains.
'contains'
columnOrigin → const String
The origin from which the data was generated.
'origin'
columnSource → const String
The identification of the source.
'source'
columnTransactionId → const String
The transaction id of this registry.
'transaction_id'
columnType → const String
The type of the data source: data point, pool or stream.
'type'
table → const String
'ownership'