DaoWorkBarcode class

Work table that contains barcodes.

The typical use case is for bulk product downloads. The first step would be to populate this table with the barcodes you're interested in, e.g. all the local barcodes or the top 1k barcodes. The second step would be to download the products referenced in that table.

Inheritance

Constructors

DaoWorkBarcode(LocalDatabase localDatabase)

Properties

hashCode → int
The hash code for this object.
no setterinherited
localDatabase → LocalDatabase
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteBarcodes(String work, Iterable<String> barcodes) → Future<int>
Deletes all barcodes for a given work.
deleteWork(String work) → Future<int>
Deletes all barcodes for a given work.
getCount(String work) → Future<int>
Returns the number of barcodes for that work.
getNextPage(String work, int pageSize) → Future<List<String>>
Returns the next barcodes for that work.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putAll(String work, Iterable<String> barcodes) → Future<int>
Returns the number of inserted rows.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

onUpgrade(Database db, int oldVersion, int newVersion) → FutureOr<void>