stack_wallet/lib/models/isar/models/transaction_note.g.dart

1073 lines
31 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'transaction_note.dart';
// **************************************************************************
// IsarCollectionGenerator
// **************************************************************************
// coverage:ignore-file
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
extension GetTransactionNoteCollection on Isar {
IsarCollection<TransactionNote> get transactionNotes => this.collection();
}
const TransactionNoteSchema = CollectionSchema(
name: r'TransactionNote',
id: 5128348263878806765,
properties: {
r'txid': PropertySchema(
id: 0,
name: r'txid',
type: IsarType.string,
),
r'value': PropertySchema(
id: 1,
name: r'value',
type: IsarType.string,
),
r'walletId': PropertySchema(
id: 2,
name: r'walletId',
type: IsarType.string,
)
},
estimateSize: _transactionNoteEstimateSize,
serialize: _transactionNoteSerialize,
deserialize: _transactionNoteDeserialize,
deserializeProp: _transactionNoteDeserializeProp,
idName: r'id',
indexes: {
r'walletId': IndexSchema(
id: -1783113319798776304,
name: r'walletId',
unique: false,
replace: false,
properties: [
IndexPropertySchema(
name: r'walletId',
type: IndexType.hash,
caseSensitive: true,
)
],
),
r'txid_walletId': IndexSchema(
id: -2771771174176035985,
name: r'txid_walletId',
unique: true,
replace: true,
properties: [
IndexPropertySchema(
name: r'txid',
type: IndexType.hash,
caseSensitive: true,
),
IndexPropertySchema(
name: r'walletId',
type: IndexType.hash,
caseSensitive: true,
)
],
)
},
links: {},
embeddedSchemas: {},
getId: _transactionNoteGetId,
getLinks: _transactionNoteGetLinks,
attach: _transactionNoteAttach,
version: '3.0.5',
);
int _transactionNoteEstimateSize(
TransactionNote object,
List<int> offsets,
Map<Type, List<int>> allOffsets,
) {
var bytesCount = offsets.last;
bytesCount += 3 + object.txid.length * 3;
bytesCount += 3 + object.value.length * 3;
bytesCount += 3 + object.walletId.length * 3;
return bytesCount;
}
void _transactionNoteSerialize(
TransactionNote object,
IsarWriter writer,
List<int> offsets,
Map<Type, List<int>> allOffsets,
) {
writer.writeString(offsets[0], object.txid);
writer.writeString(offsets[1], object.value);
writer.writeString(offsets[2], object.walletId);
}
TransactionNote _transactionNoteDeserialize(
Id id,
IsarReader reader,
List<int> offsets,
Map<Type, List<int>> allOffsets,
) {
final object = TransactionNote(
txid: reader.readString(offsets[0]),
value: reader.readString(offsets[1]),
walletId: reader.readString(offsets[2]),
);
object.id = id;
return object;
}
P _transactionNoteDeserializeProp<P>(
IsarReader reader,
int propertyId,
int offset,
Map<Type, List<int>> allOffsets,
) {
switch (propertyId) {
case 0:
return (reader.readString(offset)) as P;
case 1:
return (reader.readString(offset)) as P;
case 2:
return (reader.readString(offset)) as P;
default:
throw IsarError('Unknown property with id $propertyId');
}
}
Id _transactionNoteGetId(TransactionNote object) {
return object.id;
}
List<IsarLinkBase<dynamic>> _transactionNoteGetLinks(TransactionNote object) {
return [];
}
void _transactionNoteAttach(
IsarCollection<dynamic> col, Id id, TransactionNote object) {
object.id = id;
}
extension TransactionNoteByIndex on IsarCollection<TransactionNote> {
Future<TransactionNote?> getByTxidWalletId(String txid, String walletId) {
return getByIndex(r'txid_walletId', [txid, walletId]);
}
TransactionNote? getByTxidWalletIdSync(String txid, String walletId) {
return getByIndexSync(r'txid_walletId', [txid, walletId]);
}
Future<bool> deleteByTxidWalletId(String txid, String walletId) {
return deleteByIndex(r'txid_walletId', [txid, walletId]);
}
bool deleteByTxidWalletIdSync(String txid, String walletId) {
return deleteByIndexSync(r'txid_walletId', [txid, walletId]);
}
Future<List<TransactionNote?>> getAllByTxidWalletId(
List<String> txidValues, List<String> walletIdValues) {
final len = txidValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([txidValues[i], walletIdValues[i]]);
}
return getAllByIndex(r'txid_walletId', values);
}
List<TransactionNote?> getAllByTxidWalletIdSync(
List<String> txidValues, List<String> walletIdValues) {
final len = txidValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([txidValues[i], walletIdValues[i]]);
}
return getAllByIndexSync(r'txid_walletId', values);
}
Future<int> deleteAllByTxidWalletId(
List<String> txidValues, List<String> walletIdValues) {
final len = txidValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([txidValues[i], walletIdValues[i]]);
}
return deleteAllByIndex(r'txid_walletId', values);
}
int deleteAllByTxidWalletIdSync(
List<String> txidValues, List<String> walletIdValues) {
final len = txidValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([txidValues[i], walletIdValues[i]]);
}
return deleteAllByIndexSync(r'txid_walletId', values);
}
Future<Id> putByTxidWalletId(TransactionNote object) {
return putByIndex(r'txid_walletId', object);
}
Id putByTxidWalletIdSync(TransactionNote object, {bool saveLinks = true}) {
return putByIndexSync(r'txid_walletId', object, saveLinks: saveLinks);
}
Future<List<Id>> putAllByTxidWalletId(List<TransactionNote> objects) {
return putAllByIndex(r'txid_walletId', objects);
}
List<Id> putAllByTxidWalletIdSync(List<TransactionNote> objects,
{bool saveLinks = true}) {
return putAllByIndexSync(r'txid_walletId', objects, saveLinks: saveLinks);
}
}
extension TransactionNoteQueryWhereSort
on QueryBuilder<TransactionNote, TransactionNote, QWhere> {
QueryBuilder<TransactionNote, TransactionNote, QAfterWhere> anyId() {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(const IdWhereClause.any());
});
}
}
extension TransactionNoteQueryWhere
on QueryBuilder<TransactionNote, TransactionNote, QWhereClause> {
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause> idEqualTo(
Id id) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IdWhereClause.between(
lower: id,
upper: id,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
idNotEqualTo(Id id) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(
IdWhereClause.lessThan(upper: id, includeUpper: false),
)
.addWhereClause(
IdWhereClause.greaterThan(lower: id, includeLower: false),
);
} else {
return query
.addWhereClause(
IdWhereClause.greaterThan(lower: id, includeLower: false),
)
.addWhereClause(
IdWhereClause.lessThan(upper: id, includeUpper: false),
);
}
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
idGreaterThan(Id id, {bool include = false}) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(
IdWhereClause.greaterThan(lower: id, includeLower: include),
);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause> idLessThan(
Id id,
{bool include = false}) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(
IdWhereClause.lessThan(upper: id, includeUpper: include),
);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause> idBetween(
Id lowerId,
Id upperId, {
bool includeLower = true,
bool includeUpper = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IdWhereClause.between(
lower: lowerId,
includeLower: includeLower,
upper: upperId,
includeUpper: includeUpper,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
walletIdEqualTo(String walletId) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IndexWhereClause.equalTo(
indexName: r'walletId',
value: [walletId],
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
walletIdNotEqualTo(String walletId) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [],
upper: [walletId],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [walletId],
includeLower: false,
upper: [],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [walletId],
includeLower: false,
upper: [],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [],
upper: [walletId],
includeUpper: false,
));
}
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
txidEqualToAnyWalletId(String txid) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IndexWhereClause.equalTo(
indexName: r'txid_walletId',
value: [txid],
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
txidNotEqualToAnyWalletId(String txid) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [],
upper: [txid],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [txid],
includeLower: false,
upper: [],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [txid],
includeLower: false,
upper: [],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [],
upper: [txid],
includeUpper: false,
));
}
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
txidWalletIdEqualTo(String txid, String walletId) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IndexWhereClause.equalTo(
indexName: r'txid_walletId',
value: [txid, walletId],
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterWhereClause>
txidEqualToWalletIdNotEqualTo(String txid, String walletId) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [txid],
upper: [txid, walletId],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [txid, walletId],
includeLower: false,
upper: [txid],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [txid, walletId],
includeLower: false,
upper: [txid],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'txid_walletId',
lower: [txid],
upper: [txid, walletId],
includeUpper: false,
));
}
});
}
}
extension TransactionNoteQueryFilter
on QueryBuilder<TransactionNote, TransactionNote, QFilterCondition> {
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
idEqualTo(Id value) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'id',
value: value,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
idGreaterThan(
Id value, {
bool include = false,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'id',
value: value,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
idLessThan(
Id value, {
bool include = false,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'id',
value: value,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
idBetween(
Id lower,
Id upper, {
bool includeLower = true,
bool includeUpper = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.between(
property: r'id',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidEqualTo(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'txid',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidGreaterThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'txid',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidLessThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'txid',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidBetween(
String lower,
String upper, {
bool includeLower = true,
bool includeUpper = true,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.between(
property: r'txid',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidStartsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.startsWith(
property: r'txid',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidEndsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.endsWith(
property: r'txid',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidContains(String value, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.contains(
property: r'txid',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidMatches(String pattern, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.matches(
property: r'txid',
wildcard: pattern,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'txid',
value: '',
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
txidIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
property: r'txid',
value: '',
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueEqualTo(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueGreaterThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueLessThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueBetween(
String lower,
String upper, {
bool includeLower = true,
bool includeUpper = true,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.between(
property: r'value',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueStartsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.startsWith(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueEndsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.endsWith(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueContains(String value, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.contains(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueMatches(String pattern, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.matches(
property: r'value',
wildcard: pattern,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'value',
value: '',
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
valueIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
property: r'value',
value: '',
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdEqualTo(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdGreaterThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdLessThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdBetween(
String lower,
String upper, {
bool includeLower = true,
bool includeUpper = true,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.between(
property: r'walletId',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdStartsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.startsWith(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdEndsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.endsWith(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdContains(String value, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.contains(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdMatches(String pattern, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.matches(
property: r'walletId',
wildcard: pattern,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'walletId',
value: '',
));
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterFilterCondition>
walletIdIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
property: r'walletId',
value: '',
));
});
}
}
extension TransactionNoteQueryObject
on QueryBuilder<TransactionNote, TransactionNote, QFilterCondition> {}
extension TransactionNoteQueryLinks
on QueryBuilder<TransactionNote, TransactionNote, QFilterCondition> {}
extension TransactionNoteQuerySortBy
on QueryBuilder<TransactionNote, TransactionNote, QSortBy> {
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy> sortByTxid() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'txid', Sort.asc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
sortByTxidDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'txid', Sort.desc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy> sortByValue() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.asc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
sortByValueDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.desc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
sortByWalletId() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.asc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
sortByWalletIdDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.desc);
});
}
}
extension TransactionNoteQuerySortThenBy
on QueryBuilder<TransactionNote, TransactionNote, QSortThenBy> {
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy> thenById() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'id', Sort.asc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy> thenByIdDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'id', Sort.desc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy> thenByTxid() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'txid', Sort.asc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
thenByTxidDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'txid', Sort.desc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy> thenByValue() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.asc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
thenByValueDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.desc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
thenByWalletId() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.asc);
});
}
QueryBuilder<TransactionNote, TransactionNote, QAfterSortBy>
thenByWalletIdDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.desc);
});
}
}
extension TransactionNoteQueryWhereDistinct
on QueryBuilder<TransactionNote, TransactionNote, QDistinct> {
QueryBuilder<TransactionNote, TransactionNote, QDistinct> distinctByTxid(
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addDistinctBy(r'txid', caseSensitive: caseSensitive);
});
}
QueryBuilder<TransactionNote, TransactionNote, QDistinct> distinctByValue(
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addDistinctBy(r'value', caseSensitive: caseSensitive);
});
}
QueryBuilder<TransactionNote, TransactionNote, QDistinct> distinctByWalletId(
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive);
});
}
}
extension TransactionNoteQueryProperty
on QueryBuilder<TransactionNote, TransactionNote, QQueryProperty> {
QueryBuilder<TransactionNote, int, QQueryOperations> idProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'id');
});
}
QueryBuilder<TransactionNote, String, QQueryOperations> txidProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'txid');
});
}
QueryBuilder<TransactionNote, String, QQueryOperations> valueProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'value');
});
}
QueryBuilder<TransactionNote, String, QQueryOperations> walletIdProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'walletId');
});
}
}